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.79 2000/02/15 22:06:22 hubbe Exp $ +  * $Id: program.h,v 1.80 2000/02/15 23:41:03 grubba 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"
pike.git/src/program.h:274:    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))   #define ID_FROM_INT(P,X) ID_FROM_PTR(P,(P)->identifier_references+(X))    - #define FIND_LFUN(P,N) ( dmalloc_touch(struct program *,(P))->flags & PROGRAM_FIXED?((P)->lfuns[(N)]):find_identifier(lfun_names[(N)],(P)) ) + #define FIND_LFUN(P,N) ( dmalloc_touch(struct program *,(P))->flags & PROGRAM_FIXED?((P)->lfuns[(N)]):low_find_lfun((P), (N)) )      #define free_program(p) do{ struct program *_=(p); debug_malloc_touch(_); if(!--_->refs) really_free_program(_); }while(0)         extern struct object *error_handler;      extern struct object *fake_object;   extern struct program *new_program;   extern struct program *first_program;   extern int compiler_pass;
pike.git/src/program.h:405:   int add_function_constant(char *name, void (*cfun)(INT32), char * type, INT16 flags);   int debug_end_class(char *name, int namelen, INT32 flags);   INT32 define_function(struct pike_string *name,    struct pike_string *type,    INT16 flags,    INT8 function_flags,    union idptr *func);   int really_low_find_shared_string_identifier(struct pike_string *name,    struct program *prog,    int flags); + int low_find_lfun(struct program *p, int lfun);   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);   int find_identifier(char *name,struct program *prog);   int store_prog_string(struct pike_string *str);   int store_constant(struct svalue *foo,    int equal,    struct pike_string *constant_name);