Branch: Tag:

2002-11-28

2002-11-28 23:45:49 by Marcus Comstedt <marcus@mc.pp.se>

Fixed some _sprintf breakages.

Rev: src/builtin.cmod:1.100
Rev: src/error.c:1.96
Rev: src/modules/Gmp/mpf.cmod:1.17
Rev: src/modules/Gmp/mpq.cmod:1.15
Rev: src/modules/Math/module.pmod.in:1.11
Rev: src/modules/Oracle/oracle.c:1.75
Rev: src/post_modules/GTK/new_build_pgtk.pike:1.21
Rev: src/post_modules/GTK/source/gdkevent.pre:1.8
Rev: src/post_modules/GTK/source/support.c:1.36
Rev: src/threads.c:1.192

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: error.c,v 1.95 2002/11/28 02:19:15 mast Exp $ + || $Id: error.c,v 1.96 2002/11/28 23:45:39 marcus Exp $   */      #define NO_PIKE_SHORTHAND
23:   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.95 2002/11/28 02:19:15 mast Exp $"); + RCSID("$Id: error.c,v 1.96 2002/11/28 23:45:39 marcus Exp $");      #undef ATTRIBUTE   #define ATTRIBUTE(X)
526:    struct program *p = Pike_fp->current_object->prog;    int i = find_identifier("error_type", p);    struct identifier *id = ID_FROM_INT(p, i); +  int mode = 0; +  if(args>0 && Pike_sp[-args].type == PIKE_T_INT) +  mode = Pike_sp[-args].u.integer;    pop_n_elems(args); -  +  if(mode != 'O') { +  push_undefined(); +  return; +  }    push_svalue(&PROG_FROM_INT(p, i)->constants[id->func.offset].sval);    push_constant_text("(%O)");    if(GENERIC_ERROR_THIS->desc)