Mercurial > hg > th-libs
changeset 4:67f4a4233372
Move defaults to header file.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 26 Mar 2008 05:10:20 +0200 |
parents | 5a327a2988fa |
children | 8552edc844a7 |
files | th_util.c th_util.h |
diffstat | 2 files changed, 10 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/th_util.c Wed Mar 26 05:03:16 2008 +0200 +++ b/th_util.c Wed Mar 26 05:10:20 2008 +0200 @@ -11,17 +11,8 @@ #include "th_util.h" #include <stdio.h> -/* - * Default settings +/* Default settings */ -#ifdef TH_NO_DEFAULTS -#define TH_PROG_AUTHOR "" -#define TH_PROG_LICENSE "" -#else -#define TH_PROG_AUTHOR "By Matti 'ccr' Hämäläinen (C) Copyright 2008 TNSP" -#define TH_PROG_LICENSE "This software is licensed under GNU GPL version 2" -#endif - BOOL th_isInitialized = FALSE; int th_verbosityLevel = 2; char *th_prog_name = NULL,
--- a/th_util.h Wed Mar 26 05:03:16 2008 +0200 +++ b/th_util.h Wed Mar 26 05:10:20 2008 +0200 @@ -33,6 +33,15 @@ #endif +#ifdef TH_NO_DEFAULTS +#define TH_PROG_AUTHOR NULL +#define TH_PROG_LICENSE NULL +#else +#define TH_PROG_AUTHOR "By Matti 'ccr' Hämäläinen (C) Copyright 2008 TNSP" +#define TH_PROG_LICENSE "This software is licensed under GNU GPL version 2" +#endif + + /* Replacement for assert() */ #ifdef HAVE_NO_ASSERT # ifdef NDEBUG