pike.git / src / program.h

version» Context lines:

pike.git/src/program.h:1:   /*   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.h,v 1.180 2003/03/29 22:42:48 mast Exp $ + || $Id: program.h,v 1.181 2003/04/02 19:22:44 mast Exp $   */      #ifndef PROGRAM_H   #define PROGRAM_H      #include <stdarg.h>   #include "global.h"   #include "pike_types.h"   #include "pike_macros.h"   #include "svalue.h"
pike.git/src/program.h:371: Inside #if defined(PIKE_DEBUG)
   void (*event_handler)(int);   #ifdef PIKE_DEBUG    unsigned INT32 checksum;   #endif   #ifdef PROFILING    unsigned INT32 num_clones;   #endif /* PROFILING */       size_t total_size;    - #define FOO(NUMTYPE,TYPE,NAME) TYPE * NAME ; + #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) TYPE * NAME ;   #include "program_areas.h"    - #define FOO(NUMTYPE,TYPE,NAME) NUMTYPE PIKE_CONCAT(num_,NAME) ; + #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) NUMTYPE PIKE_CONCAT(num_,NAME) ;   #include "program_areas.h"       INT16 lfuns[NUM_LFUNS];   };      #define INHERIT_FROM_PTR(P,X) (dmalloc_touch(struct program *,(P))->inherits + (X)->inherit_offset)   #define PROG_FROM_PTR(P,X) (dmalloc_touch(struct program *,INHERIT_FROM_PTR(P,X)->prog))   #define ID_FROM_PTR(P,X) (PROG_FROM_PTR(P,X)->identifiers+(X)->identifier_offset)   #define INHERIT_FROM_INT(P,X) INHERIT_FROM_PTR(P,(P)->identifier_references+(X))   #define PROG_FROM_INT(P,X) PROG_FROM_PTR(P,(P)->identifier_references+(X))
pike.git/src/program.h:417:   /* Flags for identifier finding... */   #define SEE_STATIC 1   #define SEE_PRIVATE 2         #define COMPILER_IN_CATCH 1      #define ADD_STORAGE(X) low_add_storage(sizeof(X), ALIGNOF(X),0)   #define STORAGE_NEEDED(X) ((X)->storage_needed - (X)->inherits[0].storage_offset)    - #define FOO(NUMTYPE,TYPE,NAME) void PIKE_CONCAT(add_to_,NAME(TYPE ARG)); + #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) void PIKE_CONCAT(add_to_,NAME(ARGTYPE ARG));   #include "program_areas.h"      /* This flag is set when resolve functions should force the lookup so    * that we don't get a placeholder back. Used for inherits. */   extern int force_resolve;      typedef int supporter_callback (void *, int);   struct Supporter   {   #ifdef PIKE_DEBUG
pike.git/src/program.h:443:    struct Supporter *next_dependant;    supporter_callback *fun;    void *data;    struct program *prog;   };            /* Prototypes begin here */   void ins_int(INT32 i, void (*func)(char tmp)); - void ins_short(INT16 i, void (*func)(char tmp)); + void ins_short(int i, void (*func)(char tmp));   void add_relocated_int_to_program(INT32 i);   void use_module(struct svalue *s);   void unuse_modules(INT32 howmany);   struct node_s *find_module_identifier(struct pike_string *ident,    int see_inherit);   struct node_s *resolve_identifier(struct pike_string *ident);   struct node_s *program_magic_identifier (struct program_state *state,    int state_depth, int inherit_num,    struct pike_string *ident,    int colon_colon_ref);
pike.git/src/program.h:556:    INT32 flags);   PMOD_EXPORT int add_string_constant(const char *name,    const char *str,    INT32 flags);   PMOD_EXPORT int add_program_constant(const char *name,    struct program *p,    INT32 flags);   PMOD_EXPORT int add_object_constant(const char *name,    struct object *o,    INT32 flags); - PMOD_EXPORT int add_function_constant(const char *name, void (*cfun)(INT32), const char * type, INT16 flags); + PMOD_EXPORT int add_function_constant(const char *name, void (*cfun)(INT32), const char * type, int flags);   PMOD_EXPORT int debug_end_class(const char *name, ptrdiff_t namelen, INT32 flags);   INT32 define_function(struct pike_string *name,    struct pike_type *type, -  unsigned INT16 flags, -  unsigned INT8 function_flags, +  unsigned flags, +  unsigned function_flags,    union idptr *func, -  unsigned INT16 opt_flags); +  unsigned opt_flags);   int really_low_find_shared_string_identifier(struct pike_string *name,    struct program *prog,    int flags);   int low_find_lfun(struct program *p, ptrdiff_t lfun);   int lfun_lookup_id(struct pike_string *lfun_name);   int low_find_shared_string_identifier(struct pike_string *name,    struct program *prog);   struct ff_hash;   int find_shared_string_identifier(struct pike_string *name,    struct program *prog);
pike.git/src/program.h:619:   int call_dependants(struct Supporter *s, int finish);   int report_compiler_dependency(struct program *p);   struct compilation;   void run_pass2(struct compilation *c);   struct program *compile(struct pike_string *aprog,    struct object *ahandler,    int amajor, int aminor,    struct program *atarget,    struct object *aplaceholder);   PMOD_EXPORT int pike_add_function2(const char *name, void (*cfun)(INT32), -  const char *type, unsigned INT8 flags, -  unsigned INT16 opt_flags); +  const char *type, unsigned flags, +  unsigned opt_flags);   PMOD_EXPORT int quick_add_function(const char *name,    int name_length,    void (*cfun)(INT32),    const char *type,    int type_length, -  unsigned INT8 flags, -  unsigned INT16 opt_flags); +  unsigned flags, +  unsigned opt_flags);   void check_all_programs(void);   void placeholder_index(INT32 args);   void init_program(void);   void cleanup_program(void);   void gc_mark_program_as_referenced(struct program *p);   void real_gc_cycle_check_program(struct program *p, int weak);   unsigned gc_touch_all_programs(void);   void gc_check_all_programs(void);   void gc_mark_all_programs(void);   void gc_cycle_check_all_programs(void);