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.165 2002/09/11 16:03:32 mast Exp $ +  * $Id: program.h,v 1.166 2002/09/12 13:15:50 marcus 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:458:   void optimize_program(struct program *p);   int program_function_index_compare(const void *a,const void *b);   struct pike_string *find_program_name(struct program *p, INT32 *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,    struct pike_string *name,    int flags,    int *idp); - PMOD_EXPORT void debug_start_new_program(int line, char *file); + PMOD_EXPORT void debug_start_new_program(int line, const char *file);   void dump_program_desc(struct program *p);   int sizeof_variable(int run_time_type);   void dump_program_tables (struct program *p, int indent);   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 *));
pike.git/src/program.h:503:   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); - PMOD_EXPORT int map_variable(char *name, -  char *type, + PMOD_EXPORT int map_variable(const char *name, +  const char *type,    INT32 flags,    size_t offset,    INT32 run_time_type); - PMOD_EXPORT int quick_map_variable(char *name, + PMOD_EXPORT int quick_map_variable(const char *name,    int name_length,    size_t offset, -  char *type, +  const char *type,    int type_length,    INT32 run_time_type,    INT32 flags);   int define_variable(struct pike_string *name,    struct pike_type *type,    INT32 flags); - PMOD_EXPORT int simple_add_variable(char *name, -  char *type, + PMOD_EXPORT int simple_add_variable(const char *name, +  const 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, + PMOD_EXPORT int simple_add_constant(const char *name,    struct svalue *c,    INT32 flags); - PMOD_EXPORT int add_integer_constant(char *name, + PMOD_EXPORT int add_integer_constant(const char *name,    INT32 i,    INT32 flags); - PMOD_EXPORT int quick_add_integer_constant(char *name, + PMOD_EXPORT int quick_add_integer_constant(const char *name,    int name_length,    INT32 i,    INT32 flags); - PMOD_EXPORT int add_float_constant(char *name, + PMOD_EXPORT int add_float_constant(const char *name,    double f,    INT32 flags); - PMOD_EXPORT int add_string_constant(char *name, -  char *str, + PMOD_EXPORT int add_string_constant(const char *name, +  const char *str,    INT32 flags); - PMOD_EXPORT int add_program_constant(char *name, + PMOD_EXPORT int add_program_constant(const char *name,    struct program *p,    INT32 flags); - PMOD_EXPORT int add_object_constant(char *name, + PMOD_EXPORT int add_object_constant(const 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 debug_end_class(char *name, ptrdiff_t namelen, INT32 flags); + PMOD_EXPORT int add_function_constant(const char *name, void (*cfun)(INT32), const char * type, INT16 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,    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);
pike.git/src/program.h:585:   void store_linenumber(INT32 current_line, struct pike_string *current_file);   PMOD_EXPORT struct pike_string *get_program_line(struct program *prog,    INT32 *linep);   char *debug_get_program_line(struct program *prog,    INT32 *linep);   PMOD_EXPORT struct pike_string *get_line(PIKE_OPCODE_T *pc,    struct program *prog, INT32 *linep);   void my_yyerror(char *fmt,...) ATTRIBUTE((format(printf,1,2)));   void yy_describe_exception(struct svalue *thrown);   struct supporter_marker; - void verify_supporters(); + 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);   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(char *name, void (*cfun)(INT32), -  char *type, unsigned INT8 flags, + PMOD_EXPORT int pike_add_function2(const char *name, void (*cfun)(INT32), +  const char *type, unsigned INT8 flags,    unsigned INT16 opt_flags); - PMOD_EXPORT int quick_add_function(char *name, + PMOD_EXPORT int quick_add_function(const char *name,    int name_length,    void (*cfun)(INT32), -  char *type, +  const char *type,    int type_length,    unsigned INT8 flags,    unsigned INT16 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);