X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=blobdiff_plain;f=idlcomp%2Ftests%2Fcpp-server.cc;h=02d4924744a8d66cb406692487945e9cc5856a13;hp=528ee1eefabcdb3af762604c2cdc6f8ea72c39a5;hb=cc1bee96fd874ff2c85c765f81ec2f4ba4584b9d;hpb=9fa824211a5dcb9a87d18b45d604599748dbff6c diff --git a/idlcomp/tests/cpp-server.cc b/idlcomp/tests/cpp-server.cc index 528ee1e..02d4924 100644 --- a/idlcomp/tests/cpp-server.cc +++ b/idlcomp/tests/cpp-server.cc @@ -5,7 +5,7 @@ using System::IO::File; using namespace System::IO::FileStream_ns; using System::RunTime::Array; using System::RunTime::MutableArray; - +using System::RunTime::ORBMM; namespace Stuff { using System::Notifiers::Notifier; @@ -79,7 +79,7 @@ public: f.size(size); } - void read(Array *buf, uint64_t *len) + void read(Array *buf, uint64_t *len) { if (!f) { // throw exc @@ -90,7 +90,7 @@ public: pos += *len; } - void read_foo(MutableArray buf, uint64_t len, Notifier n) + void read_foo(MutableArray buf, uint64_t len, Notifier n) { if (!f) { // throw exc @@ -101,7 +101,7 @@ public: pos += len; } - void write(Array buf, uint64_t *len) + void write(Array buf, uint64_t *len) { if (!f) { // throw exc @@ -112,7 +112,7 @@ public: pos += *len; } - void write_foo(Array buf, uint64_t len, Notifier n) + void write_foo(Array buf, uint64_t len, Notifier n) { printf("write_foo, this %p\n", this); @@ -155,11 +155,11 @@ int main() } printf("fs is %p\n", (void *)fs); - fs.write_async(Array(NULL, 0), 0, NULL); + fs.write_async(nullarray, 0, NULL); printf("fs is %p\n", (void *)fs); System::IO::OStream ostr = fs; printf("ostr is %p\n", (void *)ostr); - ostr.write_async(Array(NULL, 0), 0, NULL); + ostr.write_async(nullarray, 0, NULL); System::Object obj = fs; System::IO::FileStream fs2 = System::IO::FileStream::downcast(obj); System::IO::OStream os2 = System::IO::OStream::downcast(obj);