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: threads.c,v 1.191 2002/11/18 17:09:11 mast Exp $ + || $Id: threads.c,v 1.192 2002/11/28 23:45:39 marcus Exp $   */      #include "global.h" - RCSID("$Id: threads.c,v 1.191 2002/11/18 17:09:11 mast Exp $"); + RCSID("$Id: threads.c,v 1.192 2002/11/28 23:45:39 marcus Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;
1403:    */   void f_thread_id__sprintf (INT32 args)   { +  int c = 0; +  if(args>0 && Pike_sp[-args].type == PIKE_T_INT) +  c = Pike_sp[-args].u.integer;    pop_n_elems (args); -  +  if(c != 'O') { +  push_undefined(); +  return; +  }    push_constant_text ("Thread.Thread(");    push_int64((ptrdiff_t)THIS_THREAD->id);    push_constant_text (")");