changeset 21861:a55f1fa2c94a

oct-parse.in.yy: Shorten lines to < 80 characters where possible. * oct-parse.in.yy: Shorten lines to < 80 characters where possible.
author Rik <rik@octave.org>
date Sat, 11 Jun 2016 13:13:03 -0700
parents f2b5499e8662
children 5c67b16acc4a
files libinterp/parse-tree/oct-parse.in.yy
diffstat 1 files changed, 18 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.in.yy	Fri Jun 10 21:44:51 2016 -0700
+++ b/libinterp/parse-tree/oct-parse.in.yy	Sat Jun 11 13:13:03 2016 -0700
@@ -3066,7 +3066,8 @@
               delete lhs;
               delete rhs;
 
-              bison_error ("invalid assignment to keyword \"" + kw + "\"", l, c);
+              bison_error ("invalid assignment to keyword \"" + kw + "\"",
+                           l, c);
 
               return 0;
             }
@@ -3638,7 +3639,8 @@
 
       if (expr->is_index_expression ())
         {
-          tree_index_expression *tmp = static_cast<tree_index_expression *> (expr);
+          tree_index_expression *tmp =
+            static_cast<tree_index_expression *> (expr);
 
           tmp->append (args, type);
 
@@ -3986,7 +3988,8 @@
 
   std::ostringstream output_buf;
 
-  if (lexer.reading_fcn_file || lexer.reading_script_file || lexer.reading_classdef_file)
+  if (lexer.reading_fcn_file || lexer.reading_script_file
+      || lexer.reading_classdef_file)
     output_buf << "parse error near line " << err_line
                << " of file " << lexer.fcn_file_full_name;
   else
@@ -4697,7 +4700,7 @@
   std::string arg;
 
   if (nargin == 1)
-    arg = args(0).xstring_value ("mfilename: expecting argument to be a character string");
+    arg = args(0).xstring_value ("mfilename: argument must be a string");
 
   std::string fname;
 
@@ -4755,12 +4758,12 @@
   if (nargin < 1 || nargin > 2)
     print_usage ();
 
-  std::string file_name = args(0).xstring_value ("source: expecting filename as argument");
+  std::string file_name = args(0).xstring_value ("source: FILE must be a string");
 
   std::string context;
 
   if (nargin == 2)
-    context = args(1).xstring_value ("source: expecting context to be character string");
+    context = args(1).xstring_value ("source: CONTEXT must be a string");
 
   source_file (file_name, context);
 
@@ -4846,7 +4849,7 @@
           retval = f_arg.do_multi_index_op (nargout, tmp_args);
         }
       else
-        error ("feval: first argument must be a string, inline function or a function handle");
+        error ("feval: first argument must be a string, inline function, or a function handle");
     }
 
   return retval;
@@ -5075,8 +5078,9 @@
 Programming Note: if you are only using @code{eval} as an error-capturing\n\
 mechanism, rather than for the execution of arbitrary code strings,\n\
 Consider using try/catch blocks or unwind_protect/unwind_protect_cleanup\n\
-blocks instead.  These techniques have higher performance and don't introduce\n\
-the security considerations that the evaluation of arbitrary code does.\n\
+blocks instead.  These techniques have higher performance and don't\n\
+introduce the security considerations that the evaluation of arbitrary code\n\
+does.\n\
 @seealso{evalin, evalc, assignin, feval}\n\
 @end deftypefn")
 {
@@ -5323,9 +5327,9 @@
 the string @var{s}.\n\
 \n\
 The @code{diary} is disabled during the execution of this function.  When\n\
-@code{system} is used, any output produced by external programs is @emph{not}\n\
-captured, unless their output is captured by the @code{system} function\n\
-itself.\n\
+@code{system} is used, any output produced by external programs is\n\
+@emph{not} captured, unless their output is captured by the @code{system}\n\
+function itself.\n\
 \n\
 @example\n\
 @group\n\
@@ -5453,8 +5457,8 @@
   "-*- texinfo -*-\n\
 @deftypefn  {} {@var{val} =} __parser_debug_flag__ ()\n\
 @deftypefnx {} {@var{old_val} =} __parser_debug_flag__ (@var{new_val})\n\
-Query or set the internal flag that determines whether Octave's parser prints\n\
-debug information as it processes an expression.\n\
+Query or set the internal flag that determines whether Octave's parser\n\
+prints debug information as it processes an expression.\n\
 @seealso{__lexer_debug_flag__}\n\
 @end deftypefn")
 {