Branch: Tag:

2007-03-05

2007-03-05 18:10:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Constant string nodes now get stricter types.

Rev: src/las.c:1.380

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: las.c,v 1.379 2006/10/28 18:17:56 grubba Exp $ + || $Id: las.c,v 1.380 2007/03/05 18:10:40 grubba Exp $   */      #include "global.h"
1222:   {    node *res = mkemptynode();    res->token = F_CONSTANT; -  copy_pike_type(res->type, string_type_string); +     res->node_info = 0;    res->u.sval.type = T_STRING;   #ifdef __CHECKER__    res->u.sval.subtype = 0;   #endif    copy_shared_string(res->u.sval.u.string, str); -  +  res->type = get_type_of_svalue(&res->u.sval);    return freeze_node(res);   }