pike.git / src / program.c

version» Context lines:

pike.git/src/program.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: program.c,v 1.476 2003/01/31 01:50:53 mast Exp $ + || $Id: program.c,v 1.477 2003/02/01 15:43:51 mast Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.476 2003/01/31 01:50:53 mast Exp $"); + RCSID("$Id: program.c,v 1.477 2003/02/01 15:43:51 mast Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "language.h"   #include "lex.h"   #include "pike_macros.h"   #include "fsort.h"
pike.git/src/program.c:6541: Inside #if defined(GC2) and #if defined(PIKE_DEBUG)
      for(e=0;e<(int)p->num_identifiers;e++)    {    debug_gc_check(p->identifiers[e].name, T_PROGRAM, p);    debug_gc_check(p->identifiers[e].type, T_PROGRAM, p);    }    }   #endif   }    - #ifdef PIKE_DEBUG +    unsigned gc_touch_all_programs(void)   {    unsigned n = 0;    struct program *p;    struct program_state *ps;    if (first_program && first_program->prev)    Pike_fatal("Error in program link list.\n");    for (p = first_program; p; p = p->next) {    debug_gc_touch(p);    n++;    if (p->next && p->next->prev != p)    Pike_fatal("Error in program link list.\n");    }    return n;   } - #endif +       void gc_check_all_programs(void)   {    struct program *p;    for(p=first_program;p;p=p->next) gc_check_program(p);   }      void gc_mark_all_programs(void)   {    gc_mark_program_pos = gc_internal_program;