diff th_args.h @ 379:f4e182720870

Rename some function arguments and option argument structure members.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 01 Mar 2016 17:18:58 +0200
parents 51eec969b07a
children ac10155d2b4a
line wrap: on
line diff
--- a/th_args.h	Tue Mar 01 00:17:53 2016 +0200
+++ b/th_args.h	Tue Mar 01 17:18:58 2016 +0200
@@ -1,7 +1,7 @@
 /*
  * Simple commandline argument processing function
  * Programmed and designed by Matti 'ccr' Hamalainen
- * (C) Copyright 2002-2015 Tecnic Software productions (TNSP)
+ * (C) Copyright 2002-2016 Tecnic Software productions (TNSP)
  *
  * Please read file 'COPYING' for information on license and distribution.
  */
@@ -32,8 +32,8 @@
 typedef struct
 {
     int id;
-    char optShort;
-    char *optLong;
+    char o_hort;
+    char *o_long;
     char *desc;
     int flags;
 } th_optarg_t;
@@ -41,8 +41,8 @@
 
 BOOL th_args_process(int argc, char *argv[],
      const th_optarg_t *opts, const int nopts,
-     BOOL (*handleOption)(int, char *, char *),
-     BOOL (*handleOther)(char *), const int flags);
+     BOOL (*handle_option)(int id, char *, char *),
+     BOOL (*handle_other)(char *), const int flags);
 
 void th_args_help(FILE *, const th_optarg_t *opts,
      const int nopts, const int flags);