Branch: Tag:

2003-01-05

2003-01-05 01:03:55 by Martin Nilsson <mani@lysator.liu.se>

Use the SIMPLE_ macros.

Rev: src/backend.cmod:1.32
Rev: src/builtin.cmod:1.102
Rev: src/cpp.c:1.114
Rev: src/modules/sprintf/sprintf.c:1.100
Rev: src/opcodes.c:1.129
Rev: src/threads.c:1.194

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.193 2002/12/07 14:15:18 grubba Exp $ + || $Id: threads.c,v 1.194 2003/01/05 01:00:08 nilsson Exp $   */      #include "global.h" - RCSID("$Id: threads.c,v 1.193 2002/12/07 14:15:18 grubba Exp $"); + RCSID("$Id: threads.c,v 1.194 2003/01/05 01:00:08 nilsson Exp $");      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0;
897: Inside #if defined(UNIX_THREADS)
  void f_thread_set_concurrency(INT32 args)   {    int c=1; -  if(args) c=Pike_sp[-args].u.integer; -  else Pike_error("No argument to thread_set_concurrency(int concurrency);\n"); +  if(args) +  c=Pike_sp[-args].u.integer; +  else +  SIMPLE_TOO_FEW_ARGS_ERROR("thread_set_concurrency", 1);    pop_n_elems(args);    num_lwps=c;    th_setconcurrency(c);
1601:    if(args>1)    pop_n_elems(args-1);    else if(args<1) -  Pike_error("Too few arguments to Thread.Local.set()\n"); +  SIMPLE_TOO_FEW_ARGS_ERROR("Thread.Local.set", 1);       if(Pike_interpreter.thread_id == NULL)    Pike_error("Trying to set Thread.Local without thread!\n");