pike.git / src / compilation.h

version» Context lines:

pike.git/src/compilation.h:42:   #ifdef EXTERN   #define IMEMBER(X,Y,Z)   #define STACKMEMBER(X,Y,z)   #define ZMEMBER(X,Y,Z)   #define SNAME(X,Y) PMOD_EXPORT extern struct X * Y;   #define SEND   #endif      #ifdef DECLARE   #define IMEMBER(X,Y,Z) Z, - #define STACKMEMBER(X,Y,Z) Z, + #define STACKMEMBER(X,Y,Z) 0,   #define ZMEMBER(X,Y,Z) Z,   #define SNAME(X,Y) \    extern struct X PIKE_CONCAT(Y,_base); \    struct X * Y = & PIKE_CONCAT(Y,_base); \    struct X PIKE_CONCAT(Y,_base) = { 0,   #define SEND };   #endif      #ifdef PUSH   #define IMEMBER(X,Y,Z) (nEw->Y=Pike_compiler->Y);   #define STACKMEMBER(X,Y,Z) (nEw->Y=Pike_compiler->Y); - #define ZMEMBER(X,Y,Z) /* Zapped by the MEMSET in SNAME() below. */; + #define ZMEMBER(X,Y,Z) /* Zapped by the memset in SNAME() below. */;   #define SNAME(X,Y) { \    struct X *nEw; \    nEw=ALLOC_STRUCT(X); \ -  MEMSET((char *)nEw, 0, sizeof(struct X)); \ +  memset((char *)nEw, 0, sizeof(struct X)); \    nEw->previous=Pike_compiler;   #define SEND \    Pike_compiler=nEw; \    }      #endif         #ifdef POP   #define IMEMBER(X,Y,Z)   #define ZMEMBER(X,Y,Z)      #define STACKMEMBER(X,Y,Z) DO_DEBUG_CODE( \    if(Pike_compiler->Y < oLd->Y) \    Pike_fatal("Stack " #Y " shrunk %ld steps compilation, currently: %p.\n", \ -  PTRDIFF_T_TO_LONG(oLd->Y - Pike_compiler->Y), Pike_compiler->Y); ) +  (long)(oLd->Y - Pike_compiler->Y), Pike_compiler->Y); )      #define SNAME(X,Y) { \    struct X *oLd=Pike_compiler->previous;      #define SEND \    free((char *)Pike_compiler); \    Pike_compiler=oLd; \    }      #define PCODE(X) X   #else   #define PCODE(X)   #endif         #ifdef INIT   #define IMEMBER(X,Y,Z) (c->Y=Pike_compiler->Y);   #define STACKMEMBER(X,Y,Z) (c->Y=Pike_compiler->Y); - #define ZMEMBER(X,Y,Z) /* Zapped by the MEMSET in SNAME() below. */; + #define ZMEMBER(X,Y,Z) /* Zapped by the memset in SNAME() below. */;   #define SNAME(X,Y) { \ -  MEMSET(c, 0, sizeof(struct X)); \ +  memset(c, 0, sizeof(struct X)); \    c->previous = Pike_compiler;   #define SEND \    Pike_compiler = c; \    }      #endif         #ifdef EXIT   #define IMEMBER(X,Y,Z)   #define ZMEMBER(X,Y,Z)      #define STACKMEMBER(X,Y,Z) DO_DEBUG_CODE( \    if(c->Y < oLd->Y) \    Pike_fatal("Stack " #Y " shrunk %ld steps compilation, currently: %p.\n", \ -  PTRDIFF_T_TO_LONG(oLd->Y - c->Y), c->Y); ) +  (long)(oLd->Y - c->Y), c->Y); )      #define SNAME(X,Y) { \    struct X *oLd = c->previous;      #define SEND \    if (Pike_compiler == c) { \    Pike_compiler=oLd; \    } else { \    struct program_state *tmp = Pike_compiler; \    while (tmp && (tmp->previous != c)) \
pike.git/src/compilation.h:152:    ZMEMBER(INT_TYPE,last_line,0)    STRMEMBER(last_file,0)    ZMEMBER(struct object *,fake_object,0)    ZMEMBER(struct program *,new_program,0)    ZMEMBER(struct program *,malloc_size_program,0)    ZMEMBER(node *,init_node,0)    ZMEMBER(INT32,last_pc,0)    ZMEMBER(int,num_parse_error,0)    ZMEMBER(struct compiler_frame *,compiler_frame,0)    ZMEMBER(INT32,num_used_modules,0) -  IMEMBER(int,compiler_pass,0) +  IMEMBER(int, compiler_pass, COMPILER_PASS_NONE)    ZMEMBER(int,local_class_counter,0)    ZMEMBER(int,catch_level,0)    ZMEMBER(INT32,current_modifiers,0) -  +  ZMEMBER(node *,current_attributes,0)    ZMEMBER(int,varargs,0)    ZMEMBER(int, num_create_args, 0)    ZMEMBER(int, num_inherits, 0) /* Used during second pass. */    STRMEMBER(last_identifier,0)    ZMEMBER(struct mapping *,module_index_cache,0)    STACKMEMBER(struct pike_type **,type_stackp,type_stack)    STACKMEMBER(struct pike_type ***,pike_type_mark_stackp,pike_type_mark_stack)    ZMEMBER(INT32,parent_identifier,0)    IMEMBER(int, compat_major, PIKE_MAJOR_VERSION)    IMEMBER(int, compat_minor, PIKE_MINOR_VERSION)