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

Diff of /stack/stack.h

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

revision 1.4 by teddy, Thu Mar 7 03:28:29 2002 UTC revision 1.8 by masse, Sun Mar 10 09:13:36 2002 UTC
# Line 28  Line 28 
28  typedef struct {  typedef struct {
29    enum {    enum {
30      integer,      integer,
31        tfloat,
32      string,      string,
33      func,                       /* Function pointer */      func,                       /* Function pointer */
34      symb,      symb,
35      list      list
36    } type:3;                     /* Type of stack element */    } type:4;                     /* Type of stack element */
37    
38    int gc_garb:1;    int gc_garb:1;
39      int gc_protect:1;
40    
41    union {    union {
42      void *ptr;                  /* Pointer to the content */      void *ptr;                  /* Pointer to the content */
43      int val;                    /* ...or an integer */      int i;                      /* ...or an integer */
44        float f;
45    } content;                    /* Stores a pointer or an integer */    } content;                    /* Stores a pointer or an integer */
46    
47  } value;  } value;
# Line 67  typedef struct stackitem_struct Line 70  typedef struct stackitem_struct
70     defined symbols */     defined symbols */
71  typedef struct {  typedef struct {
72    stackitem *gc_ref;    stackitem *gc_ref;
   stackitem *gc_protect;  
73    int gc_limit, gc_count;    int gc_limit, gc_count;
74    
75    stackitem *head;              /* Head of the stack */    stackitem *head;              /* Head of the stack */
# Line 90  extern void toss(environment*); Line 92  extern void toss(environment*);
92  symbol **hash(hashtbl, const char*);  symbol **hash(hashtbl, const char*);
93  value* new_val(environment*);  value* new_val(environment*);
94  void gc_mark(value*);  void gc_mark(value*);
95    void gc_maybe(environment *env);
96  extern void gc_init(environment*);  extern void gc_init(environment*);
97  void push_val(environment*, value*);  void push_val(environment*, value*);
98  void push_int(environment*, int);  void push_int(environment*, int);
99    void push_float(environment*, float);
100  void push_cstring(environment*, const char*);  void push_cstring(environment*, const char*);
101  char *mangle_str(const char*);  char *mangle_str(const char*);
102  extern void mangle(environment*);  extern void mangle(environment*);
# Line 136  extern void to(environment*); Line 140  extern void to(environment*);
140  extern void readline(environment*);  extern void readline(environment*);
141  extern void sx_72656164(environment*);  extern void sx_72656164(environment*);
142  extern void foreach(environment*);  extern void foreach(environment*);
143  void protect(environment*, value*);  void protect(value*);
144  void unprotect(environment*);  void unprotect(value*);
145  extern void copying(environment *env);  extern void copying(environment*);
146  extern void warranty(environment *env);  extern void warranty(environment*);
147    extern void sx_2a(environment*);
148    extern void sx_2f(environment*);
149    extern void mod(environment*);
150    extern void sx_3c(environment*);
151    extern void sx_3c3d(environment*);
152    extern void sx_3e3d(environment*);
153    extern void sx_646976(environment*);

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

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26