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.547 2004/01/16 00:51:40 nilsson Exp $ + || $Id: program.c,v 1.548 2004/01/16 21:20:08 mirar Exp $   */      #include "global.h" - RCSID("$Id: program.c,v 1.547 2004/01/16 00:51:40 nilsson Exp $"); + RCSID("$Id: program.c,v 1.548 2004/01/16 21:20:08 mirar 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:1188:    the like. Hence -2 and not -1. Y2K. */   #define FOO(NUMTYPE,TYPE,ARGTYPE,NAME) \   void PIKE_CONCAT(low_add_to_,NAME) (struct program_state *state, \    TYPE ARG) { \    NUMTYPE m = state->malloc_size_program->PIKE_CONCAT(num_,NAME); \    CHECK_FOO(NUMTYPE,TYPE,NAME); \    if(m == state->new_program->PIKE_CONCAT(num_,NAME)) { \    TYPE *tmp; \    if(m==(1<<(sizeof(NUMTYPE)*8))-2) \    Pike_error("Too many " #NAME ".\n"); \ -  m = MIN(m*2+1,(1<<(sizeof(NUMTYPE)*8))-2); \ +  m = MINIMUM(m*2+1,(1<<(sizeof(NUMTYPE)*8))-2); \    tmp = realloc((void *)state->new_program->NAME, \    sizeof(TYPE) * m); \    if(!tmp) Pike_fatal("Out of memory.\n"); \    PIKE_CONCAT(RELOCATE_,NAME)(state->new_program, tmp); \    state->malloc_size_program->PIKE_CONCAT(num_,NAME)=m; \    state->new_program->NAME=tmp; \    } \    state->new_program-> \    NAME[state->new_program->PIKE_CONCAT(num_,NAME)++]=(ARG); \   } \