Branch: Tag:

2003-03-26

2003-03-26 18:53:46 by Martin Nilsson <mani@lysator.liu.se>

It's better to let init_foo_bar have a corresponding exit_foo_bar than cleanup_bzot_baz.

Rev: src/constants.c:1.46
Rev: src/constants.h:1.29
Rev: src/main.c:1.168

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: constants.c,v 1.45 2002/12/12 17:17:08 nilsson Exp $ + || $Id: constants.c,v 1.46 2003/03/26 18:53:46 nilsson Exp $   */      #include "global.h"
18:   #include "security.h"   #include "block_alloc.h"    - RCSID("$Id: constants.c,v 1.45 2002/12/12 17:17:08 nilsson Exp $"); + RCSID("$Id: constants.c,v 1.46 2003/03/26 18:53:46 nilsson Exp $");      struct mapping *builtin_constants = 0;   
185:      void init_builtin_constants(void)   { -  builtin_constants = allocate_mapping(250); +  builtin_constants = allocate_mapping(256);   }    - void cleanup_added_efuns(void) + void exit_builtin_constants(void)   {   #ifdef DO_PIKE_CLEANUP    if(builtin_constants)