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: program.h,v 1.212 2004/10/22 23:24:50 nilsson Exp $ + || $Id: program.h,v 1.213 2004/10/30 11:38:28 mast Exp $   */      #ifndef PROGRAM_H
97:   #define LFUN__EQUAL 41   #define LFUN__M_DELETE 42   #define LFUN__GET_ITERATOR 43 + #define LFUN_RANGE 44    - #define NUM_LFUNS 44 + #define NUM_LFUNS 45      /* NOTE: After this point there are only fake lfuns.    * ie use low_find_lfun(), and NOT FIND_LFUN()!    */ - #define LFUN__SEARCH 44 + #define LFUN__SEARCH 45      extern const char *const lfun_names[];