pike.git / src / constants.h

version» Context lines:

pike.git/src/constants.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: constants.h,v 1.23 2002/09/12 13:15:49 marcus Exp $ +  * $Id: constants.h,v 1.24 2002/09/30 11:41:58 grubba Exp $    */   #ifndef ADD_EFUN_H   #define ADD_EFUN_H      #include "svalue.h"   #include "hashtable.h"   #include "las.h" /* For OPT_SIDE_EFFECT etc. */   #include "block_alloc_h.h"      typedef int (*docode_fun)(node *n);
pike.git/src/constants.h:69:    INT16 flags,    optimize_fun optimize,    docode_fun docode);   void init_builtin_constants(void);   void cleanup_added_efuns(void);   /* Prototypes end here */         #include "pike_macros.h"    - #define ADD_EFUN(NAME,FUN,TYPE,FLAGS) \ -  quick_add_efun(NAME,CONSTANT_STRLEN(NAME),FUN,TYPE,CONSTANT_STRLEN(TYPE),FLAGS,0,0) -  +    #define ADD_EFUN2(NAME,FUN,TYPE,FLAGS,OPTIMIZE,DOCODE) \ -  quick_add_efun(NAME,CONSTANT_STRLEN(NAME),FUN,TYPE,CONSTANT_STRLEN(TYPE),FLAGS,OPTIMIZE,DOCODE) +  quick_add_efun(NAME,CONSTANT_STRLEN(NAME),FUN, \ +  TYPE,CONSTANT_STRLEN(TYPE),FLAGS,OPTIMIZE,DOCODE)    -  + #define ADD_EFUN(NAME,FUN,TYPE,FLAGS) ADD_EFUN2(NAME,FUN,TYPE,FLAGS,0,0) +    #define ADD_EFUN_DTYPE(NAME,FUN,DTYPE,FLAGS) do { \    DTYPE_START; \    {DTYPE} \    { \    struct pike_string *_t; \    DTYPE_END(_t); \    quick_add_efun(NAME,CONSTANT_STRLEN(NAME),FUN,_t->str,_t->len,FLAGS,0,0); \    free_string(_t); \    } \   } while (0)      #endif