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