Mercurial > hg > nnchat
changeset 20:323c98360d8b
Synced th-libs.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 26 Mar 2008 04:38:05 +0000 |
parents | e80072e26178 |
children | 29098addfa65 |
files | th_args.c th_util.c th_util.h |
diffstat | 3 files changed, 11 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/th_args.c Tue Mar 25 01:28:00 2008 +0000 +++ b/th_args.c Wed Mar 26 04:38:05 2008 +0000 @@ -112,7 +112,7 @@ }; -const DINT optListN = (sizeof(optList) / sizeof(t_opt)); +const int optListN = (sizeof(optList) / sizeof(optarg_t)); */
--- a/th_util.c Tue Mar 25 01:28:00 2008 +0000 +++ b/th_util.c Wed Mar 26 04:38:05 2008 +0000 @@ -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 Tue Mar 25 01:28:00 2008 +0000 +++ b/th_util.h Wed Mar 26 04:38:05 2008 +0000 @@ -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