changeset 152:372a9a836e86

cfgparser fix
author szabii
date Mon, 19 Mar 2001 02:29:37 +0000
parents 9708d4b2765b
children 8e55121885b2
files cfgparser.c cfgparser.h
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cfgparser.c	Mon Mar 19 02:29:37 2001 +0000
+++ b/cfgparser.c	Mon Mar 19 02:29:37 2001 +0000
@@ -160,6 +160,9 @@
 				return ERR_FUNC_ERR;
 			need_param = 0;
 			break;
+		case CONF_TYPE_PRINT:
+			printf("%s", (char *) config[i].p);
+			exit(1);
 		default:
 			printf("picsaba\n");
 			break;
--- a/cfgparser.h	Mon Mar 19 02:29:37 2001 +0000
+++ b/cfgparser.h	Mon Mar 19 02:29:37 2001 +0000
@@ -11,6 +11,7 @@
 #define CONF_TYPE_STRING	3
 #define CONF_TYPE_FUNC		4
 #define CONF_TYPE_FUNC_PARAM	5
+#define CONF_TYPE_PRINT		6
 
 #define CONF_CHK_MIN		(1<<0)
 #define CONF_CHK_MAX		(1<<1)