Branch: Tag:

2005-05-27

2005-05-27 18:34:23 by Martin Stjernholm <mast@lysator.liu.se>

Use a more compact version specifier in dumped programs.

Rev: src/encode.c:1.229
Rev: src/version.c:1.143
Rev: src/version.h:1.377

2:   || 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.228 2005/05/19 22:35:26 mast Exp $ + || $Id: encode.c,v 1.229 2005/05/27 18:34:23 mast Exp $   */      #include "global.h"
1022: Inside #if defined(OLD_PIKE_ENCODE_PROGRAM)
   /* Type 1 -- Old-style encoding. */       code_entry(TAG_PROGRAM, 1, data); -  f_version(0); +  push_compact_version();    encode_value2(Pike_sp-1,data, 0);    pop_stack();    code_number(p->flags,data);
1174:    code_number(p->flags,data);       /* version */ -  f_version(0); +  push_compact_version();    encode_value2(Pike_sp-1, data, 0);    pop_stack();   
2845:    SET_ONERROR(err4, zap_placeholder, placeholder);       decode_value2(data); -  f_version(0); +  push_compact_version();    if(!is_eq(Pike_sp-1,Pike_sp-2))    Pike_error("Cannot decode programs encoded with other pike version.\n");    pop_n_elems(2);
3498:       /* Check the version. */    decode_value2(data); -  f_version(0); +  push_compact_version();    if(!is_eq(Pike_sp-1,Pike_sp-2))    Pike_error("Cannot decode programs encoded with other pike version.\n");    pop_n_elems(2);