Branch: Tag:

2009-08-18

2009-08-18 13:57:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now uses the MasterCodec to decode the master object.

Rev: src/encode.c:1.291

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.290 2009/08/17 13:55:06 grubba Exp $ + || $Id: encode.c,v 1.291 2009/08/18 13:57:16 grubba Exp $   */      #include "global.h"
5220:    }   }    + /* Defined in builtin.cmod. */ + extern struct program *MasterCodec_program; +    /*! @decl mixed decode_value(string coded_value, void|Codec codec)    *!    *! Decode a value from the string @[coded_value].
5276:    case 1:    codec = get_master();    if (!codec) { -  /* Use a dummy if there's no master around yet, to avoid checks. */ -  push_object (clone_object (null_program, 0)); +  /* The codec used for decoding the master program. */ +  push_object (clone_object (MasterCodec_program, 0));    args++;    codec = Pike_sp[-1].u.object;    }