[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.7 and 1.8

version 1.7, 1999/11/06 21:39:36 version 1.8, 1999/11/07 12:12:55
Line 1 
Line 1 
 /* -*- mode: C; coding: euc-japan -*- */  /* -*- mode: C; coding: euc-japan -*- */
 /* $OpenXM: OpenXM/src/ox_math/ox.h,v 1.6 1999/11/04 18:13:48 ohara Exp $ */  /* $OpenXM: OpenXM/src/ox_math/ox.h,v 1.7 1999/11/06 21:39:36 ohara Exp $ */
   
 #ifndef _OX_H_  #ifndef _OX_H_
   
Line 39  typedef int oxfd;
Line 39  typedef int oxfd;
 #if 0  #if 0
 /* そのうちこちらに移行したい... */  /* そのうちこちらに移行したい... */
 typedef struct {  typedef struct {
         int fd_read;      int fd_read;
         int fd_write;      int fd_write;
         int byteorder;      int byteorder;
 } oxfile;  } oxfile;
 typedef oxfile *oxfd;  typedef oxfile *oxfd;
 #endif  #endif
Line 77  typedef struct {
Line 77  typedef struct {
   
 typedef struct {  typedef struct {
     int tag;      int tag;
         int size;      int size;
     char *body;      char *body;
 } cmo_datum;  } cmo_datum;
   
Line 108  typedef struct {
Line 108  typedef struct {
   
   
 typedef struct {  typedef struct {
         int tag;      int tag;
         int length;      int length;
         int *exps;      int *exps;
         cmo *coef;      cmo *coef;
 } cmo_monomial32;  } cmo_monomial32;
   
 typedef struct {  typedef struct {
Line 121  typedef struct {
Line 121  typedef struct {
   
 typedef struct {  typedef struct {
     int tag;      int tag;
         cmo *num;  /* 分子 (cmo_zz) */      cmo *num;  /* 分子 (cmo_zz) */
         cmo *den;  /* 分母 (cmo_zz) */      cmo *den;  /* 分母 (cmo_zz) */
 } cmo_qq;  } cmo_qq;
   
 /* cmo_list の派生. append_cmo_list を使ってよい. */  /* cmo_list の派生. append_cmo_list を使ってよい. */
Line 130  typedef struct {
Line 130  typedef struct {
     int tag;      int tag;
     int length;    /* number of monomials */      int length;    /* number of monomials */
     cell head[1];  /* a list of monomials */      cell head[1];  /* a list of monomials */
         cmo *ringdef;      cmo *ringdef;
 } cmo_distributed_polynomial;  } cmo_distributed_polynomial;
   
 typedef cmo ox;  typedef cmo ox;
Line 145  typedef struct {
Line 145  typedef struct {
     cmo *cmo;      cmo *cmo;
 } ox_data;  } ox_data;
   
 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);
 cmo_mathcap*  new_cmo_mathcap(cmo* ob);  cmo_mathcap*       new_cmo_mathcap(cmo* ob);
 cmo_list*     new_cmo_list();  cmo_list*          new_cmo_list();
 cmo_monomial32* new_cmo_monomial32();  cmo_monomial32*    new_cmo_monomial32();
 cmo_monomial32* new_cmo_monomial32_size(int size);  cmo_monomial32*    new_cmo_monomial32_size(int size);
 cmo_zz*       new_cmo_zz();  cmo_zz*            new_cmo_zz();
 cmo_zz*       new_cmo_zz_size(int size);  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_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);
 cmo_error2*   new_cmo_error2(cmo* ob);  cmo_error2*        new_cmo_error2(cmo* ob);
   
 ox_data*      new_ox_data(cmo* c);  ox_data*           new_ox_data(cmo* c);
 ox_command*   new_ox_command(int sm_code);  ox_command*        new_ox_command(int sm_code);
   
 cmo_error2*   gen_error_object(int err_code);  cmo_error2*        make_error_object(int err_code, cmo *ob);
 cmo*          make_mathcap_object(int version, char *id_string);  cmo*               make_mathcap_object(int version, char *id_string);
   
 void          resize_mpz(mpz_ptr mpz, int size);  void               resize_mpz(mpz_ptr mpz, int size);
 cmo*          receive_cmo(int fd);  cmo*               receive_cmo(int fd);
 cmo*          receive_cmo2(int fd);  cmo*               receive_cmo2(int fd);
 int           receive_int32(int fd);  int                receive_int32(int fd);
 int           receive_ox_tag(int fd);  int                receive_ox_tag(int fd);
   
 int           send_cmo(int fd, cmo* m);  int           send_cmo(int fd, cmo* m);
 int           send_int32(int fd, int integer);  int           send_int32(int fd, int integer);
Line 194  char*         ox_popString(ox_file_t sv, int fd);
Line 194  char*         ox_popString(ox_file_t sv, int fd);
 cmo*          ox_pop_cmo(ox_file_t sv, int fd);  cmo*          ox_pop_cmo(ox_file_t sv, int fd);
 void          ox_reset(ox_file_t sv);  void          ox_reset(ox_file_t sv);
 ox_file_t     ox_start(char* host, char* prog1, char* prog2);  ox_file_t     ox_start(char* host, char* prog1, char* prog2);
   ox_file_t     ox_start_insecure_nonreverse(char* host, short portControl, short portStream);
   
 int           init_dump_buff(char *buff);  int           init_dump_buff(char *buff);
 int           dump_cmo(cmo* m);  int           dump_cmo(cmo* m);

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

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