pike.git / src / error.c

version» Context lines:

pike.git/src/error.c:1:   /*   || 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.136 2004/10/30 11:41:08 mast Exp $ + || $Id: error.c,v 1.137 2004/11/05 03:34:28 mast Exp $   */      #define NO_PIKE_SHORTHAND   #include "global.h"   #include "svalue.h"   #include "pike_macros.h"   #include "pike_error.h"   #include "interpret.h"   #include "stralloc.h"   #include "builtin_functions.h"
pike.git/src/error.c:259:    case 'd':    {    char buf[12];    int pos=0;    sprintf(buf, "%d", va_arg(args, int));    while( --size>0 && buf[pos]!=0 )    str++[0]=buf[pos++];    }    break;    +  case 'x': +  { +  char buf[12]; +  int pos=0; +  sprintf(buf, "%x", va_arg(args, int)); +  while( --size>0 && buf[pos]!=0 ) +  str++[0]=buf[pos++]; +  } +  break; +     case '%':    str++[0]='%';    size--;    break;       default:    Pike_fatal("Unknown Pike_vsnprintf formatting char '%c'.\n",    (fmt-1)[0]);    }    }