# HG changeset patch # User Rik # Date 1386288674 28800 # Node ID b560bac0fca29b7af17d6caa52f9de3e9c1264f9 # Parent 2217bc116aa96530e0ad145af57a6d3ee9ce2fc9 maint: Don't use space between 'args' and '(' when doing indexing. * libinterp/corefcn/__contourc__.cc, libinterp/corefcn/__pchip_deriv__.cc, libinterp/corefcn/besselj.cc, libinterp/corefcn/bsxfun.cc, libinterp/corefcn/cellfun.cc, libinterp/corefcn/data.cc, libinterp/corefcn/dlmread.cc, libinterp/corefcn/file-io.cc, libinterp/corefcn/graphics.cc, libinterp/corefcn/help.cc, libinterp/corefcn/lu.cc, libinterp/corefcn/matrix_type.cc, libinterp/corefcn/pr-output.cc, libinterp/corefcn/sparse.cc, libinterp/corefcn/strfns.cc, libinterp/corefcn/syscalls.cc, libinterp/corefcn/tril.cc: maint: Don't use space between 'args' and '(' when indexing. diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/__contourc__.cc --- a/libinterp/corefcn/__contourc__.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/__contourc__.cc Thu Dec 05 16:11:14 2013 -0800 @@ -307,10 +307,10 @@ if (args.length () == 4) { - RowVector X = args (0).row_vector_value (); - RowVector Y = args (1).row_vector_value (); - Matrix Z = args (2).matrix_value (); - RowVector L = args (3).row_vector_value (); + RowVector X = args(0).row_vector_value (); + RowVector Y = args(1).row_vector_value (); + Matrix Z = args(2).matrix_value (); + RowVector L = args(3).row_vector_value (); if (! error_state) { diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/__pchip_deriv__.cc --- a/libinterp/corefcn/__pchip_deriv__.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/__pchip_deriv__.cc Thu Dec 05 16:11:14 2013 -0800 @@ -59,7 +59,7 @@ octave_value retval; const int nargin = args.length (); - bool rows = (nargin == 3 && args (2).uint_value () == 2); + bool rows = (nargin == 3 && args(2).uint_value () == 2); if (nargin >= 2) { diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/besselj.cc --- a/libinterp/corefcn/besselj.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/besselj.cc Thu Dec 05 16:11:14 2013 -0800 @@ -598,7 +598,7 @@ { int idx = nargin == 1 ? 0 : 1; - if (args (idx).is_single_type ()) + if (args(idx).is_single_type ()) { FloatComplexNDArray z = args(idx).float_complex_array_value (); diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/bsxfun.cc --- a/libinterp/corefcn/bsxfun.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/bsxfun.cc Thu Dec 05 16:11:14 2013 -0800 @@ -352,8 +352,8 @@ || args(0).is_inline_function ())) error ("bsxfun: F must be a string or function handle"); - const octave_value A = args (1); - const octave_value B = args (2); + const octave_value A = args(1); + const octave_value B = args(2); if (func.is_builtin_function () || (func.is_function_handle () diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/cellfun.cc --- a/libinterp/corefcn/cellfun.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/cellfun.cc Thu Dec 05 16:11:14 2013 -0800 @@ -1902,7 +1902,7 @@ octave_value array = args(0); Array dimv; if (nargin > 1) - dimv = args (1).int_vector_value (true); + dimv = args(1).int_vector_value (true); if (error_state) ; diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/data.cc --- a/libinterp/corefcn/data.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/data.cc Thu Dec 05 16:11:14 2013 -0800 @@ -1837,7 +1837,7 @@ // and then directly resize. However, for some types there might // be some additional setup needed, and so this should be avoided. - octave_value tmp = args (0); + octave_value tmp = args(0); tmp = tmp.resize (dim_vector (0,0)).resize (dv); if (error_state) @@ -1851,12 +1851,12 @@ // Can't fast return here to skip empty matrices as something // like cat (1,[],single ([])) must return an empty matrix of // the right type. - tmp = do_cat_op (tmp, args (j), ra_idx); + tmp = do_cat_op (tmp, args(j), ra_idx); if (error_state) return retval; - dim_vector dv_tmp = args (j).dims (); + dim_vector dv_tmp = args(j).dims (); if (dim >= dv_len) { diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/dlmread.cc --- a/libinterp/corefcn/dlmread.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/dlmread.cc Thu Dec 05 16:11:14 2013 -0800 @@ -272,7 +272,7 @@ { if (nargin == 3) { - if (!parse_range_spec (args (2), r0, c0, r1, c1)) + if (!parse_range_spec (args(2), r0, c0, r1, c1)) error ("dlmread: error parsing RANGE"); } else if (nargin == 4) diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/file-io.cc --- a/libinterp/corefcn/file-io.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/file-io.cc Thu Dec 05 16:11:14 2013 -0800 @@ -271,7 +271,7 @@ if (nargin == 1) { - int fid = octave_stream_list::get_file_number (args (0)); + int fid = octave_stream_list::get_file_number (args(0)); octave_stream os = octave_stream_list::lookup (fid, "fclear"); @@ -305,7 +305,7 @@ { // FIXME: any way to avoid special case for stdout? - int fid = octave_stream_list::get_file_number (args (0)); + int fid = octave_stream_list::get_file_number (args(0)); if (fid == 1) { @@ -1338,7 +1338,7 @@ tmp_args (0) = 0.0; for (int i = 0; i < nargin; i++) - tmp_args (i+1) = args (i); + tmp_args(i+1) = args(i); return Ffscanf (tmp_args, nargout); } diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/graphics.cc --- a/libinterp/corefcn/graphics.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/graphics.cc Thu Dec 05 16:11:14 2013 -0800 @@ -9394,7 +9394,7 @@ { graphics_handle h = octave_NaN; - const NDArray vals = args (0).array_value (); + const NDArray vals = args(0).array_value (); if (! error_state) { @@ -10191,7 +10191,7 @@ static bool compare_property_values (const octave_value& o1, const octave_value& o2) { - octave_value_list args (2); + octave_value_list args(2); args(0) = o1; args(1) = o2; diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/help.cc --- a/libinterp/corefcn/help.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/help.cc Thu Dec 05 16:11:14 2013 -0800 @@ -1075,7 +1075,7 @@ if (args.length () == 1) { - const std::string name = args (0).string_value (); + const std::string name = args(0).string_value (); if (! error_state) { @@ -1364,7 +1364,7 @@ retval = Cell (ffl.append (afl)); else { - std::string dir = args (0).string_value (); + std::string dir = args(0).string_value (); if (! error_state) { diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/lu.cc --- a/libinterp/corefcn/lu.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/lu.cc Thu Dec 05 16:11:14 2013 -0800 @@ -158,7 +158,7 @@ int n = 1; while (n < nargin && ! error_state) { - if (args (n).is_string ()) + if (args(n).is_string ()) { std::string tmp = args(n++).string_value (); diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/matrix_type.cc --- a/libinterp/corefcn/matrix_type.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/matrix_type.cc Thu Dec 05 16:11:14 2013 -0800 @@ -281,7 +281,7 @@ && (str_typ == "upper" || str_typ == "lower")) { const ColumnVector perm = - ColumnVector (args (2).vector_value ()); + ColumnVector (args(2).vector_value ()); if (error_state) error ("matrix_type: Invalid permutation vector PERM"); @@ -454,7 +454,7 @@ || str_typ == "lower")) { const ColumnVector perm = - ColumnVector (args (2).vector_value ()); + ColumnVector (args(2).vector_value ()); if (error_state) error ("matrix_type: Invalid permutation vector PERM"); diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/pr-output.cc --- a/libinterp/corefcn/pr-output.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/pr-output.cc Thu Dec 05 16:11:14 2013 -0800 @@ -3542,7 +3542,7 @@ if (nargin == 2) { - int fid = octave_stream_list::get_file_number (args (0)); + int fid = octave_stream_list::get_file_number (args(0)); octave_stream os = octave_stream_list::lookup (fid, "fdisp"); diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/sparse.cc --- a/libinterp/corefcn/sparse.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/sparse.cc Thu Dec 05 16:11:14 2013 -0800 @@ -113,7 +113,7 @@ if (nargin == 1) { - octave_value arg = args (0); + octave_value arg = args(0); if (arg.is_bool_type ()) retval = arg.sparse_bool_matrix_value (); else if (arg.is_complex_type ()) diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/strfns.cc --- a/libinterp/corefcn/strfns.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/strfns.cc Thu Dec 05 16:11:14 2013 -0800 @@ -585,7 +585,7 @@ if (args.length () == 2) { - retval = do_strcmp_fun (args (0), args (1), 0, + retval = do_strcmp_fun (args(0), args(1), 0, "strcmp", strcmp_array_op, strcmp_str_op); } else @@ -783,7 +783,7 @@ if (args.length () == 2) { - retval = do_strcmp_fun (args (0), args (1), 0, + retval = do_strcmp_fun (args(0), args(1), 0, "strcmpi", strcmpi_array_op, strcmpi_str_op); } else diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/syscalls.cc --- a/libinterp/corefcn/syscalls.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/syscalls.cc Thu Dec 05 16:11:14 2013 -0800 @@ -511,7 +511,7 @@ if (nargin == 3) { - octave_stream strm = octave_stream_list::lookup (args (0), "fcntl"); + octave_stream strm = octave_stream_list::lookup (args(0), "fcntl"); if (! error_state) { diff -r 2217bc116aa9 -r b560bac0fca2 libinterp/corefcn/tril.cc --- a/libinterp/corefcn/tril.cc Thu Dec 05 15:00:45 2013 -0500 +++ b/libinterp/corefcn/tril.cc Thu Dec 05 16:11:14 2013 -0800 @@ -213,7 +213,7 @@ print_usage (); else { - octave_value arg = args (0); + octave_value arg = args(0); dim_vector dims = arg.dims (); if (dims.length () != 2)