Mercurial > hg > octave-nkf
annotate src/interp-core/gripes.h @ 15096:909a2797935b
maint: Move interp source code without DEFUNs to interp-core/ dir.
* src/Makefile.am, interpfcn/module.mk, operators/module.mk,
parse-tree/module.mk: Update build system by moving source lists and rules
to the correct directory.
* Cell.cc, Cell.h, c-file-ptr-stream.cc, c-file-ptr-stream.h, comment-list.cc,
comment-list.h, cutils.c, cutils.h, defun-dld.h, defun-int.h, display.cc,
display.h, dynamic-ld.cc, dynamic-ld.h, gl-render.cc, gl-render.h,
gl2ps-renderer.cc, gl2ps-renderer.h, gl2ps.c, gl2ps.h, gripes.cc, gripes.h,
jit-ir.cc, jit-ir.h, jit-typeinfo.cc, jit-typeinfo.h, jit-util.cc, jit-util.h,
ls-ascii-helper.cc, ls-ascii-helper.h, ls-hdf5.cc, ls-hdf5.h, ls-mat-ascii.cc,
ls-mat-ascii.h, ls-mat4.cc, ls-mat4.h, ls-mat5.cc, ls-mat5.h, ls-oct-binary.cc,
ls-oct-binary.h, ls-utils.cc, ls-utils.h, matherr.c, mex.cc, mex.h, mexproto.h,
module.mk, mxarray.in.h, oct-errno.h, oct-errno.in.cc, oct-fstrm.cc,
oct-fstrm.h, oct-hdf5.h, oct-iostrm.cc, oct-iostrm.h, oct-lvalue.cc,
oct-lvalue.h, oct-map.cc, oct-map.h, oct-obj.cc, oct-obj.h, oct-prcstrm.cc,
oct-prcstrm.h, oct-procbuf.cc, oct-procbuf.h, oct-stdstrm.h, oct-stream.cc,
oct-stream.h, oct-strstrm.cc, oct-strstrm.h, oct.h, procstream.cc,
procstream.h, pt-jit.cc, pt-jit.h, siglist.c, siglist.h, sparse-xdiv.cc,
sparse-xdiv.h, sparse-xpow.cc, sparse-xpow.h, txt-eng-ft.cc, txt-eng-ft.h,
txt-eng.h, unwind-prot.cc, unwind-prot.h, xdiv.cc, xdiv.h, xgl2ps.c, xnorm.cc,
xnorm.h, xpow.cc, xpow.h, zfstream.cc, zfstream.h: Move from src/ dir to
src/interp-core dir.
* ops.h: Move to operators/ directory.
* octave.gperf, token.cc, token.h: Move to parse-tree directory.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 03 Aug 2012 13:18:21 -0700 |
parents | src/gripes.h@72c96de7a403 |
children |
rev | line source |
---|---|
1 | 1 /* |
2 | |
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
3 Copyright (C) 1993-2012 John W. Eaton |
1 | 4 |
5 This file is part of Octave. | |
6 | |
7 Octave is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published by the | |
7016 | 9 Free Software Foundation; either version 3 of the License, or (at your |
10 option) any later version. | |
1 | 11 |
12 Octave is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
7016 | 18 along with Octave; see the file COPYING. If not, see |
19 <http://www.gnu.org/licenses/>. | |
1 | 20 |
21 */ | |
22 | |
383 | 23 #if !defined (octave_gripes_h) |
24 #define octave_gripes_h 1 | |
1 | 25 |
2374 | 26 #include <string> |
27 | |
11130
7c573eb981eb
consistently give error for operator not applied to NaN values
John W. Eaton <jwe@octave.org>
parents:
10405
diff
changeset
|
28 #include "lo-array-gripes.h" |
7c573eb981eb
consistently give error for operator not applied to NaN values
John W. Eaton <jwe@octave.org>
parents:
10405
diff
changeset
|
29 |
2086 | 30 class octave_value; |
620 | 31 |
6109 | 32 extern OCTINTERP_API void |
2799 | 33 gripe_not_supported (const char *); |
34 | |
6109 | 35 extern OCTINTERP_API void |
6890 | 36 gripe_not_implemented (const char *); |
37 | |
38 extern OCTINTERP_API void | |
2799 | 39 gripe_string_invalid (void); |
40 | |
6109 | 41 extern OCTINTERP_API void |
2799 | 42 gripe_range_invalid (void); |
43 | |
6109 | 44 extern OCTINTERP_API void |
2799 | 45 gripe_nonconformant (void); |
46 | |
6109 | 47 extern OCTINTERP_API void |
5275 | 48 gripe_nonconformant (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2); |
2799 | 49 |
6109 | 50 extern OCTINTERP_API void |
2799 | 51 gripe_empty_arg (const char *name, bool is_error); |
52 | |
6109 | 53 extern OCTINTERP_API void |
2799 | 54 gripe_square_matrix_required (const char *name); |
55 | |
6109 | 56 extern OCTINTERP_API void |
2799 | 57 gripe_user_supplied_eval (const char *name); |
58 | |
6109 | 59 extern OCTINTERP_API void |
2799 | 60 gripe_user_returned_invalid (const char *name); |
61 | |
6109 | 62 extern OCTINTERP_API void |
3523 | 63 gripe_invalid_conversion (const std::string& from, const std::string& to); |
2799 | 64 |
6109 | 65 extern OCTINTERP_API void |
2799 | 66 gripe_invalid_value_specified (const char *name); |
67 | |
6109 | 68 extern OCTINTERP_API void |
2799 | 69 gripe_2_or_3_dim_plot (void); |
70 | |
6109 | 71 extern OCTINTERP_API void |
2799 | 72 gripe_unrecognized_float_fmt (void); |
73 | |
6109 | 74 extern OCTINTERP_API void |
2799 | 75 gripe_unrecognized_data_fmt (const char *warn_for); |
76 | |
6109 | 77 extern OCTINTERP_API void |
2799 | 78 gripe_data_conversion (const char *from, const char *to); |
79 | |
6109 | 80 extern OCTINTERP_API void |
5602 | 81 gripe_wrong_type_arg (const char *name, const char *s, |
10313 | 82 bool is_error = true); |
5602 | 83 |
6109 | 84 extern OCTINTERP_API void |
3523 | 85 gripe_wrong_type_arg (const char *name, const std::string& s, |
10313 | 86 bool is_error = true); |
2799 | 87 |
6109 | 88 extern OCTINTERP_API void |
2799 | 89 gripe_wrong_type_arg (const char *name, const octave_value& tc, |
10313 | 90 bool is_error = true); |
2799 | 91 |
6109 | 92 extern OCTINTERP_API void |
7352 | 93 gripe_wrong_type_arg (const std::string& name, const octave_value& tc, |
10313 | 94 bool is_error = true); |
7352 | 95 |
96 extern OCTINTERP_API void | |
2799 | 97 gripe_wrong_type_arg_for_unary_op (const octave_value& op); |
98 | |
6109 | 99 extern OCTINTERP_API void |
2799 | 100 gripe_wrong_type_arg_for_binary_op (const octave_value& op); |
101 | |
6109 | 102 extern OCTINTERP_API void |
5781 | 103 gripe_implicit_conversion (const char *id, const char *from, const char *to); |
2799 | 104 |
6109 | 105 extern OCTINTERP_API void |
5781 | 106 gripe_implicit_conversion (const std::string& id, const std::string& from, |
10313 | 107 const std::string& to); |
4452 | 108 |
6109 | 109 extern OCTINTERP_API void |
2799 | 110 gripe_divide_by_zero (void); |
1 | 111 |
6109 | 112 extern OCTINTERP_API void |
5943 | 113 gripe_logical_conversion (void); |
114 | |
8011
3100283874d7
improve backtrace error messages
John W. Eaton <jwe@octave.org>
parents:
7997
diff
changeset
|
115 extern OCTINTERP_API void |
3100283874d7
improve backtrace error messages
John W. Eaton <jwe@octave.org>
parents:
7997
diff
changeset
|
116 gripe_library_execution_error (void); |
3100283874d7
improve backtrace error messages
John W. Eaton <jwe@octave.org>
parents:
7997
diff
changeset
|
117 |
8579
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
118 extern OCTINTERP_API void |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
119 gripe_invalid_inquiry_subscript (void); |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
120 |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
121 extern OCTINTERP_API void |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
122 gripe_indexed_cs_list (void); |
7e0f36dfefbe
implement octave_value_list using Array
Jaroslav Hajek <highegg@gmail.com>
parents:
8039
diff
changeset
|
123 |
9588
319e2ab9b8ae
warn about the complex comparison ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
124 extern OCTINTERP_API void |
10030
83bb2a78c07d
improve simple assignments error checks and messages
Jaroslav Hajek <highegg@gmail.com>
parents:
9648
diff
changeset
|
125 gripe_nonbraced_cs_list_assignment (void); |
83bb2a78c07d
improve simple assignments error checks and messages
Jaroslav Hajek <highegg@gmail.com>
parents:
9648
diff
changeset
|
126 |
83bb2a78c07d
improve simple assignments error checks and messages
Jaroslav Hajek <highegg@gmail.com>
parents:
9648
diff
changeset
|
127 extern OCTINTERP_API void |
9588
319e2ab9b8ae
warn about the complex comparison ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
128 gripe_warn_complex_cmp (void); |
319e2ab9b8ae
warn about the complex comparison ops
Jaroslav Hajek <highegg@gmail.com>
parents:
8920
diff
changeset
|
129 |
1 | 130 #endif |