optparser.c

changeset 5
f878a9ffa3e0
parent 3
b1fbfab67908
child 9
55e7f2ff6021
--- a/optparser.c	Wed Apr 19 22:03:51 2000 +0200
+++ b/optparser.c	Wed Apr 19 22:10:28 2000 +0200
@@ -10,10 +10,10 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include "include/util.h"
-#include "include/misc.h"
-#include "include/optparser.h"
-#include "include/output.h"
+#include <libtu/util.h>
+#include <libtu/misc.h>
+#include <libtu/optparser.h>
+#include <libtu/output.h>
 
 
 #define O_ARGS(o)		(o->flags&OPT_OPT_ARG)
@@ -61,17 +61,6 @@
 }
 
 
-/*static bool valid_chain(const char *p, const OptParserOpt *o)
-{
-	while(*p!='\0'){
-		if(!find_chain_opt(*p, o))
-			return FALSE;
-		p++;
-	}
-	return TRUE;
-}*/
-	
-
 static bool is_option(const char *p)
 {
 	 if(p==NULL)
@@ -138,10 +127,6 @@
 			o_args_left=o_left;
 			RET(OPT_ID_ARGUMENT);
 		}
-		/*argptr=strchr(p, '=');
-		if(argptr!=NULL)
-			argptr++;
-		*/
 		type=LONG;
 		p2=p+2;
 	}else{

mercurial