diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2021-03-30 10:59:39 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2021-04-01 00:04:14 +0200 |
commit | 5ff1d6955496b3cf9a35042c9ac35db43bc336b1 (patch) | |
tree | 6d470f7eb448f59f53e8df1010aec9dad8ce1f72 /extract/src/outf.h | |
parent | Import Ghostscript 9.53.1 (diff) | |
download | ghostscript-gpl-patches-5ff1d6955496b3cf9a35042c9ac35db43bc336b1.tar.gz ghostscript-gpl-patches-5ff1d6955496b3cf9a35042c9ac35db43bc336b1.tar.bz2 ghostscript-gpl-patches-5ff1d6955496b3cf9a35042c9ac35db43bc336b1.zip |
Import Ghostscript 9.54ghostscript-9.54
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'extract/src/outf.h')
-rw-r--r-- | extract/src/outf.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/extract/src/outf.h b/extract/src/outf.h new file mode 100644 index 00000000..a2b6c078 --- /dev/null +++ b/extract/src/outf.h @@ -0,0 +1,32 @@ +#ifndef ARTIFEX_EXTRACT_OUTF_H +#define ARTIFEX_EXTRACT_OUTF_H + +/* Only for internal use by extract code. */ + +void (outf)( + int level, + const char* file, int line, + const char* fn, + int ln, + const char* format, + ... + ); +/* Outputs text if <level> is less than or equal to verbose value set by +outf_level_set(). */ + +#define outf(format, ...) \ + (outf)(1, __FILE__, __LINE__, __FUNCTION__, 1 /*ln*/, format, ##__VA_ARGS__) + +#define outf0(format, ...) \ + (outf)(0, __FILE__, __LINE__, __FUNCTION__, 1 /*ln*/, format, ##__VA_ARGS__) + +#define outfx(format, ...) + +/* Simple printf-style debug output. */ + +#define outfx(format, ...) + +void outf_verbose_set(int verbose); +/* Set verbose value. Higher values are more verbose. Initial value is 0. */ + +#endif |