Branch: Tag:

2004-10-30

2004-10-30 11:38:29 by Martin Stjernholm <mast@lysator.liu.se>

Implemented from-the-end indexing in ranges using the a[..<1] syntax. Added
`[..]. Still to do: Avoid fallback to `[] for ranges if it doesn't take two
args.

Rev: src/docode.c:1.181
Rev: src/interpret.c:1.358
Rev: src/interpret_functions.h:1.176
Rev: src/language.yacc:1.347
Rev: src/las.c:1.351
Rev: src/lexer.h:1.51
Rev: src/opcodes.h:1.41
Rev: src/operators.c:1.198
Rev: src/operators.h:1.16
Rev: src/pike_types.c:1.238
Rev: src/program.c:1.573
Rev: src/program.h:1.213
Rev: src/testsuite.in:1.741
Rev: src/treeopt.in:1.74

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: interpret.c,v 1.357 2004/10/22 23:23:51 nilsson Exp $ + || $Id: interpret.c,v 1.358 2004/10/30 11:38:25 mast Exp $   */      #include "global.h"
295: Inside #if defined(HAVE_COMPUTED_GOTO) || defined(PIKE_USE_MACHINE_CODE)
   SET_INSTR_ADDRESS(F_CAST, f_cast);    SET_INSTR_ADDRESS(F_CAST_TO_INT, o_cast_to_int);    SET_INSTR_ADDRESS(F_CAST_TO_STRING, o_cast_to_string); -  SET_INSTR_ADDRESS(F_RANGE, o_range); +  SET_INSTR_ADDRESS(F_RANGE, o_range2);    SET_INSTR_ADDRESS(F_SSCANF, o_sscanf);   #endif /* PIKE_USE_MACHINE_CODE && !PIKE_DEBUG */    tables_need_init=0;