Branch: Tag:

2008-02-14

2008-02-14 17:46:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed encoding bug for aliased variables.

Rev: src/encode.c:1.259

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.258 2008/02/08 22:12:09 grubba Exp $ + || $Id: encode.c,v 1.259 2008/02/14 17:46:18 grubba Exp $   */      #include "global.h"
1446:    }       if (IDENTIFIER_IS_ALIAS(id->identifier_flags)) { +  if ((!id->func.ext_ref.depth) && +  IDENTIFIER_IS_VARIABLE(id->identifier_flags)) { +  /* Let define_variable() handle the decoding. */ +  EDB(3, fprintf(stderr, "%*sencode: encoding aliased variable\n", data->depth, "")); +  goto encode_entry_variable; +  } +  EDB(3, fprintf(stderr, "%*sencode: encoding alias\n", +  data->depth, "")); +     code_number(ID_ENTRY_ALIAS, data);       /* flags */
1549:    EDB(3,    fprintf(stderr, "%*sencode: encoding variable\n",    data->depth, "")); -  +  encode_entry_variable:    code_number(ID_ENTRY_VARIABLE, data);    if (gs_flags >= 0) {    code_number(gs_flags, data);