Mercurial > octave-nkf
comparison liboctave/lo-array-gripes.cc @ 11590:4ced6b90fffb
style fixes for warning and error messages in source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 18:43:39 -0500 |
parents | 12df7854fa7c |
children | 72c96de7a403 |
comparison
equal
deleted
inserted
replaced
11589:b0084095098e | 11590:4ced6b90fffb |
---|---|
128 gripe_invalid_index (void) | 128 gripe_invalid_index (void) |
129 { | 129 { |
130 const char *err_id = error_id_invalid_index; | 130 const char *err_id = error_id_invalid_index; |
131 | 131 |
132 (*current_liboctave_error_with_id_handler) | 132 (*current_liboctave_error_with_id_handler) |
133 (err_id, "subscript indices must be either positive integers or logicals."); | 133 (err_id, "subscript indices must be either positive integers or logicals"); |
134 } | 134 } |
135 | 135 |
136 // FIXME -- the following is a common error message to resize, | 136 // FIXME -- the following is a common error message to resize, |
137 // regardless of whether it's called from assign or elsewhere. It | 137 // regardless of whether it's called from assign or elsewhere. It |
138 // seems OK to me, but eventually the gripe can be specialized. | 138 // seems OK to me, but eventually the gripe can be specialized. |
143 void | 143 void |
144 gripe_invalid_resize (void) | 144 gripe_invalid_resize (void) |
145 { | 145 { |
146 (*current_liboctave_error_with_id_handler) | 146 (*current_liboctave_error_with_id_handler) |
147 ("Octave:invalid-resize", | 147 ("Octave:invalid-resize", |
148 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element."); | 148 "Invalid resizing operation or ambiguous assignment to an out-of-bounds array element"); |
149 } | 149 } |
150 | 150 |
151 void | 151 void |
152 gripe_invalid_assignment_size (void) | 152 gripe_invalid_assignment_size (void) |
153 { | 153 { |