Branch: Tag:

2003-11-09

2003-11-09 01:10:15 by Martin Stjernholm <mast@lysator.liu.se>

Made the interface for the global dynamic buffer reentrant.

Rev: src/apply_low.h:1.25
Rev: src/array.c:1.151
Rev: src/dynamic_buffer.c:1.24
Rev: src/dynamic_buffer.h:1.19
Rev: src/error.c:1.117
Rev: src/interpret.c:1.337
Rev: src/interpret_functions.h:1.161
Rev: src/las.c:1.341
Rev: src/mapping.c:1.173
Rev: src/modules/sprintf/sprintf.c:1.115
Rev: src/multiset.c:1.79
Rev: src/pike_types.c:1.224
Rev: src/program.c:1.530
Rev: src/stralloc.c:1.160
Rev: src/svalue.c:1.179

2:   || 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: las.c,v 1.340 2003/11/08 01:37:46 nilsson Exp $ + || $Id: las.c,v 1.341 2003/11/09 01:10:13 mast Exp $   */      #include "global.h" - RCSID("$Id: las.c,v 1.340 2003/11/08 01:37:46 nilsson Exp $"); + RCSID("$Id: las.c,v 1.341 2003/11/09 01:10:13 mast Exp $");      #include "language.h"   #include "interpret.h"
2565:       case F_CAST:    { +  dynamic_buffer save_buf;    char *s; -  init_buf(); +  init_buf(&save_buf);    my_describe_type(foo->type); -  s=simple_free_buf(); +  s=simple_free_buf(&save_buf);    fprintf(stderr, "(%s){",s);    free(s);    low_print_tree(_CAR(foo),0);
2578:       case F_SOFT_CAST:    { +  dynamic_buffer save_buf;    char *s; -  init_buf(); +  init_buf(&save_buf);    my_describe_type(foo->type); -  s=simple_free_buf(); +  s=simple_free_buf(&save_buf);    fprintf(stderr, "[%s]{",s);    free(s);    low_print_tree(_CAR(foo),0);
2629:       case F_CONSTANT:    { +  dynamic_buffer save_buf;    char *s; -  init_buf(); +  init_buf(&save_buf);    describe_svalue(& foo->u.sval, 0, 0); -  s=simple_free_buf(); +  s=simple_free_buf(&save_buf);    fprintf(stderr, "const(%s)",s);    free(s);    break;