changeset 17:19b2cbc91c2a

Updated th-libs.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 24 Mar 2008 20:04:00 +0000
parents 57ed9746ede7
children 150d3d7d6aac
files th_util.c
diffstat 1 files changed, 3 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/th_util.c	Mon Mar 24 20:02:05 2008 +0000
+++ b/th_util.c	Mon Mar 24 20:04:00 2008 +0000
@@ -15,15 +15,9 @@
  * Default settings
  */
 #ifdef TH_NO_DEFAULTS
-#define TH_PROG_NAME		""
-#define TH_PROG_FULLNAME	""
-#define TH_PROG_VERSION		""
 #define TH_PROG_AUTHOR		""
 #define TH_PROG_LICENSE		""
 #else
-#define TH_PROG_NAME		"program"
-#define TH_PROG_FULLNAME	"A Program"
-#define TH_PROG_VERSION		"0.0.0"
 #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
@@ -42,20 +36,9 @@
 void th_init(char *progName, char *progFullName, char *progVersion,
 	char *progAuthor, char *progLicense)
 {
-	if (progName)
-		th_prog_name = progName;
-	else
-		th_prog_name = TH_PROG_NAME;
-
-	if (progFullName)
-		th_prog_fullname = progFullName;
-	else
-		th_prog_fullname = TH_PROG_FULLNAME;
-
-	if (progVersion)
-		th_prog_version = progVersion;
-	else
-		th_prog_version = TH_PROG_VERSION;
+	th_prog_name = progName;
+	th_prog_fullname = progFullName;
+	th_prog_version = progVersion;
 
 	if (progAuthor)
 		th_prog_author = progAuthor;