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.246 2007/10/03 11:38:06 grubba Exp $ + || $Id: encode.c,v 1.247 2008/01/16 19:55:25 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:1175:       /* Portable encoding (4 and 5). */       if (!force_encode) {    /* Encode later (5). */    EDB(1, fprintf(stderr, "%*sencode: delayed encoding of program\n",    data->depth, ""));    code_entry (TAG_PROGRAM, 5, data);    data->delayed = append_array (data->delayed, val);    tmp = low_mapping_lookup (data->encoded, val); +  if (!tmp) +  Pike_error("Internal error in delayed encoder of programs.\n");    tmp->u.integer = CONVERT_ENTRY_ID (tmp->u.integer);    goto encode_done;    }       EDB(1, fprintf(stderr, "%*sencode: encoding program in new style\n",    data->depth, ""));    code_entry(TAG_PROGRAM, 4, data);       /* Byte-order. */    code_number(PIKE_BYTEORDER, data);