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

Diff of /stack/stack.h

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

revision 1.22 by masse, Mon Aug 4 11:22:02 2003 UTC revision 1.23 by masse, Mon Aug 4 13:50:53 2003 UTC
# Line 57  Line 57 
57    
58  struct cons_struct;  struct cons_struct;
59  struct symbol_struct;  struct symbol_struct;
60    struct environment_struct;
61    
62    /* A type for pointers to external functions */
63    typedef void (*funcp)(struct environment_struct*);
64    /* funcp is a pointer to a void function (environment *) */
65    
66  /* A value of some type */  /* A value of some type */
67  typedef struct {  typedef struct {
# Line 86  typedef struct { Line 91  typedef struct {
91      FILE *p;                    /* ...or an I/O stream */      FILE *p;                    /* ...or an I/O stream */
92      int i;                      /* ...or an integer */      int i;                      /* ...or an integer */
93      float f;                    /* ...or a floating point number */      float f;                    /* ...or a floating point number */
94        funcp func;                 /* ...or a function */
95        char *string;               /* ...or a string */
96    } content;                    /* Stores a pointer or an integer */    } content;                    /* Stores a pointer or an integer */
97    
98  } value;  } value;
# Line 133  typedef struct { Line 140  typedef struct {
140    int gc_count;                 /* Amount currently allocated */    int gc_count;                 /* Amount currently allocated */
141  } environment;  } environment;
142    
 /* A type for pointers to external functions */  
 typedef void (*funcp)(environment*); /* funcp is a pointer to a void  
                                          function (environment *) */  
143    
144  void init_env(environment*);  void init_env(environment*);
145  void printerr(const char*);  void printerr(const char*);

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26