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.492 2003/03/29 22:42:48 mast Exp $ + || $Id: program.c,v 1.493 2003/03/30 00:31:06 mast Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.492 2003/03/29 22:42:48 mast Exp $"); + RCSID("$Id: program.c,v 1.493 2003/03/30 00:31:06 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:5153:   {    if(shift)    {    static char buf[1000];    char *buffer = malloced ?    malloc (len + 1) : (len = NELEM(buf) - 1, buf);    PCHARP from=MKPCHARP(file, shift);    int chr;    size_t ptr=0;    -  for (; chr = EXTRACT_PCHARP(from); INC_PCHARP(from, 1)) +  for (; (chr = EXTRACT_PCHARP(from)); INC_PCHARP(from, 1))    {    size_t space = chr > 255 ? 20 : 1;       if (ptr + space > len) {    if (malloced)    buffer = realloc (buffer, (len = (len << 1) + space) + 1);    else    break;    }