Branch: Tag:

2001-12-16

2001-12-16 02:49:50 by Martin Stjernholm <mast@lysator.liu.se>

Replaced IS_ZERO with SAFE_IS_ZERO, except where it's obvious that
UNSAFE_IS_ZERO works.

Rev: src/array.c:1.121
Rev: src/builtin.cmod:1.72
Rev: src/builtin_functions.c:1.418
Rev: src/cpp.c:1.96
Rev: src/encode.c:1.135
Rev: src/interpret.c:1.254
Rev: src/interpret_functions.h:1.98
Rev: src/iterators.cmod:1.17
Rev: src/language.yacc:1.267
Rev: src/las.c:1.277
Rev: src/module_support.c:1.42
Rev: src/modules/Image/encodings/_xpm.c:1.18
Rev: src/modules/Image/encodings/ilbm.c:1.23
Rev: src/modules/Image/encodings/png.c:1.43
Rev: src/modules/Image/encodings/pvr.c:1.16
Rev: src/modules/Image/encodings/ras.c:1.15
Rev: src/modules/Image/encodings/xbm.c:1.15
Rev: src/modules/Parser/html.c:1.148
Rev: src/modules/_Image_GIF/image_gif.c:1.8
Rev: src/modules/files/efuns.c:1.107
Rev: src/modules/files/file.c:1.230
Rev: src/modules/files/socket.c:1.57
Rev: src/modules/files/stat.c:1.19
Rev: src/modules/files/udp.c:1.28
Rev: src/modules/spider/xml.c:1.47
Rev: src/modules/sprintf/sprintf.c:1.86
Rev: src/multiset.c:1.45
Rev: src/opcodes.c:1.118
Rev: src/operators.c:1.144
Rev: src/post_modules/GTK/source/gtkclist.pre:1.13
Rev: src/preprocessor.h:1.48
Rev: src/program.c:1.392
Rev: src/signal_handler.c:1.212
Rev: src/threads.c:1.177

5:   \*/   /**/   #include "global.h" - RCSID("$Id: builtin_functions.c,v 1.417 2001/12/12 22:51:32 nilsson Exp $"); + RCSID("$Id: builtin_functions.c,v 1.418 2001/12/16 02:49:37 mast Exp $");   #include "interpret.h"   #include "svalue.h"   #include "pike_macros.h"
3362:    return;    }    -  if(args > 1 && !IS_ZERO(Pike_sp + 1-args)) +  if(args > 1 && !UNSAFE_IS_ZERO(Pike_sp + 1-args))    {    do_abort_on_signal=1;    }else{
3472:    return;    }    -  if(args > 1 && !IS_ZERO(Pike_sp + 1-args)) +  if(args > 1 && !UNSAFE_IS_ZERO(Pike_sp + 1-args))    {    do_microsleep=0;    do_abort_on_signal=1;
6577:    push_svalue(mysp-3);    push_constant_text("cast");    f_arrow(2); -  if (!IS_ZERO(Pike_sp-1)) +  if (!UNSAFE_IS_ZERO(Pike_sp-1))    {    pop_stack();   
6632:    push_svalue(mysp-3);    push_constant_text("_sizeof");    f_arrow(2); -  if (!IS_ZERO(Pike_sp-2)&&!IS_ZERO(Pike_sp-1)) +  if (!UNSAFE_IS_ZERO(Pike_sp-2)&&!UNSAFE_IS_ZERO(Pike_sp-1))    {    f_call_function(1);    if (Pike_sp[-1].type!=T_INT)
6758:    push_svalue(a->item+i);    push_svalue(mysp-2);    f_arrow(2); -  if(IS_ZERO(Pike_sp-1)) +  if(UNSAFE_IS_ZERO(Pike_sp-1))    {    pop_stack();    continue;
6865:    a=Pike_sp[-2].u.array;    n=a->size;    for (k=m=i=0; i<n; i++) -  if (!IS_ZERO(f->item+i)) +  if (!UNSAFE_IS_ZERO(f->item+i))    {    push_svalue(a->item+i);    if (m++>32)
6917:    n=a->size;       for (m=i=0; i<n; i++) -  if (!IS_ZERO(f->item+i)) m++; +  if (!UNSAFE_IS_ZERO(f->item+i)) m++;       push_mapping(allocate_mapping(MAXIMUM(m,4)));       for (i=0; i<n; i++) -  if (!IS_ZERO(f->item+i)) +  if (!UNSAFE_IS_ZERO(f->item+i))    mapping_insert(Pike_sp[-1].u.mapping,y->item+i,a->item+i);       stack_pop_n_elems_keep_top(3);
6969:    push_svalue(mysp-3);    push_constant_text("cast");    f_arrow(2); -  if (!IS_ZERO(Pike_sp-1)) +  if (!UNSAFE_IS_ZERO(Pike_sp-1))    {    pop_stack();