Branch: Tag:

2004-06-29

2004-06-29 15:44:49 by Henrik Grubbström (Grubba) <grubba@grubba.org>

va_copy() is not portable, and there's no need for it in this case.

Rev: src/error.c:1.129

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.128 2004/06/29 11:59:06 nilsson Exp $ + || $Id: error.c,v 1.129 2004/06/29 15:44:49 grubba Exp $   */      #define NO_PIKE_SHORTHAND
23:   #include "threads.h"   #include "gc.h"    - RCSID("$Id: error.c,v 1.128 2004/06/29 11:59:06 nilsson Exp $"); + RCSID("$Id: error.c,v 1.129 2004/06/29 15:44:49 grubba Exp $");      /* __attribute__ only applies to function declarations, not    definitions, so we disable them here. */
190:   }      PMOD_EXPORT void Pike_vsnprintf(char *str, size_t size, -  const char *fmt, va_list ap) +  const char *fmt, va_list args)   { -  va_list args; -  va_copy(args, ap); -  +     size--;       do {
453: Inside #if defined(__NT__)
  static void do_abort()   {    if (!d_flag && !getenv("PIKE_DEBUG")) { -  exit(-6); /* -SIGIOT */ +  /*exit(-6); /* -SIGIOT */    }    fnordel=999/fnordel;   }