pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: las.c,v 1.196 2000/08/27 19:10:24 grubba Exp $"); + RCSID("$Id: las.c,v 1.197 2000/08/27 19:59:41 grubba Exp $");      #include "language.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"   #include "pike_types.h"
pike.git/src/las.c:1991:    while(src) {    struct scope_info *tmp = src->next;    free(src);    src = tmp;    }    free(ret);    error("Out of memory in copy_vars.\n");    return NULL; /* Make sure that the optimizer knows we exit here. */    }    MEMCPY(*dst, src, sizeof(struct scope_info)); +  src = src->next;    dst = &((*dst)->next);    *dst = NULL;    }    src = a->externals;    dst = &(ret->externals);    *dst = NULL;    while (src) {    *dst = malloc(sizeof(struct scope_info));    if (!*dst) {    src = ret->locals;
pike.git/src/las.c:2017:    while(src) {    struct scope_info *tmp = src->next;    free(src);    src = tmp;    }    free(ret);    error("Out of memory in copy_vars.\n");    return NULL; /* Make sure that the optimizer knows we exit here. */    }    MEMCPY(*dst, src, sizeof(struct scope_info)); +  src = src->next;    dst = &((*dst)->next);    *dst = NULL;    }       ret->err = a->err;    ret->ext_flags = a->ext_flags;    return ret;   }      /* Find the insertion point for the variable a:scope_id:num.