pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:455:   }      void init_node_s_blocks() { }      void really_free_node_s(node * n) {    ba_free(&Pike_compiler->node_allocator, n);   }      MALLOC_FUNCTION   node * alloc_node_s() { -  return (node*)ba_alloc(&Pike_compiler->node_allocator); +  return ba_alloc(&Pike_compiler->node_allocator);   }      void count_memory_in_node_ss(size_t * num, size_t * size) {    struct program_state * state = Pike_compiler;       *num = 0;    *size = 0;       while (state) {    size_t _num, _size;
pike.git/src/las.c:2488:   }      /* Makes a copy of a.    * Note: Can throw errors on out of memory.    */   static struct used_vars *copy_vars(struct used_vars *a)   {    struct used_vars *ret;    struct scope_info *src;    struct scope_info **dst; -  ret=(struct used_vars *)xalloc(sizeof(struct used_vars)); +  ret=xalloc(sizeof(struct used_vars));    src = a->locals;    dst = &(ret->locals);    *dst = NULL;    while (src) {    *dst = malloc(sizeof(struct scope_info));    if (!*dst) {    src = ret->locals;    while(src) {    struct scope_info *tmp = src->next;    free(src);