changeset 2449:7ef89d9b06ed

added DUMPSUBS recognition if we need compile only subreader.c alone
author atlka
date Wed, 24 Oct 2001 13:57:46 +0000
parents 1e56c3381d55
children f51307170f69
files subreader.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/subreader.c	Wed Oct 24 13:03:56 2001 +0000
+++ b/subreader.c	Wed Oct 24 13:57:46 2001 +0000
@@ -497,8 +497,12 @@
 
     return -1;  // too many bad lines
 }
-	
+
+#ifdef DUMPSUBS
+int sub_utf8=0;
+#else
 extern int sub_utf8;
+#endif
 
 #ifdef USE_ICONV
 static iconv_t icdsc;
@@ -771,7 +775,7 @@
 
 
 
-#if 0
+#ifdef DUMPSUBS
 int main(int argc, char **argv) {  // for testing
 
     int i,j;
@@ -782,7 +786,7 @@
         printf("\nUsage: subreader filename.sub\n\n");
         exit(1);
     }
-    
+    sub_cp = argv[2]; 
     subs=sub_read_file(argv[1]);
     if(!subs){
         printf("Couldn't load file... let's write a bugreport :)\n");