2376
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
2376
|
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 |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
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 |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_value_h) |
|
24 #define octave_value_h 1 |
|
25 |
|
26 #if defined (__GNUG__) |
|
27 #pragma interface |
|
28 #endif |
|
29 |
|
30 #include <cstdlib> |
|
31 |
|
32 #include <string> |
|
33 |
|
34 class ostream; |
|
35 |
|
36 #include "Range.h" |
|
37 #include "idx-vector.h" |
|
38 #include "mx-base.h" |
2477
|
39 #include "oct-alloc.h" |
2942
|
40 #include "str-vec.h" |
|
41 |
2376
|
42 class Octave_map; |
2903
|
43 class octave_stream; |
2974
|
44 class octave_function; |
2376
|
45 class octave_value_list; |
2979
|
46 class octave_lvalue; |
2376
|
47 |
|
48 // Constants. |
|
49 |
|
50 // This just provides a way to avoid infinite recursion when building |
|
51 // octave_value objects. |
|
52 |
|
53 class |
|
54 octave_xvalue |
|
55 { |
|
56 public: |
|
57 |
|
58 octave_xvalue (void) { } |
|
59 }; |
|
60 |
2427
|
61 class octave_value; |
|
62 |
|
63 // XXX FIXME XXX -- these should probably really be inside the scope |
|
64 // of the octave_value class, but the cygwin32 beta16 version of g++ |
3203
|
65 // can't handle that. |
|
66 |
|
67 typedef octave_value (*unary_op_fcn) |
|
68 (const octave_value&); |
|
69 |
|
70 typedef void (*non_const_unary_op_fcn) |
|
71 (octave_value&); |
2427
|
72 |
|
73 typedef octave_value (*binary_op_fcn) |
|
74 (const octave_value&, const octave_value&); |
|
75 |
|
76 typedef octave_value (*assign_op_fcn) |
|
77 (octave_value&, const octave_value_list&, const octave_value&); |
|
78 |
|
79 typedef octave_value * (*type_conv_fcn) (const octave_value&); |
|
80 |
2376
|
81 class |
2974
|
82 octave_value |
2376
|
83 { |
|
84 public: |
|
85 |
3203
|
86 enum unary_op |
|
87 { |
|
88 not, |
|
89 uminus, |
|
90 transpose, |
|
91 hermitian, |
|
92 incr, |
|
93 decr, |
|
94 num_unary_ops, |
|
95 unknown_unary_op |
|
96 }; |
|
97 |
2376
|
98 enum binary_op |
|
99 { |
|
100 add, |
|
101 sub, |
|
102 mul, |
|
103 div, |
|
104 pow, |
|
105 ldiv, |
2903
|
106 lshift, |
|
107 rshift, |
2376
|
108 lt, |
|
109 le, |
|
110 eq, |
|
111 ge, |
|
112 gt, |
|
113 ne, |
|
114 el_mul, |
|
115 el_div, |
|
116 el_pow, |
|
117 el_ldiv, |
|
118 el_and, |
|
119 el_or, |
|
120 struct_ref, |
|
121 num_binary_ops, |
|
122 unknown_binary_op |
|
123 }; |
|
124 |
2880
|
125 enum assign_op |
|
126 { |
|
127 asn_eq, |
|
128 add_eq, |
|
129 sub_eq, |
|
130 mul_eq, |
|
131 div_eq, |
3204
|
132 ldiv_eq, |
2903
|
133 lshift_eq, |
|
134 rshift_eq, |
2880
|
135 el_mul_eq, |
|
136 el_div_eq, |
3204
|
137 el_ldiv_eq, |
2880
|
138 el_and_eq, |
|
139 el_or_eq, |
|
140 num_assign_ops, |
|
141 unknown_assign_op |
|
142 }; |
|
143 |
3203
|
144 static string unary_op_as_string (unary_op); |
|
145 |
2376
|
146 static string binary_op_as_string (binary_op); |
|
147 |
2880
|
148 static string assign_op_as_string (assign_op); |
|
149 |
2376
|
150 enum magic_colon { magic_colon_t }; |
|
151 enum all_va_args { all_va_args_t }; |
|
152 |
|
153 octave_value (void); |
|
154 octave_value (double d); |
|
155 octave_value (const Matrix& m); |
|
156 octave_value (const DiagMatrix& d); |
|
157 octave_value (const RowVector& v, int pcv = -1); |
|
158 octave_value (const ColumnVector& v, int pcv = -1); |
|
159 octave_value (const Complex& C); |
|
160 octave_value (const ComplexMatrix& m); |
|
161 octave_value (const ComplexDiagMatrix& d); |
|
162 octave_value (const ComplexRowVector& v, int pcv = -1); |
|
163 octave_value (const ComplexColumnVector& v, int pcv = -1); |
2825
|
164 octave_value (bool b); |
|
165 octave_value (const boolMatrix& bm); |
3189
|
166 octave_value (char c); |
2376
|
167 octave_value (const char *s); |
|
168 octave_value (const string& s); |
|
169 octave_value (const string_vector& s); |
|
170 octave_value (const charMatrix& chm, bool is_string = false); |
|
171 octave_value (double base, double limit, double inc); |
|
172 octave_value (const Range& r); |
|
173 octave_value (const Octave_map& m); |
2903
|
174 octave_value (octave_stream *s, int n); |
2974
|
175 octave_value (octave_function *f); |
2880
|
176 octave_value (const octave_value_list& m); |
2376
|
177 octave_value (octave_value::magic_colon); |
|
178 octave_value (octave_value::all_va_args); |
|
179 |
|
180 octave_value (octave_value *new_rep); |
|
181 |
|
182 // Copy constructor. |
|
183 |
|
184 octave_value (const octave_value& a) |
|
185 { |
|
186 rep = a.rep; |
|
187 rep->count++; |
|
188 } |
|
189 |
|
190 // Delete the representation of this constant if the count drops to |
|
191 // zero. |
|
192 |
|
193 virtual ~octave_value (void); |
|
194 |
|
195 // This should only be called for derived types. |
|
196 |
2880
|
197 virtual octave_value *clone (void); |
2376
|
198 |
|
199 void make_unique (void) |
|
200 { |
|
201 if (rep->count > 1) |
|
202 { |
|
203 --rep->count; |
|
204 rep = rep->clone (); |
|
205 rep->count = 1; |
|
206 } |
|
207 } |
|
208 |
2477
|
209 void *operator new (size_t size) |
|
210 { return allocator.alloc (size); } |
|
211 |
|
212 void operator delete (void *p, size_t size) |
|
213 { allocator.free (p, size); } |
2376
|
214 |
|
215 // Simple assignment. |
|
216 |
|
217 octave_value& operator = (const octave_value& a) |
|
218 { |
|
219 if (rep != a.rep) |
|
220 { |
|
221 if (--rep->count == 0) |
|
222 delete rep; |
|
223 |
|
224 rep = a.rep; |
|
225 rep->count++; |
|
226 } |
|
227 |
|
228 return *this; |
|
229 } |
|
230 |
2409
|
231 virtual type_conv_fcn numeric_conversion_function (void) const |
2376
|
232 { return rep->numeric_conversion_function (); } |
|
233 |
2409
|
234 void maybe_mutate (void); |
|
235 |
2410
|
236 virtual octave_value *try_narrowing_conversion (void) |
|
237 { return rep->try_narrowing_conversion (); } |
2409
|
238 |
2974
|
239 virtual octave_value do_index_op (const octave_value_list& idx) |
2963
|
240 { return rep->do_index_op (idx); } |
2376
|
241 |
2974
|
242 virtual octave_value_list |
|
243 do_index_op (int nargout, const octave_value_list& idx); |
|
244 |
2963
|
245 void assign (assign_op, const octave_value& rhs); |
2880
|
246 |
2963
|
247 void assign (assign_op, const octave_value_list& idx, |
|
248 const octave_value& rhs); |
2376
|
249 |
2948
|
250 virtual void |
|
251 assign_struct_elt (assign_op, const string& elt_nm, |
|
252 const octave_value& rhs); |
|
253 |
|
254 virtual void |
|
255 assign_struct_elt (assign_op, const string& elt_nm, |
|
256 const octave_value_list& idx, const octave_value& rhs); |
|
257 |
2376
|
258 virtual idx_vector index_vector (void) const |
|
259 { return rep->index_vector (); } |
|
260 |
2420
|
261 virtual octave_value |
2963
|
262 do_struct_elt_index_op (const string& nm, bool silent = false) |
|
263 { return rep->do_struct_elt_index_op (nm, silent); } |
|
264 |
|
265 virtual octave_value |
|
266 do_struct_elt_index_op (const string& nm, const octave_value_list& idx, |
|
267 bool silent = false) |
|
268 { return rep->do_struct_elt_index_op (nm, idx, silent); } |
2376
|
269 |
2979
|
270 octave_lvalue struct_elt_ref (const string& nm); |
2948
|
271 |
2979
|
272 virtual octave_lvalue |
2948
|
273 struct_elt_ref (octave_value *parent, const string& nm); |
2376
|
274 |
|
275 // Size. |
|
276 |
|
277 virtual int rows (void) const |
|
278 { return rep->rows (); } |
|
279 |
|
280 virtual int columns (void) const |
|
281 { return rep->columns (); } |
|
282 |
3195
|
283 virtual int length (void) const |
|
284 { return rep->length (); } |
|
285 |
2376
|
286 // Does this constant have a type? Both of these are provided since |
|
287 // it is sometimes more natural to write is_undefined() instead of |
|
288 // ! is_defined(). |
|
289 |
|
290 virtual bool is_defined (void) const |
|
291 { return rep->is_defined (); } |
|
292 |
|
293 bool is_undefined (void) const |
|
294 { return ! is_defined (); } |
|
295 |
|
296 virtual bool is_real_scalar (void) const |
|
297 { return rep->is_real_scalar (); } |
|
298 |
|
299 virtual bool is_real_matrix (void) const |
|
300 { return rep->is_real_matrix (); } |
|
301 |
|
302 virtual bool is_complex_scalar (void) const |
|
303 { return rep->is_complex_scalar (); } |
|
304 |
|
305 virtual bool is_complex_matrix (void) const |
|
306 { return rep->is_complex_matrix (); } |
|
307 |
|
308 virtual bool is_char_matrix (void) const |
|
309 { return rep->is_char_matrix (); } |
|
310 |
|
311 virtual bool is_string (void) const |
|
312 { return rep->is_string (); } |
|
313 |
|
314 virtual bool is_range (void) const |
|
315 { return rep->is_range (); } |
|
316 |
|
317 virtual bool is_map (void) const |
|
318 { return rep->is_map (); } |
|
319 |
2880
|
320 virtual bool is_list (void) const |
|
321 { return rep->is_list (); } |
|
322 |
2376
|
323 virtual bool is_magic_colon (void) const |
|
324 { return rep->is_magic_colon (); } |
|
325 |
|
326 virtual bool is_all_va_args (void) const |
|
327 { return rep->is_all_va_args (); } |
|
328 |
|
329 // Are any or all of the elements in this constant nonzero? |
|
330 |
|
331 virtual octave_value all (void) const |
|
332 { return rep->all (); } |
|
333 |
|
334 virtual octave_value any (void) const |
|
335 { return rep->any (); } |
|
336 |
|
337 // Other type stuff. |
|
338 |
|
339 virtual bool is_real_type (void) const |
|
340 { return rep->is_real_type (); } |
|
341 |
|
342 virtual bool is_complex_type (void) const |
|
343 { return rep->is_complex_type (); } |
|
344 |
|
345 virtual bool is_scalar_type (void) const |
|
346 { return rep->is_scalar_type (); } |
|
347 |
|
348 virtual bool is_matrix_type (void) const |
|
349 { return rep->is_matrix_type (); } |
|
350 |
|
351 virtual bool is_numeric_type (void) const |
|
352 { return rep->is_numeric_type (); } |
|
353 |
|
354 virtual bool valid_as_scalar_index (void) const |
|
355 { return rep->valid_as_scalar_index (); } |
|
356 |
|
357 virtual bool valid_as_zero_index (void) const |
|
358 { return rep->valid_as_zero_index (); } |
|
359 |
|
360 // Does this constant correspond to a truth value? |
|
361 |
|
362 virtual bool is_true (void) const |
|
363 { return rep->is_true (); } |
|
364 |
|
365 // Is at least one of the dimensions of this constant zero? |
|
366 |
|
367 virtual bool is_empty (void) const |
|
368 { return rep->is_empty (); } |
|
369 |
|
370 // Are the dimensions of this constant zero by zero? |
|
371 |
|
372 virtual bool is_zero_by_zero (void) const |
|
373 { return rep->is_zero_by_zero (); } |
|
374 |
2974
|
375 virtual bool is_constant (void) const |
|
376 { return rep->is_constant (); } |
|
377 |
|
378 virtual bool is_function (void) const |
|
379 { return rep->is_function (); } |
2891
|
380 |
2376
|
381 // Values. |
|
382 |
2891
|
383 octave_value eval (void) { return *this; } |
|
384 |
3202
|
385 virtual int int_value (bool req_int = false, bool frc_str_conv = false) const |
|
386 { return rep->int_value (req_int, frc_str_conv); } |
|
387 |
|
388 virtual int nint_value (bool frc_str_conv = false) const |
|
389 { return rep->nint_value (frc_str_conv); } |
|
390 |
2376
|
391 virtual double double_value (bool frc_str_conv = false) const |
|
392 { return rep->double_value (frc_str_conv); } |
|
393 |
2916
|
394 virtual double scalar_value (bool frc_str_conv = false) const |
|
395 { return rep->scalar_value (frc_str_conv); } |
|
396 |
2376
|
397 virtual Matrix matrix_value (bool frc_str_conv = false) const |
|
398 { return rep->matrix_value (frc_str_conv); } |
|
399 |
|
400 virtual Complex complex_value (bool frc_str_conv = false) const |
|
401 { return rep->complex_value (frc_str_conv); } |
|
402 |
|
403 virtual ComplexMatrix complex_matrix_value (bool frc_str_conv = false) const |
|
404 { return rep->complex_matrix_value (frc_str_conv); } |
|
405 |
|
406 virtual charMatrix char_matrix_value (bool frc_str_conv = false) const |
|
407 { return rep->char_matrix_value (frc_str_conv); } |
|
408 |
2493
|
409 virtual string_vector all_strings (void) const |
2376
|
410 { return rep->all_strings (); } |
|
411 |
|
412 virtual string string_value (void) const |
|
413 { return rep->string_value (); } |
|
414 |
|
415 virtual Range range_value (void) const |
|
416 { return rep->range_value (); } |
|
417 |
|
418 virtual Octave_map map_value (void) const; |
|
419 |
2903
|
420 virtual octave_stream *stream_value (void) const; |
|
421 |
|
422 virtual int stream_number (void) const; |
|
423 |
2974
|
424 virtual octave_function *function_value (bool silent = false); |
|
425 |
2880
|
426 virtual octave_value_list list_value (void) const; |
|
427 |
2825
|
428 virtual bool bool_value (void) const |
|
429 { return rep->bool_value (); } |
|
430 |
|
431 virtual boolMatrix bool_matrix_value (void) const |
|
432 { return rep->bool_matrix_value (); } |
|
433 |
2376
|
434 ColumnVector vector_value (bool frc_str_conv = false, |
|
435 bool frc_vec_conv = false) const; |
|
436 |
|
437 ComplexColumnVector |
|
438 complex_vector_value (bool frc_str_conv = false, |
|
439 bool frc_vec_conv = false) const; |
|
440 |
|
441 // Conversions. These should probably be private. If a user of this |
|
442 // class wants a certain kind of constant, he should simply ask for |
|
443 // it, and we should convert it if possible. |
|
444 |
|
445 virtual octave_value convert_to_str (void) const |
|
446 { return rep->convert_to_str (); } |
|
447 |
|
448 virtual void convert_to_row_or_column_vector (void) |
|
449 { rep->convert_to_row_or_column_vector (); } |
|
450 |
2903
|
451 virtual void print (ostream& os, bool pr_as_read_syntax = false) const |
2466
|
452 { rep->print (os, pr_as_read_syntax); } |
2376
|
453 |
2903
|
454 virtual void print_raw (ostream& os, bool pr_as_read_syntax = false) const |
|
455 { rep->print_raw (os, pr_as_read_syntax); } |
|
456 |
|
457 virtual bool print_name_tag (ostream& os, const string& name) const |
|
458 { return rep->print_name_tag (os, name); } |
2376
|
459 |
|
460 void print_with_name (ostream& os, const string& name, |
2903
|
461 bool print_padding = true) const; |
2376
|
462 |
|
463 virtual int type_id (void) const { return rep->type_id (); } |
|
464 |
|
465 virtual string type_name (void) const { return rep->type_name (); } |
|
466 |
3203
|
467 // Unary and binary operations. |
|
468 |
|
469 friend octave_value do_unary_op (octave_value::unary_op, |
|
470 const octave_value&); |
|
471 |
|
472 void do_non_const_unary_op (octave_value::unary_op); |
2376
|
473 |
2575
|
474 friend octave_value do_binary_op (octave_value::binary_op, |
|
475 const octave_value&, |
|
476 const octave_value&); |
2376
|
477 |
|
478 protected: |
|
479 |
|
480 octave_value (const octave_xvalue&) : rep (0) { } |
|
481 |
2903
|
482 void reset_indent_level (void) const |
|
483 { curr_print_indent_level = 0; } |
|
484 |
|
485 void increment_indent_level (void) const |
|
486 { curr_print_indent_level += 2; } |
|
487 |
|
488 void decrement_indent_level (void) const |
|
489 { curr_print_indent_level -= 2; } |
|
490 |
|
491 int current_print_indent_level (void) const |
|
492 { return curr_print_indent_level; } |
|
493 |
|
494 void newline (ostream& os) const; |
|
495 |
|
496 void indent (ostream& os) const; |
|
497 |
|
498 void reset (void) const; |
|
499 |
2376
|
500 private: |
|
501 |
2477
|
502 static octave_allocator allocator; |
|
503 |
2376
|
504 union |
|
505 { |
|
506 octave_value *rep; // The real representation. |
|
507 int count; // A reference count. |
|
508 }; |
2413
|
509 |
2880
|
510 bool convert_and_assign (assign_op, const octave_value_list& idx, |
2413
|
511 const octave_value& rhs); |
|
512 |
2880
|
513 bool try_assignment_with_conversion (assign_op, |
|
514 const octave_value_list& idx, |
2413
|
515 const octave_value& rhs); |
|
516 |
2880
|
517 bool try_assignment (assign_op, const octave_value_list& idx, |
2413
|
518 const octave_value& rhs); |
2903
|
519 |
|
520 static int curr_print_indent_level; |
|
521 static bool beginning_of_line; |
3204
|
522 |
|
523 binary_op op_eq_to_binary_op (assign_op op); |
|
524 |
|
525 void simple_assign (assign_op orig_op, const octave_value_list& idx, |
|
526 const octave_value& rhs); |
2376
|
527 }; |
|
528 |
3203
|
529 #define OV_UNOP_FN(name) \ |
|
530 inline octave_value \ |
|
531 name (const octave_value& a) \ |
|
532 { \ |
|
533 return do_unary_op (octave_value::name, a); \ |
|
534 } |
|
535 |
|
536 #define OV_UNOP_OP(name, op) \ |
|
537 inline octave_value \ |
|
538 operator op (const octave_value& a) \ |
|
539 { \ |
|
540 return name (a); \ |
|
541 } |
|
542 |
|
543 #define OV_UNOP_FN_OP(name, op) \ |
|
544 OV_UNOP_FN (name) \ |
|
545 OV_UNOP_OP (name, op) |
|
546 |
|
547 OV_UNOP_FN_OP (not, !) |
|
548 OV_UNOP_FN_OP (uminus, -) |
|
549 |
|
550 OV_UNOP_FN (transpose) |
|
551 OV_UNOP_FN (hermitian) |
|
552 |
|
553 // No simple way to define these for prefix and suffix ops? |
|
554 // |
|
555 // incr |
|
556 // decr |
|
557 |
|
558 #define OV_BINOP_FN(name) \ |
|
559 inline octave_value \ |
|
560 name (const octave_value& a1, const octave_value& a2) \ |
|
561 { \ |
|
562 return do_binary_op (octave_value::name, a1, a2); \ |
|
563 } |
|
564 |
|
565 #define OV_BINOP_OP(name, op) \ |
|
566 inline octave_value \ |
|
567 operator op (const octave_value& a1, const octave_value& a2) \ |
|
568 { \ |
|
569 return name (a1, a2); \ |
|
570 } |
|
571 |
|
572 #define OV_BINOP_FN_OP(name, op) \ |
|
573 OV_BINOP_FN (name) \ |
|
574 OV_BINOP_OP (name, op) |
|
575 |
|
576 OV_BINOP_FN_OP (add, +) |
|
577 OV_BINOP_FN_OP (sub, -) |
|
578 OV_BINOP_FN_OP (mul, *) |
|
579 OV_BINOP_FN_OP (div, /) |
|
580 |
|
581 OV_BINOP_FN (pow) |
|
582 OV_BINOP_FN (ldiv) |
|
583 OV_BINOP_FN (lshift) |
|
584 OV_BINOP_FN (rshift) |
|
585 |
|
586 OV_BINOP_FN_OP (lt, <) |
|
587 OV_BINOP_FN_OP (le, <=) |
|
588 OV_BINOP_FN_OP (eq, ==) |
|
589 OV_BINOP_FN_OP (ge, >=) |
|
590 OV_BINOP_FN_OP (gt, >) |
|
591 OV_BINOP_FN_OP (ne, !=) |
|
592 |
|
593 OV_BINOP_FN (el_mul) |
|
594 OV_BINOP_FN (el_div) |
|
595 OV_BINOP_FN (el_pow) |
|
596 OV_BINOP_FN (el_ldiv) |
|
597 OV_BINOP_FN (el_and) |
|
598 OV_BINOP_FN (el_or) |
|
599 |
|
600 OV_BINOP_FN (struct_ref) |
|
601 |
2376
|
602 // If TRUE, allow assignments like |
|
603 // |
|
604 // octave> A(1) = 3; A(2) = 5 |
|
605 // |
|
606 // for A already defined and a matrix type. |
|
607 extern bool Vdo_fortran_indexing; |
|
608 |
|
609 // Should we allow things like: |
|
610 // |
|
611 // octave> 'abc' + 0 |
|
612 // 97 98 99 |
|
613 // |
|
614 // to happen? A positive value means yes. A negative value means |
|
615 // yes, but print a warning message. Zero means it should be |
|
616 // considered an error. |
|
617 extern int Vimplicit_str_to_num_ok; |
|
618 |
|
619 // Should we allow silent conversion of complex to real when a real |
|
620 // type is what we're really looking for? A positive value means yes. |
|
621 // A negative value means yes, but print a warning message. Zero |
|
622 // means it should be considered an error. |
|
623 extern int Vok_to_lose_imaginary_part; |
|
624 |
|
625 // If TRUE, create column vectors when doing assignments like: |
|
626 // |
|
627 // octave> A(1) = 3; A(2) = 5 |
|
628 // |
|
629 // (for A undefined). Only matters when resize_on_range_error is also |
|
630 // TRUE. |
|
631 extern bool Vprefer_column_vectors; |
|
632 |
|
633 // If TRUE, print the name along with the value. |
|
634 extern bool Vprint_answer_id_name; |
|
635 |
|
636 // Should operations on empty matrices return empty matrices or an |
|
637 // error? A positive value means yes. A negative value means yes, |
|
638 // but print a warning message. Zero means it should be considered an |
|
639 // error. |
|
640 extern int Vpropagate_empty_matrices; |
|
641 |
|
642 // How many levels of structure elements should we print? |
|
643 extern int Vstruct_levels_to_print; |
|
644 |
|
645 // Allow divide by zero errors to be suppressed. |
|
646 extern bool Vwarn_divide_by_zero; |
|
647 |
3195
|
648 // If TRUE, resize matrices when performing and indexed assignment and |
|
649 // the indices are outside the current bounds. |
|
650 extern bool Vresize_on_range_error; |
|
651 |
2376
|
652 // Indentation level for structures. |
|
653 extern int struct_indent; |
|
654 |
|
655 extern void increment_struct_indent (void); |
|
656 extern void decrement_struct_indent (void); |
|
657 |
2880
|
658 // Indentation level for lists. |
|
659 extern int list_indent; |
|
660 |
|
661 extern void increment_list_indent (void); |
|
662 extern void decrement_list_indent (void); |
|
663 |
2376
|
664 extern void install_types (void); |
|
665 |
|
666 #endif |
|
667 |
|
668 /* |
|
669 ;; Local Variables: *** |
|
670 ;; mode: C++ *** |
|
671 ;; End: *** |
|
672 */ |