pike.git / src / program.h

version» Context lines:

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.217 2005/03/14 17:59:14 per Exp $ + || $Id: program.h,v 1.218 2005/03/15 09:59:28 grubba Exp $   */      #ifndef PROGRAM_H   #define PROGRAM_H      #include <stdarg.h>   #include "global.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "svalue.h"
pike.git/src/program.h:585:    struct program *_=(p); \    debug_malloc_touch(_); \    DO_IF_DEBUG ( \    DO_IF_PIKE_CLEANUP ( \    if (gc_external_refs_zapped) \    gc_check_zapped (_, PIKE_T_PROGRAM, __FILE__, __LINE__))); \    if(!sub_ref(_)) \    really_free_program(_); \    }while(0)    - BLOCK_ALLOC_FILL_PAGES(program, n/a) + BLOCK_ALLOC_FILL_PAGES(program, n/a);         extern struct object *error_handler;   extern struct object *compat_handler;      extern struct program *first_program;   extern struct program *null_program;   extern struct program *pike_trampoline_program;   extern struct program *gc_internal_program;   extern struct program *placeholder_program;
pike.git/src/program.h:607:      extern int compilation_depth;      /* Flags for identifier finding... */   #define SEE_STATIC 1   #define SEE_PRIVATE 2         #define COMPILER_IN_CATCH 1    - #ifdef __cplusplus - extern "C++" { -  template<typename T> static inline int _low_alignof(T *ignored) -  { -  struct { char x; T y;} *bar = NULL; -  return PTR_TO_INT(&bar->y); -  } - }; - #define ADD_STORAGE(X) low_add_storage( sizeof(X),_low_alignof((X*)NULL),0) - #else +    #define ADD_STORAGE(X) low_add_storage(sizeof(X), ALIGNOF(X),0) - #endif +       #define STORAGE_NEEDED(X) ((X)->storage_needed - (X)->inherits[0].storage_offset)      #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) void PIKE_CONCAT(add_to_,NAME(ARGTYPE ARG));   #include "program_areas.h"      typedef int supporter_callback (void *, int);   struct Supporter   {   #ifdef PIKE_DEBUG