Branch: Tag:

2000-02-16

2000-02-16 03:58:16 by Per Hedbor <ph@opera.com>

Fix for somewhat better error message when decoding objects in programs, and (automatic) whitespace removal.

Rev: src/encode.c:1.54

25:   #include "version.h"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.53 2000/02/09 16:21:46 grubba Exp $"); + RCSID("$Id: encode.c,v 1.54 2000/02/16 03:58:16 per Exp $");      /* #define ENCODE_DEBUG */   
1145:    break;    }    if(data->pickyness && sp[-1].type != T_OBJECT) -  error("Failed to decode.\n"); +  error("Failed to decode (got type %d; expected object).\n", +  sp[-1].type);    break;       case TAG_FUNCTION:
1637:    assign_svalue(sp-args-1, sp-1);    pop_n_elems(args);   } -  -  +