Mercurial > hg > forks > yadex
annotate src/verbmsg.cc @ 80:2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 26 Sep 2011 17:39:49 +0300 |
parents | a68786b9c74b |
children |
rev | line source |
---|---|
0 | 1 /* |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
2 * verbmsg.cc |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
3 * AYM 1998-11-11 |
0 | 4 */ |
5 | |
6 | |
7 /* | |
8 This file is part of Yadex. | |
9 | |
10 Yadex incorporates code from DEU 5.21 that was put in the public domain in | |
11 1994 by Raphaël Quinet and Brendon Wyber. | |
12 | |
13 The rest of Yadex is Copyright © 1997-2003 André Majorel and others. | |
14 | |
15 This program is free software; you can redistribute it and/or modify it under | |
16 the terms of the GNU General Public License as published by the Free Software | |
17 Foundation; either version 2 of the License, or (at your option) any later | |
18 version. | |
19 | |
20 This program is distributed in the hope that it will be useful, but WITHOUT | |
21 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS | |
22 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
23 | |
24 You should have received a copy of the GNU General Public License along with | |
25 this program; if not, write to the Free Software Foundation, Inc., 59 Temple | |
26 Place, Suite 330, Boston, MA 02111-1307, USA. | |
27 */ | |
28 | |
29 | |
30 #include "yadex.h" | |
31 | |
32 | |
33 /* | |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
34 * verbmsg |
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
35 * Like printf() but does nothing unlike <verbose> is set. |
0 | 36 */ |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
37 void verbmsg(const char *fmt, ...) |
0 | 38 { |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
39 va_list args; |
0 | 40 |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
33
diff
changeset
|
41 if (!cfg.verbose) |
33
a68786b9c74b
Oops, used indent with tabs enabled. Remove tabs.
Matti Hamalainen <ccr@tnsp.org>
parents:
25
diff
changeset
|
42 return; |
80
2f1ecc1c5f72
Huge cleanup -- move some global variables into a struct.
Matti Hamalainen <ccr@tnsp.org>
parents:
33
diff
changeset
|
43 |
25
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
44 va_start(args, fmt); |
8eaf72e2041b
Reindent the source using GNU indent and "indent -i4 -bli0 -npcs -nprs -npsl".
Matti Hamalainen <ccr@tnsp.org>
parents:
0
diff
changeset
|
45 vprintf(fmt, args); |
0 | 46 } |