From d3cdbc62f188e6f497618be4e5d093e9be04de53 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 26 Sep 2007 00:27:00 +0000 Subject: [PATCH] Recovered from cvs revision 2007-09-25 15:27:00 --- ase/net/Awk.hpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ase/net/Awk.hpp b/ase/net/Awk.hpp index 3a8d356e..9d2ce5c8 100644 --- a/ase/net/Awk.hpp +++ b/ase/net/Awk.hpp @@ -1,5 +1,5 @@ /* - * $Id: Awk.hpp,v 1.24 2007/09/24 15:12:16 bacon Exp $ + * $Id: Awk.hpp,v 1.25 2007/09/25 05:49:55 bacon Exp $ * * {License} */ @@ -183,6 +183,12 @@ namespace ASE } public: + bool SetGlobal (int id, System::String^ v) + { + cli::pin_ptr nptr = PtrToStringChars(v); + return run.setGlobal (id, nptr, v->Length) == 0; + } + bool SetGlobal (int id, long_t v) { return run.setGlobal (id, v) == 0; @@ -233,7 +239,11 @@ namespace ASE return run.setGlobal (id, (real_t)(double)v) == 0; } - // TODO: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX + + bool GetGlobal (int id, [System::Runtime::InteropServices::Out] Argument^ v) + { + return run.getGlobal (id, v->placeHolder) == 0; + } protected: ASE::Awk::Run& run;