Recovered from cvs revision 2007-09-19 11:38:00

This commit is contained in:
hyung-hwan 2007-09-20 00:34:00 +00:00
parent dd1823659b
commit 841afe975d
4 changed files with 36 additions and 14 deletions

View File

@ -1,5 +1,5 @@
/* /*
* $Id: Awk.hpp,v 1.53 2007/09/07 05:40:16 bacon Exp $ * $Id: Awk.hpp,v 1.54 2007/09/18 14:30:41 bacon Exp $
*/ */
#ifndef _ASE_AWK_AWK_HPP_ #ifndef _ASE_AWK_AWK_HPP_
@ -561,13 +561,29 @@ protected:
/** /**
* @name Source code I/O handlers * @name Source code I/O handlers
* A subclass should override the following methods to * A subclass should override the following methods to support the
* support the source code input and output. * source code input and output. The awk interpreter calls the
* The awk interpreter calls the following methods when * following methods when the parse method is invoked.
* the parse method is invoked. *
* To read the source code, the interpter calls Awk::openSource with
* an Awk::Source object whose mode is set to Awk::Source::READ.
* If Awk::openSource returns 1, it calls Awk::readSource with
* the Awk::Source object subsequently until it returns 0. Finally,
* it calls Awk::closeSource with the same Awk::Source object.
* If Awk::openSource returns 0, the interpreter calls Awk::closeSource
* immediately without calling Awk::readSource. If Awk::openSource
* returns -1, Awk::closeSource is not called. If readSource returns
* -1, the source code reading is aborted and Awk::closeSource is
* called.
*
* The interpter is able to write back the internal parse tree
* if openSource returns 1 when the mode of the Source object
* is set to Awk::Source::WRITE. Then it calls writeSource until
* it has finished writing the parse tree, and calls closeSource.
*
*/ */
/*@{*/ /*@{*/
/** opens the source stream */ /** opens the source stream. */
virtual int openSource (Source& io) = 0; virtual int openSource (Source& io) = 0;
/** closes the source stream */ /** closes the source stream */
virtual int closeSource (Source& io) = 0; virtual int closeSource (Source& io) = 0;

View File

@ -1,5 +1,5 @@
/* /*
* $Id: Awk.cs,v 1.2 2007/09/06 09:37:42 bacon Exp $ * $Id: Awk.cs,v 1.3 2007/09/18 14:30:41 bacon Exp $
*/ */
using System; using System;
@ -50,7 +50,7 @@ namespace ase.com
icpc.FindConnectionPoint(ref g, out icp); icpc.FindConnectionPoint(ref g, out icp);
icp.Advise(this, out this.cookie); icp.Advise(this, out this.cookie);
} }
catch (System.Runtime.InteropServices.COMException ex) catch (System.Runtime.InteropServices.COMException)
{ {
this.cookie = -1; this.cookie = -1;
//System.Windows.Forms.MessageBox.Show(ex.Message); //System.Windows.Forms.MessageBox.Show(ex.Message);

View File

@ -1,5 +1,5 @@
/* /*
* $Id: StdAwk.cs,v 1.1 2007/09/03 03:50:39 bacon Exp $ * $Id: StdAwk.cs,v 1.2 2007/09/18 14:30:41 bacon Exp $
*/ */
using System; using System;
@ -37,7 +37,7 @@ namespace ase.com
/* TODO: atoi */ /* TODO: atoi */
try { t = System.Double.Parse((string)args[0]); } try { t = System.Double.Parse((string)args[0]); }
catch (System.Exception e) { t = 0; } catch (System.Exception) { t = 0; }
return System.Math.Sin(t); return System.Math.Sin(t);
} }

View File

@ -29,10 +29,6 @@
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Interop.ASECOM, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\cnt\obj\Debug\Interop.ASECOM.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Data" /> <Reference Include="System.Data" />
<Reference Include="System.Deployment" /> <Reference Include="System.Deployment" />
@ -75,6 +71,16 @@
</Compile> </Compile>
<Compile Include="StdAwk.cs" /> <Compile Include="StdAwk.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<COMReference Include="ASECOM">
<Guid>{F9C69806-16A1-4162-998A-876B33C470BF}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
</COMReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.