comparison src/ChangeLog @ 3933:f9ea3dcf58ee

[project @ 2002-05-15 03:21:00 by jwe]
author jwe
date Wed, 15 May 2002 03:21:01 +0000
parents 2e2e32198722
children 31393822395b
comparison
equal deleted inserted replaced
3932:2e2e32198722 3933:f9ea3dcf58ee
1 2002-05-14 John W. Eaton <jwe@bevo.che.wisc.edu>
2
3 * ov.h (octave_value::get_count): Now const.
4
5 * ov.h, ov.cc (octave_value::do_non_const_unary_op,
6 octave_value::assign): Idx is now a list of octave_value_list
7 objects.
8
9 * ov-base.cc, ov-base.h (octave_base_value::do_struct_elt_index_op,
10 octave_base_value::struct_elt_ref): Delete.
11 * ov-struct.cc, ov-struct.h (octave_sruct::do_struct_elt_index_op,
12 octave_struct::struct_elt_ref): Delete.
13 * ov.cc, ov.h (octave_value::do_struct_elt_index_op,
14 octave_value::struct_elt_ref, octave_value::assign_struct_elt,
15 octave_value::convert_and_assign, octave_value::try_assignment,
16 octave_value::try_assignment_with_conversion,
17 octave_value::simple_assign): Delete.
18
19 * parse.y (make_index_expression): Type is now a single
20 character. Change all callers. If expr is already an index
21 expression, append index to it.
22 (make_indirect_ref): Likewise.
23
24 * pt-pr-code.cc (octave_print_internal (std::ostream&, const
25 Cell&, bool, int)): Now just a dummy function, panic if called.
26
27 * pt-idx.cc (tree_index_expression::make_arg_struct): New function.
28 (tree_index_expression::type): Delete enum, rename from itype, now
29 a string.
30 (tree_index_expression::arg_nm): Now a list of string_vector objects.
31 (tree_index_expression::idx): Now a list of tree_argument_list*
32 objects.
33 (tree_index_expression::is_index_expression): Always return true.
34 (tree_index_expression::apend, make_value_list, make_subs_cell):
35 New functions.
36
37 * pt-pr-code.cc (visit_index_expression): Handle new definition of
38 tree_index_expression object.
39 * pt-check.cc (visit_index_expression): Likewise.
40 * pt-bp.cc (visit_index_expression): Likewise.
41
42 * ov-usr-fcn.h (octave_user_function::restore_args_passed):
43 Clear args_passed even if nothing was saved.
44
45 * ov-base.cc (octave_base_value::subsasgn,
46 octave_base_value::map_keys, octave_base_value::print_info):
47 New functions.
48
49 * ov.h, ov.cc (octave_value::map_keys, octave_value::print_info,
50 octave_value::subsref, octave_value::subsasgn,
51 octave_value::numeric_assign, octave_value::next_subsref):
52 New functions.
53 (octave_value::empty_conv): New static function.
54 (octave_value (octave_value *, int)): New arg, count.
55
56 * ov-base-mat.cc (octave_base_matrix<MT>::subsref,
57 octave_base_matrix<MT>::subsasgn): New functions.
58 * ov-base-mat.h: Provide decls.
59
60 * ov-builtin.cc (octave_builtin::subsref): New function.
61 * ov-builtin.h: Provide decl.
62
63 * ov-range.cc (octave_range::subsref): New function.
64 * ov-range.h: Provide decl.
65
66 * ov-cell.cc (octave_cell::subsref, octave_cell::subsasgn,
67 octave_cell::list_value, octave_cell::print,
68 octave_cell::print_raw, octave_cell::print_name_tag): New functions.
69 * ov-cell.h: Provide decls.
70
71 * ov-struct.cc (octave_struct::dotref, octave_struct::subsref,
72 octave_struct::subsasgn, gripe_invalid_index,
73 gripe_invalid_index_for_assignment, grip_invalid_index_type,
74 gripe_failed_assignment): New functions.
75 (octave_struct::numeric_conv): New static function.
76 * ov-struct.h: Provide decls.
77 (octave_struct::is_constant): Return true.
78 (octave_struct::map_keys): New function.
79
80 * ov-list.cc (octave_list::subsref, octave_list::subsasgn):
81 New functions.
82 * ov-list.h: Provide decls.
83
84 * ov-usr-fcn.cc (octave_user_function::subsref,
85 octave_user_function::print_symtab_info): New functions.
86 * ov-usr-fcn.h: Provide decl.
87
88 * ov-mapper.cc (octave_mapper::subsref): New function.
89 * ov-mapper.h: Provide decl.
90
91 * ov-base.cc (octave_base_value::subsref,
92 octave_base_value::subsasgn): New functions.
93 * ov-base.h: Provide decls.
94
95 * ov-base.cc (octave_base_value::do_index_op): New arg, resize_ok.
96 * ov-base-mat.cc (octave_base_matrix<MT>::do_index_op): Likewise.
97 * ov-base-nd-array.cc (octave_base_nd_array<AT>::do_index_op): Ditto.
98 * ov-bool-mat.cc (octave_bool::do_index_op): Ditto.
99 * ov-str-mat.cc (octave_char_matrix_str::do_index_op): Ditto.
100 * ov-range.cc (octave_range::do_index_op): Ditto.
101 * ov-list.cc (octave_list::do_index_op): Ditto.
102 * ov.cc (octave_value::do_index_op): Ditto.
103
104 * ov-base-mat.cc (octave_base_matrix<MT>::print_info): New function.
105
106 * ov-base-mat.h (octave_base_matrix<MT>::empty_clone): New function.
107 * ov-base-nd-array.h (octave_base_nd_array<AT>::empty_clone): Ditto.
108 * ov-base.h (octave_base_value::empty_clone): Ditto.
109 * ov-bool-mat.h (octave_bool::empty_clone): Ditto.
110 * ov-ch-mat.h (octave_char_matrix::empty_clone): Likewise.
111 * ov-colon.h (octave_magic_colon::empty_clone): Likewise.
112 * ov-complex.h (octave_complex::empty_clone): Likewise.
113 * ov-cx-mat.h (octave_complex_matrix::empty_clone): Likewise.
114 * ov-fcn.cc (octave_function::empty_clone): Likewise.
115 * ov-file.h (octave_file::empty_clone): Likewise.
116 * ov-range.h (octave_range::empty_clone): Likewise.
117 * ov-list.h (octave_list::empty_clone): Likewise.
118 * ov-re-mat.h (octave_matrix::empty_clone): Likewise.
119 * ov-re-nd-array.h (octave_double_nd_array::empty_clone): Likewise.
120 * ov-str-mat.h (octave_char_matrix_str::empty_clone): Likewise.
121 * ov-struct.h (octave_struct::empty_clone): Likewise.
122 * ov-va_args.h (octave_all_va_args::empty_clone): Likewise.
123 * ov.h (octave_value::empty_clone): Likewise.
124
125 * ov-base-mat.h (octave_base_matrix<MT>::clone): Now const.
126 * ov-base-nd-array.h (octave_base_nd_array<AT>::clone): Likewise.
127 * ov-base.h (octave_base_value::clone): Likewise.
128 * ov-bool-mat.h (octave_bool::clone): Likewise.
129 * ov-ch-mat.h (octave_char_matrix::clone): Likewise.
130 * ov-colon.h (octave_magic_colon::clone): Likewise.
131 * ov-complex.h (octave_complex::clone): Likewise.
132 * ov-cx-mat.h (octave_complex_matrix::clone): Likewise.
133 * ov-fcn.h (octave_function::clone): Likewise.
134 * ov-file.h (octave_file::clone): Likewise.
135 * ov-range.h (octave_range::clone): Likewise.
136 * ov-list.h (octave_list::clone): Likewise.
137 * ov-re-mat.h (octave_matrix::clone): Likewise.
138 * ov-re-nd-array.h (octave_double_nd_array::clone): Likewise.
139 * ov-str-mat.h (octave_char_matrix_str::clone): Likewise.
140 * ov-struct.h (octave_struct::clone): Likewise.
141 * ov-va_args.h (octave_all_va_args::clone): Likewise.
142 * ov.h (octave_value::clone): Likewise.
143
144 * oct-lvalue.cc (octave_lvalue::assign, octave_lvalue::set_index,
145 octave_lvalue::do_unary_op): Idx is now a list of indices. Simplify.
146 * oct-lvalue.h (octave_lvalue::value): Simplify.
147 (octave_lvalue::struct_elt_names): Delete data member.
148 (octave_lvalue::type): Now string
149 Update decls.
150
151 * pt-exp.h (tree_expression::is_indirect_ref):
152 Delete virtual function.
153
154 * pt-plot.cc (subplot::extract_plot_data): Use subsref, instead of
155 do_index_op.
156
157 * pt-stmt.cc (tree_statement::eval): Don't try to avoid binding
158 ans for structure references.
159
160 * symtab.cc (symbol_record::symbol_def::print_info): Rename from
161 symbol_record::symbol_def::dump_symbol_info.
162 (symbol_record::print_info): Rename from
163 symbol_record::dump_symbol_info. Now const..
164 (symbol_record::print_symbol_info_line): Now const.
165 (symbol_table::print_info): Rename from print_stats. Accept
166 ostream arg. Now const. Print more info.
167 * symtab.h: Update decls.
168
169 * toplev.cc (octave_config_info): Indexing a map now returns a
170 list, but we only want to return the first element.
171
172 * variables.cc (generate_struct_completions, looks_like_struct):
173 Simplify using eval_string.
174 (F__print_symtab_info__): Rename from F__dump_symtab_info__.
175 Handle "top-level" and individual function names in addition to
176 "global".
177 (F__print_symbol_info__): Rename from F___dump_symbol_info__.
178
179 * octave.cc (intern_argv): Built-in variable argv is now a cell array.
180
181 * ov-complex.cc (valid_scalar_indices): Delete.
182 * ov-scalar.cc (valid_scalar_indices): Delete.
183
184 * oct-obj.cc (octave_value_list::valid_scalar_indices): New function.
185 (octave_value_list::index): New arg, resize_ok.
186 * oct-obj.h: Provide decls.
187
188 * oct-map.cc (Octave_map::keys): Rename from make_name_list.
189 Change all uses.
190 (Octave_map::assign, Octave_map::index): New functions.
191 * oct-map.h: Provide decls.
192
193 * data.cc (Fstruct_contains): Use map_value instead of
194 do_struct_elt_index_op.
195
196 * Cell.h (Cell (const Array2<octave_value>&, int, int)):
197 New constructor.
198 (Cell::resize_fill_value): New static function.
199
200 * input.cc (initialize_command_input): Set basic and completer
201 word break characters.
202
1 2002-05-07 John W. Eaton <jwe@bevo.che.wisc.edu> 203 2002-05-07 John W. Eaton <jwe@bevo.che.wisc.edu>
204
205 * ov.h (octave_value::subsref): New function.
206 * ov-base.cc (octave_base_value::subsref): Likewise.
2 207
3 * ov-struct.cc (octave_struct::print_raw): Print scalar struct 208 * ov-struct.cc (octave_struct::print_raw): Print scalar struct
4 arrays more compactly. 209 arrays more compactly.
5 210
6 * DLD-FUNCTIONS/time.cc (extract_tm): Handle new struct array def. 211 * DLD-FUNCTIONS/time.cc (extract_tm): Handle new struct array def.
10 octave_value_list, not Octave_value. Change callers as necessary. 215 octave_value_list, not Octave_value. Change callers as necessary.
11 (Octave_map::assign): New function. 216 (Octave_map::assign): New function.
12 (Octave_map::array_length): New fucntion. 217 (Octave_map::array_length): New fucntion.
13 * oct-obj.cc (octave_value_list::assign): New function. 218 * oct-obj.cc (octave_value_list::assign): New function.
14 219
15
16 2002-05-06 John W. Eaton <jwe@bevo.che.wisc.edu> 220 2002-05-06 John W. Eaton <jwe@bevo.che.wisc.edu>
17 221
18 * TEMPLATE-INST/Map-oct-obj.cc: New file. 222 * TEMPLATE-INST/Map-oct-obj.cc: New file.
19 * Makefile.in (TI_XSRC): Add it to the list. 223 * Makefile.in (TI_XSRC): Add it to the list.
20 224