pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.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: pike_types.c,v 1.360 2009/04/11 12:42:22 grubba Exp $ + || $Id: pike_types.c,v 1.361 2009/11/28 13:36:21 mast Exp $   */      #include "global.h"   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"
pike.git/src/pike_types.c:8015: Inside #if defined (PIKE_DEBUG) || defined (DO_PIKE_CLEANUP)
     #if defined (PIKE_DEBUG) || defined (DO_PIKE_CLEANUP)      /* This is only enough gc stuff to detect leaking pike_type structs    * and to locate references to them. More is needed if types are    * extended to contain pointers to other memory objects or if they    * might contain cycles. */      void gc_mark_type_as_referenced(struct pike_type *t)   { -  if (gc_mark(t)) { +  if (gc_mark(t, PIKE_T_TYPE)) {    GC_ENTER(t, PIKE_T_TYPE) {    switch(t->type) {    case PIKE_T_SCOPE:    case T_ASSIGN:    case PIKE_T_NAME:    case PIKE_T_ATTRIBUTE:    if (t->cdr) gc_mark_type_as_referenced(t->cdr);    break;    case PIKE_T_FUNCTION:    case T_MANY: