pike.git / src / program.h

version» Context lines:

pike.git/src/program.h:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/      /* -  * $Id: program.h,v 1.48 1999/01/31 09:02:02 hubbe Exp $ +  * $Id: program.h,v 1.49 1999/02/01 02:41:45 hubbe Exp $    */   #ifndef PROGRAM_H   #define PROGRAM_H      #include <stdarg.h>   #include "global.h"   #include "pike_types.h" -  + #include "pike_macros.h"   #include "svalue.h"   #include "time_stuff.h"      #define LFUN___INIT 0   #define LFUN_CREATE 1   #define LFUN_DESTROY 2   #define LFUN_ADD 3   #define LFUN_SUBTRACT 4   #define LFUN_AND 5   #define LFUN_OR 6
pike.git/src/program.h:186:      struct program   {    INT32 refs;   #ifdef PIKE_SECURITY    struct object *prot;   #endif    INT32 id; /* used to identify program in caches */    INT32 flags;    INT32 storage_needed; /* storage needed in the object struct */ +  unsigned INT8 alignment_needed;    struct timeval timestamp;       struct program *next;    struct program *prev;       void (*init)(struct object *);    void (*exit)(struct object *);    void (*gc_marked)(struct object *);    void (*gc_check)(struct object *);   #ifdef PIKE_DEBUG
pike.git/src/program.h:243:   extern struct program *new_program;   extern struct program *first_program;   extern int compiler_pass;   extern long local_class_counter;   extern int catch_level;   extern INT32 num_used_modules;   extern struct program *pike_trampoline_program;      #define COMPILER_IN_CATCH 1    + #define ADD_STORAGE(X) low_add_storage(sizeof(X), ALIGNOF(X),0) +    #define FOO(NUMTYPE,TYPE,NAME) void PIKE_CONCAT(add_to_,NAME(TYPE ARG));   #include "program_areas.h"      /* Prototypes begin here */   void ins_int(INT32 i, void (*func)(char tmp));   void ins_short(INT16 i, void (*func)(char tmp));   void use_module(struct svalue *s);   void unuse_modules(INT32 howmany);   struct node_s *find_module_identifier(struct pike_string *ident);   struct program *parent_compilation(int level);
pike.git/src/program.h:268:   void low_start_new_program(struct program *p,    struct pike_string *name,    int flags);   void start_new_program(void);   void really_free_program(struct program *p);   void dump_program_desc(struct program *p);   int sizeof_variable(int run_time_type);   void check_program(struct program *p);   struct program *end_first_pass(int finish);   struct program *debug_end_program(void); - SIZE_T low_add_storage(SIZE_T size, SIZE_T alignment); - SIZE_T add_storage(SIZE_T storage); + SIZE_T low_add_storage(SIZE_T size, SIZE_T alignment, int modulo);   void set_init_callback(void (*init)(struct object *));   void set_exit_callback(void (*exit)(struct object *));   void set_gc_mark_callback(void (*m)(struct object *));   void set_gc_check_callback(void (*m)(struct object *));   int low_reference_inherited_identifier(struct program_state *q,    int e,    struct pike_string *name);   node *reference_inherited_identifier(struct pike_string *super_name,    struct pike_string *function_name);   void rename_last_inherit(struct pike_string *n);