Mercurial > hg > octave-nkf
diff src/ov.cc @ 3977:95663a3a2682
[project @ 2002-07-05 17:43:37 by jwe]
author | jwe |
---|---|
date | Fri, 05 Jul 2002 17:43:38 +0000 |
parents | 635209a37bf4 |
children | fc000ebb19df |
line wrap: on
line diff
--- a/src/ov.cc +++ b/src/ov.cc @@ -47,6 +47,7 @@ #include "ov-struct.h" #include "ov-file.h" #include "ov-list.h" +#include "ov-cs-list.h" #include "ov-colon.h" #include "ov-va-args.h" #include "ov-builtin.h" @@ -489,9 +490,14 @@ rep->count = 1; } -octave_value::octave_value (const octave_value_list& l) - : rep (new octave_list (l)) +octave_value::octave_value (const octave_value_list& l, bool is_cs_list) + : rep (0) { + if (is_cs_list) + rep = new octave_cs_list (l); + else + new octave_list (l); + rep->count = 1; } @@ -1530,6 +1536,7 @@ octave_struct::register_type (); octave_file::register_type (); octave_list::register_type (); + octave_cs_list::register_type (); octave_all_va_args::register_type (); octave_magic_colon::register_type (); octave_builtin::register_type ();