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.
111
2000/
09
/
26
00
:
17
:
47
hubbe
Exp $
+
* $Id: program.h,v 1.
112
2000/
12
/
16
05
:
45
:
45
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:439:
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); int low_find_shared_string_identifier(struct pike_string *name, struct program *prog); struct ff_hash; int find_shared_string_identifier(struct pike_string *name, struct program *prog);
-
int find_identifier(char *name,struct program *prog);
+
PMOD_EXPORT
int find_identifier(char *name,struct program *prog);
int store_prog_string(struct pike_string *str); int store_constant(struct svalue *foo, int equal, 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);
+
PMOD_EXPORT
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 major, int minor);
-
int pike_add_function2(char *name, void (*cfun)(INT32),
+
PMOD_EXPORT
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); void check_all_programs(void);
pike.git/src/program.h:483:
void gc_check_all_programs(void); void gc_mark_all_programs(void); void gc_cycle_check_all_programs(void); void gc_zap_ext_weak_refs_in_programs(void); void gc_free_all_unreferenced_programs(void); void count_memory_in_programs(INT32 *num_, INT32 *size_); void push_compiler_frame(int lexical_scope); void pop_local_variables(int level); void pop_compiler_frame(void); ptrdiff_t low_get_storage(struct program *o, struct program *p);
-
char *get_storage(struct object *o, struct program *p);
+
PMOD_EXPORT
char *get_storage(struct object *o, struct program *p);
struct program *low_program_from_function(struct program *p, INT32 i);
-
struct program *program_from_function(struct svalue *f);
-
struct program *program_from_svalue(struct svalue *s);
+
PMOD_EXPORT
struct program *program_from_function(struct svalue *f);
+
PMOD_EXPORT
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);
+
PMOD_EXPORT
int implements(struct program *a, struct program *b);
+
PMOD_EXPORT
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 *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)