Branch: Tag:

2001-02-24

2001-02-24 22:08:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Use the tag datafield for version information when encoding types.
ie set it to zero.

Rev: src/encode.c:1.86

25:   #include "version.h"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.85 2001/02/22 21:15:34 grubba Exp $"); + RCSID("$Id: encode.c,v 1.86 2001/02/24 22:08:43 grubba Exp $");      /* #define ENCODE_DEBUG */   
402:    */    if (data->canonic)    Pike_error("Canonical encoding of the type type not supported.\n"); -  code_entry(TAG_TYPE, val->u.type->len, data); +  code_entry(TAG_TYPE, 0, data); /* Type encoding #0 */    encode_type(val->u.type->str, data);    mapping_insert(data->encoded, val, &data->counter);    data->counter.u.integer++;
1213:    {    struct pike_type *t;    +  /* FIXME: Should check that num is 0 here. */ +     decode_type(t, data);    check_type_string(t);    push_type_value(t);