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.109 2000/08/30 21:58:17 grubba Exp $ +  * $Id: program.h,v 1.110 2000/08/31 12:28:06 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:502:   int yyexplain_not_implements(struct program *a, struct program *b, int flags);   void *parent_storage(int depth);   /* 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) \ -  quick_add_function(NAME, CONSTANT_STRLEN(NAME), 0, TYPE, \ -  CONSTANT_STRLEN(TYPE), FLAGS, \ -  OPT_SIDE_EFFECT|OPT_EXTERNAL_DEPEND) +  ADD_FUNCTION(NAME, 0, TYPE, FLAGS)    - #define ADD_INT_CONSTANT(NAME,CONST,FLAGS) \ -  quick_add_integer_constant(NAME,CONSTANT_STRLEN(NAME),CONST,FLAGS) + #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 PIKE_MAP_VARIABLE(NAME,OFFSET,TYPE,RTTYPE,FLAGS) \ -  quick_map_variable(NAME,CONSTANT_STRLEN(NAME),OFFSET,TYPE,CONSTANT_STRLEN(TYPE),RTTYPE,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 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); \    quick_add_function(NAME, CONSTANT_STRLEN(NAME), FUN, \    _t->str, _t->len, FLAGS, \    OPT_SIDE_EFFECT|OPT_EXTERNAL_DEPEND); \    free_string(_t); \