[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.18 and 1.23

version 1.18, 2003/05/28 08:43:59 version 1.23, 2003/06/05 21:12:07
Line 1 
Line 1 
 /* -*- mode: C -*- */  /* -*- mode: C -*- */
 /* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.17 2003/05/25 16:35:41 ohara Exp $ */  /* $OpenXM: OpenXM/src/ox_toolkit/ox_toolkit.h,v 1.22 2003/06/03 16:06:48 ohara Exp $ */
   
 #ifndef _OX_TOOLKIT_H_  #ifndef _OX_TOOLKIT_H_
   
Line 18  extern "C" {
Line 18  extern "C" {
 #include <ox/cmotag.h>  #include <ox/cmotag.h>
 #include <ox/oxMessageTag.h>  #include <ox/oxMessageTag.h>
 #include <ox/smCommand.h>  #include <ox/smCommand.h>
   #include <gc/gc.h>
   
   #define MALLOC(x) GC_MALLOC((x))
   #define MALLOC_ATOMIC(x) GC_MALLOC_ATOMIC((x))
   #define ALLOCA(x) alloca((x))
   /* #define FREE(x)   free((x)) */
   #define FREE(x)
   
 #if !defined(__GNUC__) && !defined(__inline__)  #if !defined(__GNUC__) && !defined(__inline__)
 #define __inline__  #define __inline__
 #endif  #endif
Line 44  typedef struct OXFILE{
Line 51  typedef struct OXFILE{
     struct OXFILE *control;  /* pointer to his control server. */      struct OXFILE *control;  /* pointer to his control server. */
     struct mathcap *mathcap;      struct mathcap *mathcap;
     int error;      int error;
       char *wbuf;
       int wbuf_size;
       int wbuf_count;
 } OXFILE;  } OXFILE;
   
 typedef struct cmo {  typedef struct cmo {
Line 84  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 201  cell*              list_first(cmo_list *);
Line 212  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.18  
changed lines
  Added in v.1.23

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