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.339 2008/06/16 22:16:53 mast Exp $ + || $Id$   */      #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:132:    a_markers[e]=0;    }    if(b_markers[e])    {    free_type(b_markers[e]);    b_markers[e]=0;    }    }   }    - void compiler_discard_type (void) + static void low_discard_type (void)   {    ptrdiff_t len = pop_stack_mark(); -  TYPE_STACK_DEBUG("paranoid_pop_type"); +  TYPE_STACK_DEBUG("discard_type");    for (;len > 0; len--) {    /* Get rid of excess junk. */    free_type(*(Pike_compiler->type_stackp--));    }   }    -  + void compiler_discard_type (void) + { +  low_discard_type(); +  type_stack_mark(); + } +    struct pike_type *debug_pop_type(void)   {    struct pike_type *t = pop_unfinished_type();    TYPE_STACK_DEBUG("pop_type");    type_stack_mark();    return t;   }      struct pike_type *debug_compiler_pop_type(void)   {