5506
|
1 /* |
|
2 |
|
3 Copyright (C) 2005 David Bateman |
|
4 Copyright (C) 1998-2005 Andy Adler |
|
5 |
|
6 Octave is free software; you can redistribute it and/or modify it |
|
7 under the terms of the GNU General Public License as published by the |
|
8 Free Software Foundation; either version 2, or (at your option) any |
|
9 later version. |
|
10 |
|
11 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 for more details. |
|
15 |
|
16 You should have received a copy of the GNU General Public License |
|
17 along with this program; see the file COPYING. If not, write to the |
|
18 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
|
19 Boston, MA 02110-1301, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #ifdef HAVE_CONFIG_H |
|
24 #include <config.h> |
|
25 #endif |
|
26 |
|
27 #include <stdio.h> |
|
28 #include <stdarg.h> |
|
29 #include "lo-error.h" |
|
30 #include "sparse-util.h" |
|
31 |
|
32 void |
|
33 SparseCholError (int status, char *file, int line, char *message) |
|
34 { |
|
35 (*current_liboctave_warning_handler)("warning %i, at line %i in file %s", |
|
36 status, line, file); |
|
37 |
|
38 (*current_liboctave_warning_handler)(message); |
|
39 } |
|
40 |
|
41 int |
|
42 SparseCholPrint (const char *fmt, ...) |
|
43 { |
|
44 va_list args; |
|
45 va_start (args, fmt); |
|
46 int ret = vfprintf (stderr, fmt, args); |
|
47 fflush (stderr); |
|
48 va_end (args); |
|
49 return ret; |
|
50 } |
|
51 |
|
52 |
|
53 /* |
|
54 ;;; Local Variables: *** |
|
55 ;;; mode: C++ *** |
|
56 ;;; End: *** |
|
57 */ |