annotate liboctave/lo-error.h @ 1969:6c14daf92033

[project @ 1996-02-17 22:54:26 by jwe]
author jwe
date Sat, 17 Feb 1996 22:54:26 +0000
parents 1281a23a34dd
children 1b57120c997b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
222
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
1 // error.h -*- C++ -*-
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
2 /*
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
3
1882
1281a23a34dd [project @ 1996-02-05 18:11:52 by jwe]
jwe
parents: 1315
diff changeset
4 Copyright (C) 1996 John W. Eaton
222
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
5
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
6 This file is part of Octave.
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
7
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
8 Octave is free software; you can redistribute it and/or modify it
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
9 under the terms of the GNU General Public License as published by the
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
10 Free Software Foundation; either version 2, or (at your option) any
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
11 later version.
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
12
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
13 Octave is distributed in the hope that it will be useful, but WITHOUT
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
16 for more details.
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
17
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
18 You should have received a copy of the GNU General Public License
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
19 along with Octave; see the file COPYING. If not, write to the Free
1315
611d403c7f3d [project @ 1995-06-25 19:56:32 by jwe]
jwe
parents: 1296
diff changeset
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
222
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
21
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
22 */
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
23
382
e02d6b664394 [project @ 1994-03-09 21:08:03 by jwe]
jwe
parents: 238
diff changeset
24 #if !defined (octave_liboctave_error_h)
e02d6b664394 [project @ 1994-03-09 21:08:03 by jwe]
jwe
parents: 238
diff changeset
25 #define octave_liboctave_error_h 1
e02d6b664394 [project @ 1994-03-09 21:08:03 by jwe]
jwe
parents: 238
diff changeset
26
222
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
27 // Tell g++ that fatal doesn't return;
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
28
1296
f93b7fa5e113 [project @ 1995-05-01 18:30:08 by jwe]
jwe
parents: 1011
diff changeset
29 #if defined (__GNUG__)
222
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
30 typedef void v_fcn_cpc_x (const char *, ...);
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
31 volatile v_fcn_cpc_x fatal;
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
32 #endif
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
33
227
1a48a1b91489 [project @ 1993-11-15 10:10:35 by jwe]
jwe
parents: 223
diff changeset
34 extern void liboctave_fatal (const char *fmt, ...);
1a48a1b91489 [project @ 1993-11-15 10:10:35 by jwe]
jwe
parents: 223
diff changeset
35
222
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
36 typedef void (*liboctave_error_handler) (const char *, ...);
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
37
227
1a48a1b91489 [project @ 1993-11-15 10:10:35 by jwe]
jwe
parents: 223
diff changeset
38 // Would be nice to make this private, but we want to share it among
1a48a1b91489 [project @ 1993-11-15 10:10:35 by jwe]
jwe
parents: 223
diff changeset
39 // all the liboctave classes.
1a48a1b91489 [project @ 1993-11-15 10:10:35 by jwe]
jwe
parents: 223
diff changeset
40 extern liboctave_error_handler current_liboctave_error_handler;
1a48a1b91489 [project @ 1993-11-15 10:10:35 by jwe]
jwe
parents: 223
diff changeset
41
222
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
42 extern void set_liboctave_error_handler (liboctave_error_handler f);
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
43
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
44 #endif
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
45
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
46 /*
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
47 ;;; Local Variables: ***
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
48 ;;; mode: C++ ***
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
49 ;;; page-delimiter: "^/\\*" ***
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
50 ;;; End: ***
a592507b3bad [project @ 1993-11-14 10:54:16 by jwe]
jwe
parents:
diff changeset
51 */