=================================================================== RCS file: /home/cvs/OpenXM/src/ox_math/Attic/ox.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- OpenXM/src/ox_math/Attic/ox.h 1999/11/02 21:15:02 1.4 +++ OpenXM/src/ox_math/Attic/ox.h 1999/11/03 10:56:40 1.5 @@ -1,6 +1,5 @@ /* -*- mode: C; coding: euc-japan -*- */ -/* $OpenXM: OpenXM/src/ox_math/ox.h,v 1.3 1999/11/02 18:58:25 ohara Exp $ */ -/* $Id: ox.h,v 1.4 1999/11/02 21:15:02 ohara Exp $ */ +/* $OpenXM: OpenXM/src/ox_math/ox.h,v 1.4 1999/11/02 21:15:02 ohara Exp $ */ #ifndef _OX_H_ @@ -32,13 +31,25 @@ YYY_cmo_XXX ´Ø¿ô¤¬½èÍý¤¹¤ë¡£cmo ¤ÎÆâÉô¤Ë cmo_ZZZ ¤Ø¤Î¥ ¤¢¤ë¤È¤­¤Ë¤Ï¡¢¤½¤Î¼ïÎà¤Ë¤è¤é¤º¤Ë YYY_cmo ´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹ */ - #define DEFAULT_LOGFILE "/tmp/result" +/* Open Xm File Descripter */ +typedef int oxfd; + +#if 0 +/* ¤½¤Î¤¦¤Á¤³¤Á¤é¤Ë°Ü¹Ô¤·¤¿¤¤... */ +typedef struct { + int fd_read; + int fd_write; + int byteorder; +} oxfile; +typedef oxfile *oxfd; +#endif + /* ¥µ¡¼¥Ð¡¼¤È¤ÎÄÌ¿®Ï©¤ËÍѤ¤¤ë¥Õ¥¡¥¤¥ë¥Ç¥£¥¹¥¯¥ê¥×¥¿¤Î¥Ú¥¢. */ typedef struct { - int stream; - int control; + oxfd stream; + oxfd control; } __ox_file_struct; typedef __ox_file_struct *ox_file_t; @@ -194,15 +205,15 @@ int print_cmo_list(cmo_list* li); int print_cmo_mathcap(cmo_mathcap* c); int print_cmo_string(cmo_string* c); -int decideByteOrder(int fd_read, int fd_write, int order); -int decideByteOrder2(int fd_read, int fd_write, int order); +int decideByteOrderClient(oxfd fd, int order); +int decideByteOrderServer(oxfd fd, int order); int next_serial(); void setCmotypeDisable(int type); cmo_zz* new_cmo_zz_set_string(char *s); -char* convert_zz_to_cstring(cmo_zz *c); -char* convert_cmo_to_cstring(cmo *m); -char* convert_null_to_cstring(); -char* convert_int_to_cstring(int integer); +char* convert_zz_to_string(cmo_zz *c); +char* convert_cmo_to_string(cmo *m); +char* convert_null_to_string(); +char* convert_int_to_string(int integer); #endif /* _OX_H_ */