pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: las.c,v 1.227 2000/12/01 20:19:25 grubba Exp $"); + RCSID("$Id: las.c,v 1.228 2000/12/01 20:43:10 grubba Exp $");      #include "language.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"   #include "pike_types.h"
pike.git/src/las.c:355:      BLOCK_ALLOC(node_s, NODES)      #undef BLOCK_ALLOC_NEXT   #define BLOCK_ALLOC_NEXT next      #ifdef SHARED_NODES      struct node_hash_table node_hash;    - static size_t hash_node(node *n) + static INLINE size_t hash_node(node *n)   { -  DO_HASHMEM((unsigned char *)&(n->token), +  size_t ret_; +  +  DO_HASHMEM(ret_, (unsigned char *)&(n->token),    sizeof(node) - OFFSETOF(node_s, token), sizeof(node)); -  +  +  return ret_;   }      static void add_node(node *n)   {    size_t hval = (n->hash % node_hash.size);      #ifdef PIKE_DEBUG    node *probe = node_hash.table[hval];    while(probe) {    if (probe == n)