1 /* sane - Scanner Access Now Easy.
2    Copyright (C) 2003 Martijn van Oosterhout <kleptog@svana.org>
3    Copyright (C) 2003 Thomas Soumarmon <thomas.soumarmon@cogitae.net>
4 
5    Originally copied from HP3300 testtools. Original notice follows:
6 
7    Copyright (C) 2001 Bertrik Sikken (bertrik@zonnet.nl)
8 
9    This file is part of the SANE package.
10 
11    This program is free software; you can redistribute it and/or
12    modify it under the terms of the GNU General Public License
13    as published by the Free Software Foundation; either version 2
14    of the License, or (at your option) any later version.
15 
16    This program is distributed in the hope that it will be useful,
17    but WITHOUT ANY WARRANTY; without even the implied warranty of
18    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19    GNU General Public License for more details.
20 
21    You should have received a copy of the GNU General Public License
22    along with this program.  If not, see <https://www.gnu.org/licenses/>.
23 
24    As a special exception, the authors of SANE give permission for
25    additional uses of the libraries contained in this release of SANE.
26 
27    The exception is that, if you link a SANE library with other files
28    to produce an executable, this does not by itself cause the
29    resulting executable to be covered by the GNU General Public
30    License.  Your use of that executable is in no way restricted on
31    account of linking the SANE library code into it.
32 
33    This exception does not, however, invalidate any other reasons why
34    the executable file might be covered by the GNU General Public
35    License.
36 
37    If you submit changes to SANE to the maintainers to be included in
38    a subsequent release, you agree by submitting the changes that
39    those changes may be distributed with this exception intact.
40 
41    If you write modifications of your own for SANE, it is your choice
42    whether to permit this exception to apply to your modifications.
43    If you do not wish that, delete this exception notice.
44 */
45 
46 #include "hp5400_debug.h"
47 
48 
49 #ifdef STANDALONE
50 
51 #include <stdio.h>
52 
53 FILE *DBG_ASSERT = NULL;
54 FILE *DBG_ERR = NULL;
55 FILE *DBG_MSG = NULL;
56 
hp5400_dbg_startnull57 void  hp5400_dbg_start() {
58   DBG_MSG = stdout;
59   DBG_ERR = stderr;
60   DBG_ASSERT = stderr;
61 }
62 
63 #else
64 
65 /* #define DEBUG_NOT_STATIC */
66 #undef DEBUG_DECLARE_ONLY
67 #undef _SANEI_DEBUG_H
68 #include "../include/sane/sanei_debug.h"
69 
70 #endif
71