2386
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
2386
|
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 |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
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 |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #ifdef HAVE_CONFIG_H |
|
24 #include <config.h> |
|
25 #endif |
|
26 |
|
27 #include "MArray.h" |
|
28 #include "MArray2.h" |
4543
|
29 #include "dim-vector.h" |
2386
|
30 #include "lo-error.h" |
|
31 |
|
32 void |
|
33 gripe_nonconformant (const char *op, int op1_len, int op2_len) |
|
34 { |
|
35 (*current_liboctave_error_handler) |
|
36 ("%s: nonconformant arguments (op1 len: %d, op2 len: %d)", |
|
37 op, op1_len, op2_len); |
|
38 } |
|
39 |
|
40 void |
|
41 gripe_nonconformant (const char *op, int op1_nr, int op1_nc, |
|
42 int op2_nr, int op2_nc) |
|
43 { |
|
44 (*current_liboctave_error_handler) |
|
45 ("%s: nonconformant arguments (op1 is %dx%d, op2 is %dx%d)", |
|
46 op, op1_nr, op1_nc, op2_nr, op2_nc); |
|
47 } |
|
48 |
4543
|
49 void |
|
50 gripe_nonconformant (const char *op, dim_vector& op1_dims, |
|
51 dim_vector& op2_dims) |
|
52 { |
|
53 std::string op1_dims_str = op1_dims.str (); |
|
54 std::string op2_dims_str = op2_dims.str (); |
|
55 |
|
56 (*current_liboctave_error_handler) |
|
57 ("%s: nonconformant arguments (op1 is %s, op2 is %s)", |
|
58 op, op1_dims_str.c_str (), op2_dims_str.c_str ()); |
|
59 } |
|
60 |
|
61 |
2386
|
62 /* |
|
63 ;;; Local Variables: *** |
|
64 ;;; mode: C++ *** |
|
65 ;;; End: *** |
|
66 */ |