[BACK]Return to ox.h CVS log [TXT][DIR] Up to [local] / OpenXM / src / ox_math

Diff for /OpenXM/src/ox_math/Attic/ox.h between version 1.4 and 1.7

version 1.4, 1999/11/02 21:15:02 version 1.7, 1999/11/06 21:39:36
Line 1 
Line 1 
 /* -*- mode: C; coding: euc-japan -*- */  /* -*- mode: C; coding: euc-japan -*- */
 /* $OpenXM: OpenXM/src/ox_math/ox.h,v 1.3 1999/11/02 18:58:25 ohara Exp $ */  /* $OpenXM: OpenXM/src/ox_math/ox.h,v 1.6 1999/11/04 18:13:48 ohara Exp $ */
 /* $Id$ */  
   
 #ifndef _OX_H_  #ifndef _OX_H_
   
Line 32  YYY_cmo_XXX ´Ø¿ô¤¬½èÍý¤¹¤ë¡£cmo ¤ÎÆâÉô¤Ë cmo_ZZZ ¤Ø¤Î¥
Line 31  YYY_cmo_XXX ´Ø¿ô¤¬½èÍý¤¹¤ë¡£cmo ¤ÎÆâÉô¤Ë cmo_ZZZ ¤Ø¤Î¥
 ¤¢¤ë¤È¤­¤Ë¤Ï¡¢¤½¤Î¼ïÎà¤Ë¤è¤é¤º¤Ë YYY_cmo ´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹  ¤¢¤ë¤È¤­¤Ë¤Ï¡¢¤½¤Î¼ïÎà¤Ë¤è¤é¤º¤Ë YYY_cmo ´Ø¿ô¤ò¸Æ¤Ó½Ð¤¹
 */  */
   
   
 #define DEFAULT_LOGFILE  "/tmp/result"  #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 {  typedef struct {
     int stream;      oxfd stream;
     int control;      oxfd control;
 } __ox_file_struct;  } __ox_file_struct;
   
 typedef __ox_file_struct *ox_file_t;  typedef __ox_file_struct *ox_file_t;
Line 92  typedef struct cell {
Line 103  typedef struct cell {
 typedef struct {  typedef struct {
     int tag;      int tag;
     int length;   /* ¥ê¥¹¥È¤ÎŤµ(ɬÍ×??) */      int length;   /* ¥ê¥¹¥È¤ÎŤµ(ɬÍ×??) */
     cell *head;      cell head[1];
 } cmo_list;  } cmo_list;
   
   
 typedef struct {  typedef struct {
         int tag;          int tag;
         int length;          int length;
Line 116  typedef struct {
Line 128  typedef struct {
 /* cmo_list ¤ÎÇÉÀ¸. append_cmo_list ¤ò»È¤Ã¤Æ¤è¤¤. */  /* cmo_list ¤ÎÇÉÀ¸. append_cmo_list ¤ò»È¤Ã¤Æ¤è¤¤. */
 typedef struct {  typedef struct {
     int tag;      int tag;
     int length;  /* number of monomials */      int length;    /* number of monomials */
     cell *head;  /* a list of monomials */      cell head[1];  /* a list of monomials */
         cmo *ringdef;          cmo *ringdef;
 } cmo_distributed_polynomial;  } cmo_distributed_polynomial;
   
Line 133  typedef struct {
Line 145  typedef struct {
     cmo *cmo;      cmo *cmo;
 } ox_data;  } ox_data;
   
 cell*         new_cell(cmo* newcmo);  
 cmo_null*     new_cmo_null();  cmo_null*     new_cmo_null();
 cmo_int32*    new_cmo_int32(int i);  cmo_int32*    new_cmo_int32(int i);
 cmo_string*   new_cmo_string(char* s);  cmo_string*   new_cmo_string(char* s);
Line 146  cmo_zz*       new_cmo_zz_size(int size);
Line 157  cmo_zz*       new_cmo_zz_size(int size);
 cmo_zz*       new_cmo_zz_set_si(int integer);  cmo_zz*       new_cmo_zz_set_si(int integer);
 cmo_zz*       new_cmo_zz_noinit();  cmo_zz*       new_cmo_zz_noinit();
 cmo_zero*     new_cmo_zero();  cmo_zero*     new_cmo_zero();
   cmo_distributed_polynomial* new_cmo_distributed_polynomial();
 cmo_dms_generic* new_cmo_dms_generic();  cmo_dms_generic* new_cmo_dms_generic();
 cmo_ring_by_name* new_cmo_ring_by_name(cmo* ob);  cmo_ring_by_name* new_cmo_ring_by_name(cmo* ob);
 cmo_indeterminate* new_cmo_indeterminate(cmo* ob);  cmo_indeterminate* new_cmo_indeterminate(cmo* ob);
Line 170  int           send_ox_cmo(int fd, cmo* m);
Line 182  int           send_ox_cmo(int fd, cmo* m);
 void          send_ox_command(int fd, int sm_command);  void          send_ox_command(int fd, int sm_command);
 int           send_ox_tag(int fd, int tag);  int           send_ox_tag(int fd, int tag);
   
 int           append_cmo_list(cmo_list* this, cmo *newcmo);  int           append_cmo_list(cmo_list* this, cmo *ob);
 int           length_cmo_list(cmo_list* this);  int           length_cmo_list(cmo_list* this);
 cell*         next_cell(cell *this);  cell*         next_cell(cell *this);
 int           cmolen_cmo(cmo* m);  int           cmolen_cmo(cmo* m);
Line 194  int           print_cmo_list(cmo_list* li);
Line 206  int           print_cmo_list(cmo_list* li);
 int           print_cmo_mathcap(cmo_mathcap* c);  int           print_cmo_mathcap(cmo_mathcap* c);
 int           print_cmo_string(cmo_string* c);  int           print_cmo_string(cmo_string* c);
   
 int           decideByteOrder(int fd_read, int fd_write, int order);  int           decideByteOrderClient(oxfd fd, int order);
 int           decideByteOrder2(int fd_read, int fd_write, int order);  int           decideByteOrderServer(oxfd fd, int order);
 int           next_serial();  int           next_serial();
 void          setCmotypeDisable(int type);  void          setCmotypeDisable(int type);
   
 cmo_zz*       new_cmo_zz_set_string(char *s);  cmo_zz*       new_cmo_zz_set_string(char *s);
 char*         convert_zz_to_cstring(cmo_zz *c);  char*         convert_zz_to_string(cmo_zz *c);
 char*         convert_cmo_to_cstring(cmo *m);  char*         convert_cmo_to_string(cmo *m);
 char*         convert_null_to_cstring();  char*         convert_null_to_string();
 char*         convert_int_to_cstring(int integer);  char*         convert_int_to_string(int integer);
   
 #endif /* _OX_H_ */  #endif /* _OX_H_ */

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.7

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>