| version 1.40, 2015/08/27 03:03:33 |
version 1.42, 2016/07/14 08:16:19 |
|
|
| /* -*- mode: C -*- */ |
/* -*- mode: C -*- */ |
| /* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.39 2015/08/26 20:17:28 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 59 typedef struct OXFILE{ |
|
| Line 61 typedef struct OXFILE{ |
|
| 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; |
| } cmo; |
} cmo; |
| Line 271 cmo_list* list_append_monomial(cmo_list* , cm |
|
| Line 285 cmo_list* list_append_monomial(cmo_list* , cm |
|
| cmo_list* list_appendl(cmo_list*, ...); |
cmo_list* list_appendl(cmo_list*, ...); |
| int list_length(cmo_list* ); |
int list_length(cmo_list* ); |
| cmo* list_nth(cmo_list* , int n); |
cmo* list_nth(cmo_list* , int n); |
| |
cmo* list_first_cmo(cmo_list *); |
| |
|
| int cmolen_cmo(cmo* m); |
int cmolen_cmo(cmo* m); |
| void dump_buffer_init(char *s); |
void dump_buffer_init(char *s); |