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