Mercurial > hg > octave-nkf
annotate src/octave.gperf @ 10785:c2041adcf234
remove unnecessary sparse indexing overloads
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 13 Jul 2010 12:08:08 +0200 |
parents | d9b25c5b8ee5 |
children | fd0a3ac60b0e |
rev | line source |
---|---|
1496 | 1 %{ |
7019 | 2 /* |
3 | |
4 Copyright (C) 1995, 1997, 1998, 2000, 2002, 2004, 2005, 2006, | |
8775
a2a9dc5e8565
octave.gperf: eliminate whitespace to allow gperf 2.7.2 to work
John W. Eaton <jwe@octave.org>
parents:
7587
diff
changeset
|
5 2007, 2008, 2009 John W. Eaton |
7019 | 6 |
7 This file is part of Octave. | |
8 | |
9 Octave is free software; you can redistribute it and/or modify it | |
10 under the terms of the GNU General Public License as published by the | |
11 Free Software Foundation; either version 3 of the License, or (at | |
12 your option) any later version. | |
13 | |
14 Octave is distributed in the hope that it will be useful, but WITHOUT | |
15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
16 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
17 for more details. | |
18 | |
19 You should have received a copy of the GNU General Public License | |
20 along with Octave; see the file COPYING. If not, see | |
21 <http://www.gnu.org/licenses/>. | |
22 | |
8775
a2a9dc5e8565
octave.gperf: eliminate whitespace to allow gperf 2.7.2 to work
John W. Eaton <jwe@octave.org>
parents:
7587
diff
changeset
|
23 NOTE: gperf 2.7.2 will silently generate bad code if there are blank |
a2a9dc5e8565
octave.gperf: eliminate whitespace to allow gperf 2.7.2 to work
John W. Eaton <jwe@octave.org>
parents:
7587
diff
changeset
|
24 lines following the "%{" marker above. This comment block seems to be |
a2a9dc5e8565
octave.gperf: eliminate whitespace to allow gperf 2.7.2 to work
John W. Eaton <jwe@octave.org>
parents:
7587
diff
changeset
|
25 handled correctly. |
a2a9dc5e8565
octave.gperf: eliminate whitespace to allow gperf 2.7.2 to work
John W. Eaton <jwe@octave.org>
parents:
7587
diff
changeset
|
26 |
7019 | 27 */ |
1496 | 28 enum octave_kw_id |
29 { | |
30 break_kw, | |
2764 | 31 case_kw, |
1496 | 32 catch_kw, |
9476 | 33 classdef_kw, |
1496 | 34 continue_kw, |
3484 | 35 do_kw, |
1496 | 36 else_kw, |
37 elseif_kw, | |
38 end_kw, | |
39 end_try_catch_kw, | |
40 end_unwind_protect_kw, | |
9476 | 41 endclassdef_kw, |
42 endevents_kw, | |
1496 | 43 endfor_kw, |
44 endfunction_kw, | |
45 endif_kw, | |
9476 | 46 endmethods_kw, |
47 endproperties_kw, | |
2764 | 48 endswitch_kw, |
1496 | 49 endwhile_kw, |
9476 | 50 events_kw, |
1496 | 51 for_kw, |
52 function_kw, | |
9476 | 53 get_kw, |
1496 | 54 global_kw, |
55 if_kw, | |
3174 | 56 magic_file_kw, |
57 magic_line_kw, | |
9476 | 58 methods_kw, |
2764 | 59 otherwise_kw, |
9476 | 60 properties_kw, |
1496 | 61 return_kw, |
9476 | 62 set_kw, |
2846 | 63 static_kw, |
2764 | 64 switch_kw, |
1496 | 65 try_kw, |
3484 | 66 until_kw, |
1496 | 67 unwind_protect_kw, |
68 unwind_protect_cleanup_kw, | |
69 while_kw | |
70 }; | |
71 %} | |
2804 | 72 struct octave_kw { const char *name; int tok; octave_kw_id kw_id; }; |
1496 | 73 %% |
74 break, BREAK, break_kw | |
2764 | 75 case, CASE, case_kw |
1496 | 76 catch, CATCH, catch_kw |
9476 | 77 classdef, CLASSDEF, classdef_kw |
1496 | 78 continue, CONTINUE, continue_kw |
3484 | 79 do, DO, do_kw |
1496 | 80 else, ELSE, else_kw |
81 elseif, ELSEIF, elseif_kw | |
82 end, END, end_kw | |
83 end_try_catch, END, end_try_catch_kw | |
84 end_unwind_protect, END, end_unwind_protect_kw | |
9476 | 85 endclassdef, END, endclassdef_kw |
86 endevents, END, endevents_kw | |
1496 | 87 endfor, END, endfor_kw |
88 endfunction, END, endfunction_kw | |
89 endif, END, endif_kw | |
9476 | 90 endmethods, END, endmethods_kw |
91 endproperties, END, endproperties_kw | |
2764 | 92 endswitch, END, endswitch_kw |
1496 | 93 endwhile, END, endwhile_kw |
9476 | 94 events, EVENTS, events_kw |
1496 | 95 for, FOR, for_kw |
96 function, FCN, function_kw | |
9476 | 97 get, GET, get_kw |
1496 | 98 global, GLOBAL, global_kw |
99 if, IF, if_kw | |
9476 | 100 methods, METHODS, methods_kw |
2764 | 101 otherwise, OTHERWISE, otherwise_kw |
4166 | 102 persistent, STATIC, static_kw |
9476 | 103 properties, PROPERTIES, properties_kw |
1496 | 104 return, FUNC_RET, return_kw |
9476 | 105 set, SET, set_kw |
2846 | 106 static, STATIC, static_kw |
2764 | 107 switch, SWITCH, switch_kw |
1496 | 108 try, TRY, try_kw |
3484 | 109 until, UNTIL, until_kw |
1496 | 110 unwind_protect, UNWIND, unwind_protect_kw |
111 unwind_protect_cleanup, CLEANUP, unwind_protect_cleanup_kw | |
112 while, WHILE, while_kw | |
5279 | 113 __FILE__, DQ_STRING, magic_file_kw |
3174 | 114 __LINE__, NUM, magic_line_kw |