Branch: Tag:

2007-05-09

2007-05-09 16:02:21 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added support for T_SCOPE type nodes.

Rev: src/encode.c:1.243

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.242 2007/05/02 17:43:32 grubba Exp $ + || $Id: encode.c,v 1.243 2007/05/09 16:02:21 grubba Exp $   */      #include "global.h"
337:    t = t->cdr;    goto one_more_type;    +  case T_SCOPE: +  { +  ptrdiff_t val = CAR_TO_INT(t); +  addchar(val & 0xff); +  } +  /* FALL_THOUGH */    case T_MAPPING:    case T_OR:    case T_AND:
2104:    push_assign_type(tmp); /* Actually reverse, but they're the same */    break;    +  case T_SCOPE: +  tmp = GETC(); +  low_decode_type(data); +  push_scope_type(tmp); /* Actually reverse, but they're the same */ +  break; +     case T_FUNCTION:    {    int narg = 0;