cfgparser fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@153 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
szabii 2001-03-19 02:29:37 +00:00
parent ce3e8346b6
commit 48edc5f4bd
2 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,9 @@ static int read_option(char *opt, char *param)
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;

View File

@ -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)