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.188 2003/11/14 00:11:44 mast Exp $ + || $Id: program.h,v 1.189 2003/11/14 00:35:11 mast Exp $   */      #ifndef PROGRAM_H   #define PROGRAM_H      #include <stdarg.h>   #include "global.h" - #include "pike_types.h" +    #include "pike_macros.h"   #include "pike_error.h"   #include "svalue.h"   #include "time_stuff.h"   #include "program_id.h"   #include "block_alloc_h.h"    - #define STRUCT - #include "compilation.h" -  - #define EXTERN - #include "compilation.h" -  +    /* Needed to support dynamic loading on NT */   PMOD_PROTO extern struct program_state * Pike_compiler;      extern struct pike_string *this_program_string;      #define LFUN___INIT 0   #define LFUN_CREATE 1   #define LFUN_DESTROY 2   #define LFUN_ADD 3   #define LFUN_SUBTRACT 4
pike.git/src/program.h:86:   extern struct pike_string *lfun_strings[];      #ifndef STRUCT_SVALUE_DECLARED   #define STRUCT_SVALUE_DECLARED   struct svalue;   #endif      #ifndef STRUCT_NODE_S_DECLARED   #define STRUCT_NODE_S_DECLARED   struct node_s; + typedef struct node_s node;   #endif      #ifndef STRUCT_OBJECT_DECLARED   #define STRUCT_OBJECT_DECLARED   struct object;   #endif    -  + #define STRUCT + #include "compilation.h" +  + #define EXTERN + #include "compilation.h" +    /* Byte-code method identification. */   #define PIKE_BYTECODE_DEFAULT 0   #define PIKE_BYTECODE_GOTO 1   #define PIKE_BYTECODE_SPARC 2   #define PIKE_BYTECODE_IA32 3   #define PIKE_BYTECODE_PPC32 4      #if PIKE_BYTECODE_METHOD == PIKE_BYTECODE_IA32   #define PIKE_OPCODE_T unsigned INT8   #elif PIKE_BYTECODE_METHOD == PIKE_BYTECODE_SPARC
pike.git/src/program.h:485:    ptrdiff_t parent_info_storage;       INT16 flags; /* PROGRAM_* */    unsigned INT8 alignment_needed;    struct timeval timestamp;       struct program *next;    struct program *prev;    struct program *parent;    -  struct node_s *(*optimize)(struct node_s *n); +  node *(*optimize)(node *n);       void (*event_handler)(int);   #ifdef PIKE_DEBUG    unsigned INT32 checksum;   #endif   #ifdef PROFILING    unsigned INT32 num_clones;   #endif /* PROFILING */       size_t total_size;
pike.git/src/program.h:588:   };            /* Prototypes begin here */   void ins_int(INT32 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, + node *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, + node *resolve_identifier(struct pike_string *ident); + node *program_magic_identifier (struct program_state *state,    int state_depth, int inherit_num,    struct pike_string *ident,    int colon_colon_ref);   struct program *parent_compilation(int level);   struct program *id_to_program(INT32 id);   void optimize_program(struct program *p);   void fsort_program_identifier_index(unsigned short *start,    unsigned short *end,    struct program *p);   struct pike_string *find_program_name(struct program *p, INT32 *line);
pike.git/src/program.h:642:   void rename_last_inherit(struct pike_string *n);   void low_inherit(struct program *p,    struct object *parent,    int parent_identifier,    int parent_offset,    INT32 flags,    struct pike_string *name);   PMOD_EXPORT void do_inherit(struct svalue *s,    INT32 flags,    struct pike_string *name); - void compiler_do_inherit(node *n, -  INT32 flags, -  struct pike_string *name); + void compiler_do_inherit(node *n, INT32 flags, struct pike_string *name);   int call_handle_inherit(struct pike_string *s);   void simple_do_inherit(struct pike_string *s,    INT32 flags,    struct pike_string *name);   int isidentifier(struct pike_string *s);   int low_define_variable(struct pike_string *name,    struct pike_type *type,    INT32 flags,    size_t offset,    INT32 run_time_type);