pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.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: encode.c,v 1.285 2008/07/31 11:06:39 grubba Exp $ + || $Id: encode.c,v 1.286 2008/07/31 14:09:04 grubba Exp $   */      #include "global.h"   #include "stralloc.h"   #include "pike_macros.h"   #include "object.h"   #include "constants.h"   #include "interpret.h"   #include "svalue.h"   #include "mapping.h"
pike.git/src/encode.c:3069:    }    pop_stack();    break;    }       default:    Pike_error("Function coding not compatible.\n");    break;    }    -  if(Pike_sp[-1].type != T_FUNCTION && data->pickyness) +  if((Pike_sp[-1].type != T_FUNCTION) && (Pike_sp[-1].type != T_PROGRAM) && +  data->pickyness)    decode_error(Pike_sp - 2, Pike_sp - 1,    "Failed to decode function. Got: ");       stack_pop_keep_top();       break;          case TAG_PROGRAM:    EDB(3,