pike.git / src / encode.c

version» Context lines:

pike.git/src/encode.c:18:   #include "error.h"   #include "operators.h"   #include "builtin_functions.h"   #include "module_support.h"   #include "fsort.h"   #include "threads.h"   #include "stuff.h"   #include "version.h"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.47 1999/11/23 22:38:06 grubba Exp $"); + RCSID("$Id: encode.c,v 1.48 1999/12/10 22:40:33 grubba Exp $");      /* #define ENCODE_DEBUG */      #ifdef ENCODE_DEBUG   #define EDB(X) X   #else   #define EDB(X)   #endif      #ifdef _AIX
pike.git/src/encode.c:850:    {    case T_INT:    push_type_int(0);    break;       case T_PROGRAM:    push_type_int(sp[-1].u.program->id);    break;       default: -  error("Failed to decode type.\n"); +  error("Failed to decode type " +  "(object(%s), expected object(zero|program)).\n", +  get_name_of_type(sp[-1].type));    }    pop_stack();    type_stack_reverse();    }    }       UNSET_ONERROR(err2);    UNSET_ONERROR(err1);   }