Branch: Tag:

2007-04-26

2007-04-26 11:13:22 by Henrik Grubbström (Grubba) <grubba@grubba.org>

{en,de}code_type() now knows about PIKE_T_ATTRIBUTE types.

Rev: src/encode.c:1.241

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.240 2007/03/03 16:46:12 grubba Exp $ + || $Id: encode.c,v 1.241 2007/04/26 11:13:22 grubba Exp $   */      #include "global.h"
300:       break;    +  case PIKE_T_ATTRIBUTE: /* FIXME: Strip this in compat mode. */    case PIKE_T_NAME:    {    struct svalue sval;
2184:    push_type(tmp);    break;    +  case PIKE_T_ATTRIBUTE: +  decode_value2(data); +  +  if (Pike_sp[-1].type != PIKE_T_STRING) { +  Pike_error("decode_value(): Type attribute is not a string (%s)\n", +  get_name_of_type(Pike_sp[-1].type)); +  } +  low_decode_type(data); +  push_type_attribute(Pike_sp[-1].u.string); +  pop_stack(); +  break; +     case PIKE_T_NAME:    decode_value2(data);