pike.git / src / program.c

version» Context lines:

pike.git/src/program.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: program.c,v 1.527 2003/09/30 13:18:15 grubba Exp $ + || $Id: program.c,v 1.528 2003/10/20 13:12:18 mast Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.527 2003/09/30 13:18:15 grubba Exp $"); + RCSID("$Id: program.c,v 1.528 2003/10/20 13:12:18 mast Exp $");   #include "program.h"   #include "object.h"   #include "dynamic_buffer.h"   #include "pike_types.h"   #include "stralloc.h"   #include "las.h"   #include "language.h"   #include "lex.h"   #include "pike_macros.h"   #include "fsort.h"
pike.git/src/program.c:5386:       if (ptr + space > len) {    if (malloced)    buffer = realloc (buffer, (len = (len << 1) + space) + 1);    else    break;    }       if(chr > 255)    { -  sprintf(buffer+ptr,"\\0x%x",chr); +  sprintf(buffer+ptr,"\\u%04X",chr);    ptr+=strlen(buffer+ptr);    }else{    buffer[ptr++]=chr;    }    }       buffer[ptr]=0;    return buffer;    }