Branch: Tag:

1999-03-02

1999-03-02 03:13:35 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

int(X..Y) implemented, plus some bugfixes and removed two memory 'leaks'

Rev: src/constants.c:1.15
Rev: src/global.h:1.28
Rev: src/interpret.c:1.116
Rev: src/interpret.h:1.27
Rev: src/language.yacc:1.111
Rev: src/las.c:1.75
Rev: src/main.c:1.64
Rev: src/modules/Gmp/mpz_glue.c:1.40
Rev: src/operators.c:1.48
Rev: src/pike_types.c:1.54
Rev: src/pike_types.h:1.18
Rev: src/stralloc.h:1.33
Rev: src/svalue.h:1.22
Rev: src/testsuite.in:1.151

4:   ||| 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"
454:   {    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;   }