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: interpreter.h,v 1.80 2002/11/10 20:19:18 grubba Exp $ + || $Id: interpreter.h,v 1.81 2003/01/09 15:21:26 grubba Exp $   */      #undef LOW_GET_ARG
55: Inside #if defined(PIKE_DEBUG)
     #ifdef PIKE_DEBUG    - #define GET_ARG() (backlog[backlogp].arg=(\ -  instr=prefix,\ -  prefix=0,\ -  instr += LOW_GET_ARG(),\ -  (t_flag>3 ? sprintf(trace_buffer, "- Arg = %ld\n", \ -  (long)instr), \ -  write_to_stderr(trace_buffer,strlen(trace_buffer)) : 0),\ + #define GET_ARG() (backlog[backlogp].arg=( \ +  instr=prefix, \ +  prefix=0, \ +  instr += LOW_GET_ARG(), \ +  (Pike_interpreter.trace_level>3 ? \ +  sprintf(trace_buffer, "- Arg = %ld\n", (long)instr), \ +  write_to_stderr(trace_buffer,strlen(trace_buffer)) : 0), \    instr))    - #define GET_ARG2() (backlog[backlogp].arg2=(\ -  instr=prefix2,\ -  prefix2=0,\ -  instr += LOW_GET_ARG(),\ -  (t_flag>3 ? sprintf(trace_buffer, "- Arg2 = %ld\n", \ -  (long)instr), \ -  write_to_stderr(trace_buffer,strlen(trace_buffer)) : 0),\ + #define GET_ARG2() (backlog[backlogp].arg2=( \ +  instr=prefix2, \ +  prefix2=0, \ +  instr += LOW_GET_ARG(), \ +  (Pike_interpreter.trace_level>3 ? \ +  sprintf(trace_buffer, "- Arg2 = %ld\n", (long)instr), \ +  write_to_stderr(trace_buffer,strlen(trace_buffer)) : 0), \    instr))      #else /* !PIKE_DEBUG */
111: Inside #if defined(PIKE_DEBUG)
     #ifdef PIKE_DEBUG    -  if(t_flag > 2) +  if(Pike_interpreter.trace_level > 2)    {    char *file, *f;    struct pike_string *filep;