changeset 18111:b560bac0fca2

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.
author Rik <rik@octave.org>
date Thu, 05 Dec 2013 16:11:14 -0800
parents 2217bc116aa9
children e3511cec60a0
files 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
diffstat 17 files changed, 29 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- 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)
         {
--- 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)
     {
--- 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 ();
 
--- 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 ()
--- 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<int> dimv;
       if (nargin > 1)
-        dimv = args (1).int_vector_value (true);
+        dimv = args(1).int_vector_value (true);
 
       if (error_state)
         ;
--- 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)
                 {
--- 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)
--- 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);
 }
--- 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;
--- 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)
         {
--- 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 ();
 
--- 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");
--- 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");
 
--- 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 ())
--- 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
--- 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)
         {
--- 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)