diff examples/make_int.cc @ 17791:224e76250443

Use GNU style coding conventions for code in examples/ * examples/embedded.cc, examples/fortdemo.cc, examples/helloworld.cc, examples/make_int.cc, examples/mycell.c, examples/myfeval.c, examples/myfunc.c, examples/mypow2.c, examples/myprop.c, examples/myset.c, examples/mystring.c, examples/mystruct.c, examples/oct_demo.cc, examples/oregonator.cc: Use GNU style coding conventions for code in examples/
author Rik <rik@octave.org>
date Tue, 29 Oct 2013 10:28:39 -0700
parents b099acf06b55
children
line wrap: on
line diff
--- a/examples/make_int.cc	Tue Oct 29 09:54:40 2013 -0700
+++ b/examples/make_int.cc	Tue Oct 29 10:28:39 2013 -0700
@@ -72,10 +72,10 @@
   bool is_numeric_type (void) const { return true; }
 
   bool valid_as_scalar_index (void) const
-    { return scalar == 1; }
+  { return scalar == 1; }
 
   bool valid_as_zero_index (void) const
-    { return scalar == 0; }
+  { return scalar == 0; }
 
   bool is_true (void) const { return (scalar != 0); }
 
@@ -88,7 +88,7 @@
   Complex complex_value (bool = false) const { return scalar; }
 
   ComplexMatrix complex_matrix_value (bool = false) const
-    { return  ComplexMatrix (1, 1, Complex (scalar)); }
+  { return  ComplexMatrix (1, 1, Complex (scalar)); }
 
   octave_value gnot (void) const { return octave_value ((double) ! scalar); }
 
@@ -231,7 +231,7 @@
 DEFBINOP_OP (el_or, integer, integer, ||)
 
 DEFUN_DLD (make_int, args, ,
-  "int_val = make_int (val)\n\
+           "int_val = make_int (val)\n\
 \n\
 Creates an integer variable from VAL.")
 {
@@ -243,7 +243,7 @@
       mlock ();
 
       octave_stdout << "installing integer type at type-id = "
-           << octave_integer::static_type_id () << "\n";
+                    << octave_integer::static_type_id () << "\n";
 
       INSTALL_UNOP (op_not, octave_integer, gnot);
       INSTALL_UNOP (op_uminus, octave_integer, uminus);
@@ -289,7 +289,7 @@
 }
 
 DEFUN_DLD (doit, args, ,
-  "doit (I)")
+           "doit (I)")
 {
   octave_value_list retval;