diff tools/data2inc.c @ 860:daebbf28953d

The argument handling API in dmargs* was synced with th-libs.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 22 Nov 2014 18:50:07 +0200
parents d9888292f971
children b111cccf45fc
line wrap: on
line diff
--- a/tools/data2inc.c	Sat Nov 22 18:45:12 2014 +0200
+++ b/tools/data2inc.c	Sat Nov 22 18:50:07 2014 +0200
@@ -39,7 +39,7 @@
 void (*writeFooter) (FILE *, size_t, char *) = NULL;
 
 
-static DMOptArg optList[] =
+static const DMOptArg optList[] =
 {
     {  0, '?', "help",           "Show this help", OPT_NONE },
     {  4, 'A', "format-asm",     "Output in XA-compatible asm", OPT_NONE },
@@ -62,7 +62,7 @@
     dmPrintBanner(stdout, dmProgName,
         "[options] [sourcefile] [destfile]");
 
-    dmArgsPrintHelp(stdout, optList, optListN);
+    dmArgsPrintHelp(stdout, optList, optListN, 0);
     
     printf(
     "\n"
@@ -275,7 +275,7 @@
 
     /* Parse arguments */
     if (!dmArgsProcess(argc, argv, optList, optListN,
-        argHandleOpt, argHandleFile, TRUE))
+        argHandleOpt, argHandleFile, OPTH_BAILOUT))
         exit(1);
 
     /* Determine output type, if not specified */