Mercurial > hg > octave-nkf
comparison src/oct-obj.cc @ 11809:63380109b520 release-3-0-x
fix default_save_options parsing and allow mixing options with other arguments.
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 19 Aug 2008 13:50:15 -0400 |
parents | a1dbe9d80eee |
children | 283989f2da9b |
comparison
equal
deleted
inserted
replaced
11808:2994f58f204e | 11809:63380109b520 |
---|---|
204 octave_idx_type n = elem(i).rows (); | 204 octave_idx_type n = elem(i).rows (); |
205 | 205 |
206 total_nr += n ? n : 1; | 206 total_nr += n ? n : 1; |
207 } | 207 } |
208 | 208 |
209 argv.resize (total_nr+1); | 209 octave_idx_type k = 0; |
210 | 210 if (! fcn_name.empty ()) |
211 argv[0] = fcn_name; | 211 { |
212 | 212 argv.resize (total_nr+1); |
213 octave_idx_type k = 1; | 213 argv[0] = fcn_name; |
214 k = 1; | |
215 } | |
216 else | |
217 argv.resize (total_nr); | |
218 | |
214 for (octave_idx_type i = 0; i < len; i++) | 219 for (octave_idx_type i = 0; i < len; i++) |
215 { | 220 { |
216 octave_idx_type nr = elem(i).rows (); | 221 octave_idx_type nr = elem(i).rows (); |
217 | 222 |
218 if (nr < 2) | 223 if (nr < 2) |