pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.c: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: pike_types.c,v 1.220 2003/08/04 16:46:37 mast Exp $ + || $Id: pike_types.c,v 1.221 2003/08/20 16:41:23 mast Exp $   */      #include "global.h" - RCSID("$Id: pike_types.c,v 1.220 2003/08/04 16:46:37 mast Exp $"); + RCSID("$Id: pike_types.c,v 1.221 2003/08/20 16:41:23 mast Exp $");   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"   #include "constants.h"   #include "object.h"   #include "multiset.h"
pike.git/src/pike_types.c:151:    case T_OBJECT: return "object";    case T_PROGRAM: return "program";    case T_STRING: return "string";    case T_TYPE: return "type";    case T_ZERO: return "zero";    case T_VOID: return "void";    case T_STORAGE: return "object storage";    case T_MAPPING_DATA: return "mapping_data";    case T_PIKE_FRAME: return "pike_frame";    case T_MULTISET_DATA: return "multiset_data"; +  case T_STRUCT_CALLABLE: return "callable";    default: return "unknown";    }   }         #define TWOT(X,Y) (((X) << 8)+(Y))      static int low_pike_types_le(struct pike_type *a, struct pike_type *b,    int array_cnt, unsigned int flags);   static int low_check_indexing(struct pike_type *type,
pike.git/src/pike_types.c:207:    * Note that the cdr of a FUNCTION is a valid FUNCTION for the rest of    * the arguments.    *    * Note also that functions that don't take any arguments, or just    * a many argument just have a MANY node, and no FUNCTION node.    *    */   #define PIKE_TYPE_CHUNK 128   BLOCK_ALLOC(pike_type, PIKE_TYPE_CHUNK)    - static struct pike_type **pike_type_hash = NULL; - static size_t pike_type_hash_size = 0; + struct pike_type **pike_type_hash = NULL; + size_t pike_type_hash_size = 0;      void debug_free_type(struct pike_type *t)   {   #ifdef DEBUG_MALLOC    if (t == (struct pike_type *)(size_t)0x55555555) {    Pike_fatal("Freeing dead type.\n");    }   #endif /* DEBUG_MALLOC */    loop:    if (!sub_ref(t)) {