pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:408:   BLOCK_ALLOC_FILL_PAGES(node_s, 2)      #undef BLOCK_ALLOC_NEXT   #define BLOCK_ALLOC_NEXT next      void free_all_nodes(void)   {    if(!Pike_compiler->previous)    {    node *tmp; -  size_t e=0, s=0; +       #ifndef PIKE_DEBUG -  if(cumulative_parse_error) -  { - #endif -  +  if(cumulative_parse_error) { + #else +  size_t e=0, s=0;    count_memory_in_node_ss(&e, &s); -  if(e) -  { +  if(e) { + #endif    WALK_NONFREE_BLOCKS(node_s, tmp, tmp->token != USHRT_MAX, {   #ifdef PIKE_DEBUG    if(!cumulative_parse_error)    {    fprintf(stderr,"Free node at %p, (%s:%d) (token=%d).\n",    (void *)tmp, tmp->current_file->str, tmp->line_number,    tmp->token);       debug_malloc_dump_references(tmp,0,2,0);   
pike.git/src/las.c:453:   #endif /* PIKE_DEBUG */    /* Force the node to be freed. */    tmp->refs = 1;    debug_malloc_touch(tmp->type);    free_node(tmp);    }    });   #ifdef PIKE_DEBUG    if(!cumulative_parse_error)    Pike_fatal("Failed to free %"PRINTSIZET"d nodes when compiling!\n",e); - #endif +     } - #ifndef PIKE_DEBUG + #else    }   #endif    free_all_node_s_blocks();    cumulative_parse_error=0;    }   }      void debug_free_node(node *n)   {    if(!n) return;