Bunch More Work, mostly cleanup and organization.
Wanted to do this now before it gets out of hand. Ideally, this can be used for a Winelib-like option eventually, too, where you don't load OS/2 binaries at all but rather compile and link your OS/2-based source code against this API reimplementation.
This commit is contained in:
1 parent
6220544d06
commit
bee2afe62b
21 files changed
+1256
-260
No files matched your search
+6
-5
@@ -1,12 +1,13 @@
|
||||
#include "native.h"
|
||||
#include <unistd.h>
|
||||
|
||||
#include "os2native.h"
|
||||
#include "msg.h"
|
||||
|
||||
NATIVE_MODULE(msg);
|
||||
|
||||
static uint32 DosPutMessage(uint32 handle, uint32 msglen, const char *msg)
|
||||
APIRET DosPutMessage(HFILE handle, ULONG msglen, PCHAR msg)
|
||||
{
|
||||
// !!! FIXME: this isn't right, but good enough for now.
|
||||
fwrite(msg, msglen, 1, stdout);
|
||||
fflush(stdout);
|
||||
write(handle, msg, msglen);
|
||||
return 0;
|
||||
} // DosPutMessage
|
||||
|
||||
|
||||
Reference in new issue
Block a user