/[cvs]/stack/stack.h
ViewVC logotype

Diff of /stack/stack.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.11 by teddy, Mon Mar 11 08:53:00 2002 UTC revision 1.13 by masse, Tue Mar 12 14:53:19 2002 UTC
# Line 25  Line 25 
25  /* First, define some types. */  /* First, define some types. */
26    
27  struct cons_struct;  struct cons_struct;
28    struct symbol_struct;
29    
30  /* A value of some type */  /* A value of some type */
31  typedef struct {  typedef struct {
# Line 48  typedef struct { Line 49  typedef struct {
49    union {    union {
50      void *ptr;                  /* Pointer to the content */      void *ptr;                  /* Pointer to the content */
51      struct cons_struct *c;      /* ...or a pointer to a cons cell */      struct cons_struct *c;      /* ...or a pointer to a cons cell */
52        struct symbol_struct *sym;  /* ...or a pointer to a symbol */
53      int i;                      /* ...or an integer */      int i;                      /* ...or an integer */
54      float f;                    /* ...or a floating point number */      float f;                    /* ...or a floating point number */
55    } content;                    /* Stores a pointer or an integer */    } content;                    /* Stores a pointer or an integer */
# Line 85  typedef struct { Line 87  typedef struct {
87    stackitem *gc_ref;    stackitem *gc_ref;
88    int gc_limit, gc_count;    int gc_limit, gc_count;
89    
90    cons *head;                   /* Head of the stack */    value *head;                  /* Head of the stack */
91    hashtbl symbols;              /* Hash table of all variable bindings */    hashtbl symbols;              /* Hash table of all variable bindings */
92    int err;                      /* Error flag */    int err;                      /* Error flag */
93    char *in_string;              /* Input pending to be read */    char *in_string;              /* Input pending to be read */
# Line 116  extern void mangle(environment*); Line 118  extern void mangle(environment*);
118  void push_sym(environment*, const char*);  void push_sym(environment*, const char*);
119  extern void nl();  extern void nl();
120  extern void type(environment*);  extern void type(environment*);
121  void print_h(cons*, int);  void print_h(value*, int);
122  extern void print_(environment*);  extern void print_(environment*);
123  extern void print(environment*);  extern void print(environment*);
124  extern void princ_(environment*);  extern void princ_(environment*);
125  extern void princ(environment*);  extern void princ(environment*);
126  void print_st(cons*, long);  void print_st(value*, long);
127  extern void printstack(environment*);  extern void printstack(environment*);
128  extern void swap(environment*);  extern void swap(environment*);
129  extern void rot(environment*);  extern void rot(environment*);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.13

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26