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

Diff for /OpenXM/src/ox_toolkit/ox_toolkit.h between version 1.21 and 1.24

version 1.21, 2003/06/02 20:38:41 version 1.24, 2003/08/21 12:44:06
Line 1 
Line 1 
 /* -*- mode: C -*- */  /* -*- mode: C -*- */
 /* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.20 2003/06/02 10:25:57 ohara Exp $ */  /* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.23 2003/06/05 21:12:07 ohara Exp $ */
   
 #ifndef _OX_TOOLKIT_H_  #ifndef _OX_TOOLKIT_H_
   
Line 21  extern "C" {
Line 21  extern "C" {
 #include <gc/gc.h>  #include <gc/gc.h>
   
 #define MALLOC(x) GC_MALLOC((x))  #define MALLOC(x) GC_MALLOC((x))
   #define MALLOC_ATOMIC(x) GC_MALLOC_ATOMIC((x))
 #define ALLOCA(x) alloca((x))  #define ALLOCA(x) alloca((x))
 /* #define FREE(x)   free((x)) */  /* #define FREE(x)   free((x)) */
 #define FREE(x)  #define FREE(x)
Line 93  typedef struct cell {
Line 94  typedef struct cell {
     struct cmo *cmo;      struct cmo *cmo;
     struct cell *next;      struct cell *next;
     struct cell *prev;      struct cell *prev;
       int exp;
 } cell;  } cell;
   
 typedef struct {  typedef struct {
Line 133  typedef struct {
Line 135  typedef struct {
     cmo *ringdef;      cmo *ringdef;
 } cmo_distributed_polynomial;  } cmo_distributed_polynomial;
   
   /* The following is a derived class from cmo_list.
      that is, list_append can be used. */
   typedef struct {
       int tag;
       int length;   /* number of monomials */
       cell head[1]; /* list of monomials */
       int var;      /* name of the main variable */
   } cmo_polynomial_in_one_variable;
   
   typedef struct {
       int tag;
       cmo_list *ringdef; /* list of variables */
       cmo *coef;  /* ZZ, QQ, int32, Poly_in_1var, Tree, Zero, DPoly */
   } cmo_recursive_polynomial;
   
 typedef cmo ox;  typedef cmo ox;
   
 typedef ox ox_sync_ball;  typedef ox ox_sync_ball;
Line 210  cell*              list_first(cmo_list *);
Line 227  cell*              list_first(cmo_list *);
 int                list_endof(cmo_list *, cell *el);  int                list_endof(cmo_list *, cell *el);
 cell*              list_next(cell *el);  cell*              list_next(cell *el);
 cmo_list*          list_append(cmo_list*, cmo *ob);  cmo_list*          list_append(cmo_list*, cmo *ob);
   cmo_list*          list_append_monomial(cmo_list* , cmo* coef, int exp);
 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);

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.24

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