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.64 1999/10/29 03:34:34 mast Exp $ +  * $Id: program.h,v 1.65 1999/11/04 02:35:27 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:271:   #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 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;   extern long local_class_counter;   extern int catch_level;   extern INT32 num_used_modules;   extern struct program *pike_trampoline_program;      /* Flags for identifier finding... */
pike.git/src/program.h:413:    struct pike_string *constant_name);   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 program *compile(struct pike_string *prog, struct object *handler);   int 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);