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.115 2001/02/05 21:13:11 grubba Exp $ +  * $Id: program.h,v 1.116 2001/02/19 23:50: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:141:   #define IDENTIFIER_IS_FUNCTION(X) ((X) & IDENTIFIER_FUNCTION)   #define IDENTIFIER_IS_PIKE_FUNCTION(X) ((X) & IDENTIFIER_PIKE_FUNCTION)   #define IDENTIFIER_IS_CONSTANT(X) ((X) & IDENTIFIER_CONSTANT)   #define IDENTIFIER_IS_VARIABLE(X) (!((X) & (IDENTIFIER_FUNCTION | IDENTIFIER_CONSTANT)))      #define IDENTIFIER_MASK 127      struct identifier   {    struct pike_string *name; -  struct pike_string *type; +  struct pike_type *type;    unsigned INT8 identifier_flags; /* IDENTIFIER_??? */    unsigned INT8 run_time_type; /* PIKE_T_??? */    unsigned INT16 opt_flags; /* OPT_??? */   #ifdef PROFILING    unsigned INT32 num_calls;    unsigned INT32 total_time;    unsigned INT32 self_time;   #endif /* PROFILING */    union idptr func;   };
pike.git/src/program.h:378:    INT32 flags,    struct pike_string *name);   void compiler_do_inherit(node *n,    INT32 flags,    struct pike_string *name);   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_string *type, +  struct pike_type *type,    INT32 flags,    size_t offset,    INT32 run_time_type);   PMOD_EXPORT int map_variable(char *name,    char *type,    INT32 flags,    size_t offset,    INT32 run_time_type);   PMOD_EXPORT int quick_map_variable(char *name,    int name_length,    size_t offset,    char *type,    int type_length,    INT32 run_time_type,    INT32 flags);   int define_variable(struct pike_string *name, -  struct pike_string *type, +  struct pike_type *type,    INT32 flags);   PMOD_EXPORT int simple_add_variable(char *name,    char *type,    INT32 flags);   PMOD_EXPORT int add_constant(struct pike_string *name,    struct svalue *c,    INT32 flags);   PMOD_EXPORT int simple_add_constant(char *name,    struct svalue *c,    INT32 flags);
pike.git/src/program.h:425:    INT32 flags);   PMOD_EXPORT int add_string_constant(char *name,    char *str,    INT32 flags);   PMOD_EXPORT int add_program_constant(char *name,    struct program *p,    INT32 flags);   PMOD_EXPORT int add_object_constant(char *name,    struct object *o,    INT32 flags); - PMOD_EXPORT int add_function_constant(char *name, void (*cfun)(INT32), char * type, INT16 flags); + PMOD_EXPORT int add_function_constant(char *name, void (*cfun)(INT32), +  char * type, INT16 flags);   PMOD_EXPORT int debug_end_class(char *name, ptrdiff_t namelen, INT32 flags);   INT32 define_function(struct pike_string *name, -  struct pike_string *type, +  struct pike_type *type,    unsigned INT8 flags,    unsigned INT8 function_flags,    union idptr *func,    unsigned INT16 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,