Branch: Tag:

2003-01-09

2003-01-09 15:21:27 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Parameter-less macros can cause problems with headerfiles.
In this case <sys/thread.h> on Solaris 2.x.
t_flag is now gone. Use Pike_interpreter.trace_level.

Rev: src/apply_low.h:1.14
Rev: src/builtin.cmod:1.105
Rev: src/error.c:1.101
Rev: src/gc.c:1.192
Rev: src/interpret.c:1.287
Rev: src/interpret.h:1.122
Rev: src/interpret_functions.h:1.126
Rev: src/interpreter.h:1.81
Rev: src/main.c:1.162
Rev: src/mapping.c:1.158
Rev: src/multiset.c:1.65
Rev: src/opcodes.c:1.131
Rev: src/svalue.c:1.154
Rev: src/threads.c:1.196

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: mapping.c,v 1.157 2002/12/01 00:16:54 mast Exp $ + || $Id: mapping.c,v 1.158 2003/01/09 15:21:26 grubba Exp $   */      #include "global.h" - RCSID("$Id: mapping.c,v 1.157 2002/12/01 00:16:54 mast Exp $"); + RCSID("$Id: mapping.c,v 1.158 2003/01/09 15:21:26 grubba Exp $");   #include "main.h"   #include "object.h"   #include "mapping.h"
1706:    my_strcat("([ ])");    }    else { -  int save_t_flag = t_flag; +  int save_t_flag = Pike_interpreter.trace_level;       if (m->data->size == 1) {    my_strcat("([ /* 1 element */\n");
1715:    my_strcat(buf);    }    -  t_flag = 0; +  Pike_interpreter.trace_level = 0;    if(SETJMP(catch)) {    free_svalue(&throw_value);    throw_value.type = T_INT;
1723:    else    sort_array_destructively(a);    UNSETJMP(catch); -  t_flag = save_t_flag; +  Pike_interpreter.trace_level = save_t_flag;       for(e = 0; e < a->size; e++)    {
1738:    my_putchar(':');       { -  int save_t_flag=t_flag; -  t_flag=0; +  int save_t_flag=Pike_interpreter.trace_level; +  Pike_interpreter.trace_level=0;       tmp=low_mapping_lookup(m, ITEM(a)+e);    -  t_flag=save_t_flag; +  Pike_interpreter.trace_level=save_t_flag;    }    if(tmp)    describe_svalue(tmp, indent+2, &doing);