pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   #include "global.h" - RCSID("$Id: las.c,v 1.74 1999/02/01 06:13:15 hubbe Exp $"); + RCSID("$Id: las.c,v 1.75 1999/03/02 03:13:21 hubbe Exp $");      #include "language.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"   #include "pike_types.h"
pike.git/src/las.c:447:    res->u.sval.subtype = 0;   #endif    copy_shared_string(res->u.sval.u.string, str);    return res;   }      node *mkintnode(int nr)   {    node *res = mkemptynode();    res->token = F_CONSTANT; -  if(nr) -  copy_shared_string(res->type, int_type_string); -  else -  copy_shared_string(res->type, mixed_type_string); +     res->node_info = 0;    res->u.sval.type = T_INT;    res->u.sval.subtype = NUMBER_NUMBER;    res->u.sval.u.integer = nr; -  +  res->type=get_type_of_svalue( & res->u.sval);    return res;   }      node *mkfloatnode(FLOAT_TYPE foo)   {    node *res = mkemptynode();    res->token = F_CONSTANT;    copy_shared_string(res->type, float_type_string);    res->u.sval.type = T_FLOAT;   #ifdef __CHECKER__