Branch: Tag:

1999-12-05

1999-12-05 15:32:15 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added option -dT which enables DEBUG_TYPES.
Also added some SHARED_NODES code.

Rev: src/main.c:1.78

5:   \*/   /**/   #include "global.h" - RCSID("$Id: main.c,v 1.77 1999/10/09 23:29:00 hubbe Exp $"); + RCSID("$Id: main.c,v 1.78 1999/12/05 15:32:15 grubba Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"
33:   #include "constants.h"   #include "version.h"    + #include "las.h" +    #include <errno.h>      #ifdef HAVE_LOCALE_H
146:       fd_init();    + #ifdef SHARED_NODES +  node_hash.table = malloc(sizeof(node *)*16411); +  if (!node_hash.table) { +  fatal("Out of memory!\n"); +  } +  MEMSET(node_hash.table, 0, sizeof(node *)*16411); +  node_hash.size = 16411; + #endif /* SHARED_NODES */ +    #ifdef HAVE_SETLOCALE   #ifdef LC_NUMERIC    setlocale(LC_NUMERIC, "C");
310:    d_flag--;    goto more_d_flags;    +  case 'T': +  debug_options|=DEBUG_TYPES; +  p++; +  d_flag--; +  goto more_d_flags; +     default:    d_flag++,p++;    }
566: Inside #if defined(DO_PIKE_CLEANUP)
   cleanup_error();    cleanup_backend();    + #ifdef SHARED_NODES +  free(node_hash.table); + #endif /* SHARED_NODES */ +     do_gc();    exit_pike_security();    free_svalue(& throw_value);