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.238 2006/10/27 18:43:15 grubba Exp $ + || $Id: encode.c,v 1.239 2007/01/05 15:49:47 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:968:    int d;    if (val->u.program->id < PROG_DYNAMIC_ID_START) {    code_entry(TAG_PROGRAM, 3, data);    push_int(val->u.program->id);    encode_value2(Pike_sp-1, data, 0);    pop_stack();    break;    }    if (data->canonic)    Pike_error("Canonical encoding of programs not supported.\n"); +  if (!(val->u.program->flags & PROGRAM_FIXED)) +  Pike_error("Encoding of unfixated programs not supported.\n");    check_stack(1);    push_svalue(val);    apply(data->codec,"nameof", 1);    if(Pike_sp[-1].type == val->type)    Pike_error("Error in master()->nameof(), same type returned.\n");    if(Pike_sp[-1].type == T_INT && Pike_sp[-1].subtype == NUMBER_UNDEFINED)    {    struct program *p=val->u.program;    pop_stack();    if( (p->flags & PROGRAM_HAS_C_METHODS) || p->event_handler )
pike.git/src/encode.c:1511:    encode_value2(&str_sval, data, 0);       /* type */    ref_push_type_value(id->type);    encode_value2(Pike_sp-1, data, 0);    pop_stack();    break;       default:;   #ifdef PIKE_DEBUG -  Pike_fatal ("Unknown identifier type.\n"); +  Pike_fatal ("Unknown identifier type: 0x%04x for symbol \"%s\".\n", +  id->identifier_flags & IDENTIFIER_TYPE_MASK, +  id->name->str);   #endif    }    }       /* Identifier reference number */    code_number(d, data);       next_identifier_ref:    ; /* C requires a statement after lables. */   #ifdef ENCODE_DEBUG