Mercurial > hg > octave-nkf
annotate src/ov-fcn.cc @ 14645:cbc00b587f36
also allow "end" indexing in classdef files
* lex.ll (is_keyword_token): Return zero if looking at end inside an
object index in classdef files.
From James Laird <james.laird@nicta.com.au>.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 17 May 2012 00:46:57 -0400 |
parents | 72c96de7a403 |
children |
rev | line source |
---|---|
2974 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
3 Copyright (C) 1996-2012 John W. Eaton |
2974 | 4 |
5 This file is part of Octave. | |
6 | |
7 Octave is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published by the | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
2974 | 11 |
12 Octave is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
2974 | 20 |
21 */ | |
22 | |
23 #ifdef HAVE_CONFIG_H | |
24 #include <config.h> | |
25 #endif | |
26 | |
27 #include "error.h" | |
4055 | 28 #include "oct-obj.h" |
2974 | 29 #include "ov-fcn.h" |
30 | |
3219 | 31 DEFINE_OCTAVE_ALLOCATOR (octave_function); |
2974 | 32 |
5759 | 33 octave_base_value * |
3933 | 34 octave_function::clone (void) const |
35 { | |
36 panic_impossible (); | |
37 return 0; | |
38 } | |
39 | |
5759 | 40 octave_base_value * |
3933 | 41 octave_function::empty_clone (void) const |
2974 | 42 { |
43 panic_impossible (); | |
3548 | 44 return 0; |
2974 | 45 } |