changeset 10320:d83e4e54985c

backport PRINT_INDIRECT to old-config parser (new config fails on some 64bit systems - should be fixed) and some minor corrections
author alex
date Sat, 21 Jun 2003 23:39:32 +0000
parents 2e9b7465d242
children 140fcbd20c18
files cfgparser.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cfgparser.c	Sat Jun 21 23:22:38 2003 +0000
+++ b/cfgparser.c	Sat Jun 21 23:39:32 2003 +0000
@@ -72,6 +72,7 @@
 
   switch(conf->type) {
   case CONF_TYPE_PRINT :
+  case CONF_TYPE_PRINT_INDIRECT :
   case CONF_TYPE_SUBCONFIG :
     return;
   default :
@@ -761,6 +762,9 @@
 		case CONF_TYPE_PRINT:
 			mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", (char *) conf[i].p);
 			exit(1);
+		case CONF_TYPE_PRINT_INDIRECT:
+			mp_msg(MSGT_CFGPARSER, MSGL_INFO, "%s", *(char **) conf[i].p);
+			exit(1);
 		case CONF_TYPE_POSITION:
 			if (param == NULL)
 				goto err_missing_param;
@@ -1490,6 +1494,7 @@
       type = "Function";
       break;
     case CONF_TYPE_PRINT:
+    case CONF_TYPE_PRINT_INDIRECT:
       type = "Print";
       break;
     case CONF_TYPE_STRING_LIST: