pike.git
/
src
/
program.h
version
»
Context lines:
10
20
40
80
file
none
3
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.
110
2000/
08
/
31
12
:
28
:
06
grubba
Exp $
+
* $Id: program.h,v 1.
111
2000/
09
/
26
00
:
17
:
47
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:454:
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);
+
struct object *handler
,
+
int major,
+
int minor
);
int pike_add_function2(char *name, void (*cfun)(INT32), char *type, unsigned INT8 flags, unsigned INT16 opt_flags); PMOD_EXPORT int quick_add_function(char *name, int name_length, void (*cfun)(INT32), char *type, int type_length, unsigned INT8 flags, unsigned INT16 opt_flags);
pike.git/src/program.h:494:
struct program *program_from_function(struct svalue *f); struct program *program_from_svalue(struct svalue *s); struct find_child_cache_s; int find_child(struct program *parent, struct program *child); void yywarning(char *fmt, ...) ATTRIBUTE((format(printf,1,2))); struct implements_cache_s; int implements(struct program *a, struct program *b); int is_compatible(struct program *a, struct program *b); int yyexplain_not_implements(struct program *a, struct program *b, int flags); void *parent_storage(int depth);
+
PMOD_EXPORT void change_compiler_compatibility(int major, int minor);
/* Prototypes end here */ #define ADD_FUNCTION(NAME, FUNC, TYPE, FLAGS) \ quick_add_function(NAME, CONSTANT_STRLEN(NAME), FUNC, TYPE,\ CONSTANT_STRLEN(TYPE), FLAGS, \ OPT_SIDE_EFFECT|OPT_EXTERNAL_DEPEND) #define ADD_PROTOTYPE(NAME, TYPE, FLAGS) \ ADD_FUNCTION(NAME, 0, TYPE, FLAGS)
pike.git/src/program.h:569:
#define gc_cycle_check_program(X, WEAK) \ gc_cycle_enqueue((gc_cycle_check_cb *) real_gc_cycle_check_program, (X), (WEAK)) /* This can be used for backwards compatibility * (if added to program.h in Pike 0.6 and Pike 7.0 * -Hubbe */ #define Pike_new_program Pike_compiler->new_program
+
/* Return true if compat version is equal or greater to MAJOR.MINOR */
+
#define TEST_COMPAT(MAJOR,MINOR) \
+
(Pike_compiler->compat_major < (MAJOR) || \
+
(Pike_compiler->compat_major == (MAJOR) && \
+
Pike_compiler->compat_minor <= (MINOR)))
+
#endif /* PROGRAM_H */ /* Kludge... */ #ifndef LAS_H /* FIXME: Needed for the OPT_??? macros. * Maybe they should be moved here, since las.h includes this file anyway? */ #include "las.h" #endif /* !LAS_H */