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.65 1999/11/04 02:35:27 grubba Exp $ +  * $Id: program.h,v 1.66 1999/11/18 04:14:52 hubbe 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:416:   struct array *program_indices(struct program *p);   struct array *program_values(struct program *p);   void program_index_no_free(struct svalue *to, struct program *p,    struct svalue *ind);   int get_small_number(char **q);   void start_line_numbering(void);   void store_linenumber(INT32 current_line, struct pike_string *current_file);   char *get_line(unsigned char *pc,struct program *prog,INT32 *linep);   void my_yyerror(char *fmt,...) ATTRIBUTE((format(printf,1,2)));   struct program *compile(struct pike_string *prog, struct object *handler); - int add_function(char *name,void (*cfun)(INT32),char *type,INT16 flags); + int pike_add_function(char *name,void (*cfun)(INT32),char *type,INT16 flags);   int quick_add_function(char *name,    int name_length,    void (*cfun)(INT32),    char *type,    int type_length,    INT16 flags,    int opt_flags);   void check_all_programs(void);   void init_program(void);   void cleanup_program(void);
pike.git/src/program.h:454:   struct implements_cache_s;   int implements(struct program *a, struct program *b);   /* Prototypes end here */      #define ADD_FUNCTION(NAME,FUNC,TYPE,FLAGS) \    quick_add_function(NAME,CONSTANT_STRLEN(NAME),FUNC,TYPE,CONSTANT_STRLEN(TYPE),FLAGS,0)      #define ADD_INT_CONSTANT(NAME,CONST,FLAGS) \    quick_add_integer_constant(NAME,CONSTANT_STRLEN(NAME),CONST,FLAGS)    + #ifndef NO_PIKE_SHORTHAND + #define add_function pike_add_function   #endif    -  + #endif /* PROGRAM_H */ +    #ifdef DEBUG_MALLOC   #define end_program() ((struct program *)debug_malloc_pass(debug_end_program()))   #define end_class(NAME, FLAGS) do { debug_malloc_touch(new_program); debug_end_class(NAME, CONSTANT_STRLEN(NAME), FLAGS); }while(0)   #else   #define end_class(NAME,FLAGS) debug_end_class(NAME, CONSTANT_STRLEN(NAME), FLAGS)   #define end_program debug_end_program   #endif         #ifdef PIKE_DEBUG   #define start_new_program() debug_start_new_program(__LINE__,__FILE__)   #else   #define start_new_program() debug_start_new_program()   #endif