diff th_args.h @ 136:286b2249c5d2

Clean up th_args API.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 25 Sep 2014 03:18:27 +0300
parents aa2d608fb3f3
children 0f43a94516f4
line wrap: on
line diff
--- a/th_args.h	Wed Sep 24 23:45:39 2014 +0300
+++ b/th_args.h	Thu Sep 25 03:18:27 2014 +0300
@@ -18,13 +18,12 @@
 /* Option flags
  */
 #define OPT_NONE       (0)    // Simple option with no arguments
-#define OPT_ARGREQ     (1)    // Option's argument is required
-#define OPT_ARGOPT     (3)    // Option's argument is optional
+#define OPT_ARGREQ     (1)    // Option requires an argument
 #define OPT_ARGMASK    (3)    // Mask for option argument flags
-#define OPT_REQUIRED   (4)    // This option is required to be given
 
 
-typedef struct {
+typedef struct
+{
     int id;
     char optShort;
     char *optLong;