Recovered from cvs revision 2007-09-25 05:49:00

This commit is contained in:
2007-09-25 20:25:00 +00:00
parent 9312940dfa
commit 39e8bdd6ae
36 changed files with 2053 additions and 510 deletions

View File

@ -1,5 +1,7 @@
/*
* $Id: Awk.cpp,v 1.24 2007/09/23 16:48:55 bacon Exp $
* $Id: Awk.cpp,v 1.26 2007/09/24 15:12:16 bacon Exp $
*
* {License}
*/
#include "stdafx.h"
@ -854,7 +856,7 @@ namespace ASE
if (awk == NULL)
{
setError (ERROR::NOPER);
return -1;
return false;
}
cli::pin_ptr<const ASE::Awk::char_t> nptr = PtrToStringChars(name);

View File

@ -1,5 +1,7 @@
/*
* $Id: Awk.hpp,v 1.22 2007/09/23 16:48:55 bacon Exp $
* $Id: Awk.hpp,v 1.24 2007/09/24 15:12:16 bacon Exp $
*
* {License}
*/
#pragma once
@ -169,10 +171,74 @@ namespace ASE
}
}
public:
protected:
ASE::Awk::Return& ret;
};
ref class Run
{
public protected:
Run (ASE::Awk::Run& run): run (run)
{
}
public:
bool SetGlobal (int id, long_t v)
{
return run.setGlobal (id, v) == 0;
}
bool SetGlobal (int id, System::SByte^ v)
{
return run.setGlobal (id, (long_t)(__int8)v) == 0;
}
bool SetGlobal (int id, System::Int16^ v)
{
return run.setGlobal (id, (long_t)(__int16)v) == 0;
}
bool SetGlobal (int id, System::Int32^ v)
{
return run.setGlobal (id, (long_t)(__int32)v) == 0;
}
bool SetGlobal (int id, System::Int64^ v)
{
return run.setGlobal (id, (long_t)(__int64)v) == 0;
}
bool SetGlobal (int id, System::Byte^ v)
{
return run.setGlobal (id, (long_t)(unsigned __int8)v) == 0;
}
bool SetGlobal (int id, System::UInt16^ v)
{
return run.setGlobal (id, (long_t)(unsigned __int16)v) == 0;
}
bool SetGlobal (int id, System::UInt32^ v)
{
return run.setGlobal (id, (long_t)(unsigned __int32)v) == 0;
}
bool SetGlobal (int id, System::UInt64^ v)
{
return run.setGlobal (id, (long_t)(unsigned __int64)v) == 0;
}
bool SetGlobal (int id, real_t v)
{
return run.setGlobal (id, v) == 0;
}
bool SetGlobal (int id, System::Single^ v)
{
return run.setGlobal (id, (real_t)(float)v) == 0;
}
bool SetGlobal (int id, System::Double^ v)
{
return run.setGlobal (id, (real_t)(double)v) == 0;
}
// TODO: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
protected:
ASE::Awk::Run& run;
};
ref class Source
{
public:

View File

@ -1,5 +1,7 @@
/*
* $Id: StdAwk.cpp,v 1.12 2007/09/06 09:23:34 bacon Exp $
* $Id: StdAwk.cpp,v 1.13 2007/09/24 11:22:22 bacon Exp $
*
* {License}
*/
#include "stdafx.h"

View File

@ -1,5 +1,7 @@
/*
* $Id: asenet.cpp,v 1.1 2007/05/15 08:29:30 bacon Exp $
* $Id: asenet.cpp,v 1.2 2007/09/24 11:22:22 bacon Exp $
*
* {License}
*/
#include "stdafx.h"

View File

@ -1,5 +1,7 @@
/*
* $Id: asenet.h,v 1.2 2007/07/15 16:31:59 bacon Exp $
* $Id: asenet.h,v 1.3 2007/09/24 11:22:22 bacon Exp $
*
* {License}
*/
#pragma once

View File

@ -166,6 +166,82 @@
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Debug MD|Win32"
OutputDirectory="$(SolutionDir)$(ConfigurationName)"
IntermediateDirectory="$(ConfigurationName)"
ConfigurationType="2"
CharacterSet="1"
ManagedExtensions="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="../.."
PreprocessorDefinitions="WIN32;_DEBUG"
RuntimeLibrary="3"
UsePrecompiledHeader="2"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="asecmn.lib aseawk.lib aseawk++.lib aseutl.lib"
LinkIncremental="2"
AdditionalLibraryDirectories="$(OutDir)"
GenerateDebugInformation="true"
AssemblyDebug="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCWebDeploymentTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
<AssemblyReference
@ -214,6 +290,14 @@
UsePrecompiledHeader="1"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug MD|Win32"
>
<Tool
Name="VCCLCompilerTool"
UsePrecompiledHeader="1"
/>
</FileConfiguration>
</File>
<File
RelativePath=".\StdAwk.cpp"

View File

@ -1,5 +1,7 @@
/*
* $Id: misc.cpp,v 1.3 2007/08/24 16:02:49 bacon Exp $
* $Id: misc.cpp,v 1.4 2007/09/24 11:22:22 bacon Exp $
*
* {License}
*/
#include "stdafx.h"

View File

@ -1,5 +1,7 @@
/*
* $Id: misc.h,v 1.1 2007/07/20 09:23:37 bacon Exp $
* $Id: misc.h,v 1.2 2007/09/24 11:22:22 bacon Exp $
*
* {License}
*/
#ifndef _MISC_H_
@ -15,4 +17,4 @@ char* unicode_to_multibyte (const wchar_t* in, int inlen, int* outlen);
}
#endif
#endif
#endif