pike.git
/
src
/
program.h
version
»
Context lines:
10
20
40
80
file
none
3
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.
186
2003/
09
/
04
15
:
02
:
02
grubba
Exp $
+
|| $Id: program.h,v 1.
187
2003/
11
/
07
21
:
09
:
50
mast
Exp $
*/ #ifndef PROGRAM_H #define PROGRAM_H #include <stdarg.h> #include "global.h" #include "pike_types.h" #include "pike_macros.h" #include "pike_error.h"
pike.git/src/program.h:680:
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(const char *name, struct svalue *c, INT32 flags); PMOD_EXPORT int add_integer_constant(const char *name,
-
INT32
i,
+
INT_ARG_TYPE
i,
INT32 flags); PMOD_EXPORT int quick_add_integer_constant(const char *name, int name_length,
-
INT32
i,
+
INT_ARG_TYPE
i,
INT32 flags); PMOD_EXPORT int add_float_constant(const char *name,
-
double
f,
+
FLOAT_ARG_TYPE
f,
INT32 flags);
-
+
PMOD_EXPORT int quick_add_float_constant(const char *name,
+
int name_length,
+
FLOAT_ARG_TYPE f,
+
INT32 flags);
PMOD_EXPORT int add_string_constant(const char *name, const char *str, INT32 flags); PMOD_EXPORT int add_program_constant(const char *name, struct program *p, INT32 flags); PMOD_EXPORT int add_object_constant(const char *name, struct object *o, INT32 flags); PMOD_EXPORT int add_function_constant(const char *name, void (*cfun)(INT32), const char * type, int flags);
pike.git/src/program.h:829:
#define ADD_FUNCTION2(NAME, FUNC, TYPE, FLAGS, OPT_FLAGS) \ quick_add_function(NAME, CONSTANT_STRLEN(NAME), FUNC, TYPE,\ CONSTANT_STRLEN(TYPE), FLAGS, OPT_FLAGS) #define ADD_PROTOTYPE2(NAME, TYPE, FLAGS, OPT_FLAGS) \ ADD_FUNCTION2(NAME, 0, TYPE, FLAGS, OPT_FLAGS) #define ADD_INT_CONSTANT(NAME, CONST, FLAGS) \ quick_add_integer_constant(NAME, CONSTANT_STRLEN(NAME), CONST, FLAGS)
+
#define ADD_FLOAT_CONSTANT(NAME, CONST, FLAGS) \
+
quick_add_float_constant(NAME, CONSTANT_STRLEN(NAME), CONST, FLAGS)
+
#define PIKE_MAP_VARIABLE(NAME, OFFSET, TYPE, RTTYPE, FLAGS) \ quick_map_variable(NAME, CONSTANT_STRLEN(NAME), OFFSET, \ TYPE, CONSTANT_STRLEN(TYPE), RTTYPE, FLAGS) #define ADD_FUNCTION_DTYPE(NAME,FUN,DTYPE,FLAGS) do { \ DTYPE_START; \ {DTYPE} \ { \ struct pike_string *_t; \ DTYPE_END(_t); \