Mercurial > hg > octave-lyh
diff liboctave/idx-vector.cc @ 8333:9238637cb81c
style fixes
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 18 Nov 2008 11:14:31 -0500 |
parents | c374691576f6 |
children | 445d27d79f4e |
line wrap: on
line diff
--- a/liboctave/idx-vector.cc +++ b/liboctave/idx-vector.cc @@ -37,19 +37,22 @@ #include "lo-error.h" #include "lo-mappers.h" -static void gripe_invalid_index () +static void +gripe_invalid_index (void) { (*current_liboctave_error_handler) ("subscript indices must be either positive integers or logicals."); } -static void gripe_invalid_range () +static void +gripe_invalid_range (void) { (*current_liboctave_error_handler) ("invalid range used as index."); } -static void gripe_index_out_of_range () +static void +gripe_index_out_of_range (void) { (*current_liboctave_error_handler) ("internal error: idx_vector index out of range."); @@ -99,7 +102,8 @@ } } -static void gripe_non_int_range () +static void +gripe_non_int_range (void) { (*current_liboctave_error_handler) ("If a range is used as subscript, all elements are expected to be integers."); @@ -458,8 +462,9 @@ return reduced; } -bool idx_vector::is_cont_range (octave_idx_type n, - octave_idx_type& l, octave_idx_type& u) const +bool +idx_vector::is_cont_range (octave_idx_type n, + octave_idx_type& l, octave_idx_type& u) const { bool res = false; switch (rep->idx_class ())