Branch: Tag:

2007-06-09

2007-06-09 18:02:14 by Martin Stjernholm <mast@lysator.liu.se>

Fixed decay that broke the configure tests using rusage.c and threads.c.
Also added configure tests to make it more certain that this kind of thing
doesn't go by unnoticed in the future.

Rev: src/configure.in:1.1016
Rev: src/pike_threadlib.h:1.61
Rev: src/rusage.c:1.45
Rev: src/svalue.h:1.146
Rev: src/threads.c:1.253

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.252 2006/08/09 01:20:33 nilsson Exp $ + || $Id: threads.c,v 1.253 2007/06/09 18:02:14 mast Exp $   */    - #ifndef CONFIGURE_TEST +    #include "global.h"      PMOD_EXPORT int num_threads = 1;   PMOD_EXPORT int threads_disabled = 0; - #endif /* !CONFIGURE_TEST */ +       /* #define PICKY_MUTEX */      #ifdef _REENTRANT    -  + #include "pike_error.h" +    #ifndef CONFIGURE_TEST      /* #define VERBOSE_THREADS_DEBUG */
66:   PMOD_EXPORT void thread_low_error (int errcode, const char *cmd,    const char *fname, int lineno)   { + #ifdef CONFIGURE_TEST +  fprintf (stderr, "%s:%d: %s\n" +  "Unexpected error from thread function: %d\n", +  fname, lineno, cmd, errcode); +  abort(); + #else    Pike_fatal ("%s:%d: %s\n"    "Unexpected error from thread function: %d\n",    fname, lineno, cmd, errcode); -  + #endif   }      /* SCO magic... */