Branch: Tag:

2003-08-20

2003-08-20 16:41:23 by Martin Stjernholm <mast@lysator.liu.se>

Need access to the hash table in gc.c. Added callable to get_name_of_type.

Rev: src/pike_types.c:1.221
Rev: src/pike_types.h:1.89

2:   || 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"
158:    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";    }   }
214:   #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)   {