| version 1.41, 2016/04/01 18:12:39 |
version 1.42, 2016/07/14 08:16:19 |
|
|
| /* -*- mode: C -*- */ |
/* -*- mode: C -*- */ |
| /* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.40 2015/08/27 03:03:33 ohara Exp $ */ |
/* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.41 2016/04/01 18:12:39 ohara Exp $ */ |
| |
|
| #ifndef _OX_TOOLKIT_H_ |
#ifndef _OX_TOOLKIT_H_ |
| #define _OX_TOOLKIT_H_ |
#define _OX_TOOLKIT_H_ |
|
|
| |
|
| #if defined(_MSC_VER) |
#if defined(_MSC_VER) |
| #include <malloc.h> |
#include <malloc.h> |
| |
#else |
| |
#include <sys/select.h> |
| #endif |
#endif |
| |
|
| #define MALLOC(x) GC_MALLOC((x)) |
#define MALLOC(x) GC_MALLOC((x)) |
| Line 58 typedef struct OXFILE{ |
|
| Line 60 typedef struct OXFILE{ |
|
| int (*send_double)(struct OXFILE *oxfp, double int64); |
int (*send_double)(struct OXFILE *oxfp, double int64); |
| double (*receive_double)(struct OXFILE *oxfp); |
double (*receive_double)(struct OXFILE *oxfp); |
| } OXFILE; |
} OXFILE; |
| |
|
| |
#if 0 |
| |
#define OX_FD_SETSIZE FD_SETSIZE |
| |
#else |
| |
#define OX_FD_SETSIZE 32 |
| |
#endif |
| |
|
| |
typedef struct { |
| |
int count; |
| |
fd_set fdset; |
| |
OXFILE *p[OX_FD_SETSIZE]; |
| |
} OXFILE_set; |
| |
|
| typedef struct cmo { |
typedef struct cmo { |
| int tag; |
int tag; |