Mercurial > hg > octave-thorsten
annotate liboctave/sparse-util.cc @ 8920:eb63fbe60fab
update copyright notices
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 07 Mar 2009 10:41:27 -0500 |
parents | 60b4c75287a1 |
children | c6edba80dfae |
rev | line source |
---|---|
5506 | 1 /* |
2 | |
8920 | 3 Copyright (C) 2005, 2007, 2008 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 | |
8207
60b4c75287a1
fix for SuiteSparse 3.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
33 // FIXME this overload is here due to API change in SuiteSparse (3.1 -> 3.2) |
5506 | 34 void |
35 SparseCholError (int status, char *file, int line, char *message) | |
36 { | |
8207
60b4c75287a1
fix for SuiteSparse 3.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
37 SparseCholError (status, file, line, message); |
60b4c75287a1
fix for SuiteSparse 3.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
38 } |
60b4c75287a1
fix for SuiteSparse 3.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
39 |
60b4c75287a1
fix for SuiteSparse 3.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
40 void |
60b4c75287a1
fix for SuiteSparse 3.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
41 SparseCholError (int status, const char *file, int line, const char *message) |
60b4c75287a1
fix for SuiteSparse 3.2
Jaroslav Hajek <highegg@gmail.com>
parents:
7017
diff
changeset
|
42 { |
5506 | 43 (*current_liboctave_warning_handler)("warning %i, at line %i in file %s", |
44 status, line, file); | |
45 | |
46 (*current_liboctave_warning_handler)(message); | |
47 } | |
48 | |
49 int | |
50 SparseCholPrint (const char *fmt, ...) | |
51 { | |
52 va_list args; | |
53 va_start (args, fmt); | |
54 int ret = vfprintf (stderr, fmt, args); | |
55 fflush (stderr); | |
56 va_end (args); | |
57 return ret; | |
58 } | |
59 | |
60 | |
61 /* | |
62 ;;; Local Variables: *** | |
63 ;;; mode: C++ *** | |
64 ;;; End: *** | |
65 */ |