pike.git / src / program.h

version» Context lines:

pike.git/src/program.h:275:      /*    * Every constant, class, function and variable    * gets exactly one of these.    */   struct identifier   {    struct pike_string *name;    struct pike_type *type;    unsigned INT32 filename_strno; /* Index in strings. */ -  unsigned INT32 linenumber; +  INT_TYPE linenumber;    unsigned INT8 identifier_flags; /* IDENTIFIER_??? */    unsigned INT8 run_time_type; /* PIKE_T_??? */    unsigned INT16 opt_flags; /* OPT_??? */   #ifdef PROFILING    unsigned INT32 num_calls; /* Total number of calls. */ -  +  unsigned INT32 recur_depth; /* Recursion depth during timing. */    cpu_time_t total_time; /* Total time with children. */    cpu_time_t self_time; /* Total time excluding children. */   #endif /* PROFILING */    union idptr func;   };      /*    * This is used to store constants, both    * inline constants and those defined explicitly with    * the constant keyword.
pike.git/src/program.h:673:   #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, PTR_FROM_INT(P, X))   #define PROG_FROM_INT(P,X) PROG_FROM_PTR(P, PTR_FROM_INT(P, X))   #define ID_FROM_INT(P,X) ID_FROM_PTR(P, PTR_FROM_INT(P, X))      #define FIND_LFUN(P,N) ( dmalloc_touch(struct program *,(P))->flags & PROGRAM_FIXED?((P)->lfuns[(N)]):low_find_lfun((P), (N)) )   #define QUICK_FIND_LFUN(P,N) (dmalloc_touch(struct program *,(P))->lfuns[N])      #ifdef DO_PIKE_CLEANUP   PMOD_EXPORT extern int gc_external_refs_zapped; - PMOD_EXPORT void gc_check_zapped (void *a, TYPE_T type, const char *file, int line); + PMOD_EXPORT void gc_check_zapped (void *a, TYPE_T type, const char *file, INT_TYPE line);   #endif      #if defined (USE_DLL) && defined (DYNAMIC_MODULE)   /* Use the function in modules so we don't have to export the block    * alloc stuff. */   #define free_program(p) do_free_program(p)   #else   #define free_program(p) do{ \    struct program *_=(p); \    debug_malloc_touch(_); \
pike.git/src/program.h:786:   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); + struct pike_string *find_program_name(struct program *p, INT_TYPE *line);   int override_identifier (struct reference *ref, struct pike_string *name);   void fixate_program(void);   struct program *low_allocate_program(void);   void low_start_new_program(struct program *p,    int pass,    struct pike_string *name,    int flags,    int *idp); - PMOD_EXPORT void debug_start_new_program(int line, const char *file); + PMOD_EXPORT void debug_start_new_program(INT_TYPE line, const char *file);   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);   PMOD_EXPORT struct program *debug_end_program(void);   PMOD_EXPORT size_t low_add_storage(size_t size, size_t alignment,    ptrdiff_t modulo_orig);   PMOD_EXPORT void set_init_callback(void (*init_callback)(struct object *));   PMOD_EXPORT void set_exit_callback(void (*exit_callback)(struct object *));   PMOD_EXPORT void set_gc_recurse_callback(void (*m)(struct object *));
pike.git/src/program.h:921:   int store_constant(const struct svalue *foo,    int equal,    struct pike_string *constant_name);   struct array *program_indices(struct program *p);   struct array *program_values(struct program *p);   struct array *program_types(struct program *p);   int low_program_index_no_free(struct svalue *to, struct program *p, int e,    struct object *parent, int parent_identifier);   int program_index_no_free(struct svalue *to, struct svalue *what,    struct svalue *ind); - int get_small_number(char **q); - void ext_store_program_line (struct program *prog, INT32 line, struct pike_string *file); + INT_TYPE get_small_number(char **q); + void ext_store_program_line (struct program *prog, INT_TYPE line, +  struct pike_string *file);   void start_line_numbering(void); - void store_linenumber(INT32 current_line, struct pike_string *current_file); + void store_linenumber(INT_TYPE current_line, struct pike_string *current_file);   PMOD_EXPORT struct pike_string *low_get_program_line(struct program *prog, -  INT32 *linep); +  INT_TYPE *linep);   PMOD_EXPORT struct pike_string *get_program_line(struct program *prog, -  INT32 *linep); - PMOD_EXPORT char *low_get_program_line_plain (struct program *prog, INT32 *linep, +  INT_TYPE *linep); + PMOD_EXPORT char *low_get_program_line_plain (struct program *prog, +  INT_TYPE *linep,    int malloced);   PMOD_EXPORT struct pike_string *low_get_line(PIKE_OPCODE_T *pc, -  struct program *prog, INT32 *linep); +  struct program *prog, +  INT_TYPE *linep);   PMOD_EXPORT char *low_get_line_plain (PIKE_OPCODE_T *pc, struct program *prog, -  INT32 *linep, int malloced); +  INT_TYPE *linep, int malloced);   PMOD_EXPORT struct pike_string *get_line(PIKE_OPCODE_T *pc, -  struct program *prog, INT32 *linep); +  struct program *prog, +  INT_TYPE *linep);   PMOD_EXPORT struct pike_string *low_get_function_line (struct object *o, -  int fun, INT32 *linep); +  int fun, +  INT_TYPE *linep);   PMOD_EXPORT struct pike_string *get_identifier_line(struct program *p, -  int fun, INT32 *linep); +  int fun, +  INT_TYPE *linep);   PMOD_EXPORT void va_yyreport(int severity_level, -  struct pike_string *file, INT32 line, +  struct pike_string *file, INT_TYPE line,    struct pike_string *system, INT32 args,    const char *fmt, va_list vargs);   PMOD_EXPORT void low_yyreport(int severity_level, -  struct pike_string *file, INT32 line, +  struct pike_string *file, INT_TYPE line,    struct pike_string *system,    INT32 args, const char *fmt, ...);   PMOD_EXPORT void yyreport(int severity_level, struct pike_string *system,    INT32 args, const char *fmt, ...);   PMOD_EXPORT void yywarning(char *fmt, ...);   PMOD_EXPORT void my_yyerror(const char *fmt,...);   PMOD_EXPORT void yyerror(const char *s);   void yytype_report(int severity_level, -  struct pike_string *expect_file, INT32 expect_line, +  struct pike_string *expect_file, INT_TYPE expect_line,    struct pike_type *expected_t, -  struct pike_string *got_file, INT32 got_line, +  struct pike_string *got_file, INT_TYPE got_line,    struct pike_type *got_t,    INT32 args, const char *fmt, ...);   void yytype_error(const char *msg, struct pike_type *expected_t,    struct pike_type *got_t, unsigned int flags);   struct pike_string *format_exception_for_error_msg (struct svalue *thrown);   void handle_compile_exception (const char *yyerror_fmt, ...);   struct supporter_marker; -  + void count_memory_in_supporter_markers(size_t *num, size_t *size);   void verify_supporters(void);   void init_supporter(struct Supporter *s,    supporter_callback *fun,    void *data);   int unlink_current_supporter(struct Supporter *c);   int call_dependants(struct Supporter *s, int finish);   int report_compiler_dependency(struct program *p);   struct compilation;   void run_pass2(struct compilation *c); - PMOD_EXPORT void enter_compiler(struct pike_string *filename, int linenumber); + PMOD_EXPORT void enter_compiler(struct pike_string *filename, +  INT_TYPE linenumber);   PMOD_EXPORT void exit_compiler(void);   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 flags,    unsigned opt_flags);   PMOD_EXPORT int quick_add_function(const char *name,