Displaying 1 result from an estimated 1 matches for "cipcerror".
2004 Oct 23
0
win32-ipc, with blocks (code review please)
...Dan
/****************************************************************************
* ipc.c - source for the win32-ipc package
****************************************************************************/
#include "ruby.h"
#include <windows.h>
#include "ipc.h"
static VALUE cIpcError;
static char error[MAX_STRING];
static VALUE ipc_init(VALUE self, VALUE obj){
IpcStruct* ptr;
Data_Get_Struct(self,IpcStruct,ptr);
ptr->handle = (HANDLE)NUM2UINT(obj);
return self;
}
static VALUE ipc_allocate(VALUE klass){
IpcStruct* ptr = malloc(sizeof(IpcStruct));
return Da...