@@ 129,38 129,39 @@ int sc_argparse(struct sc_arg argspec[], int argc, char **argv);
* Define a string argument with a default value. It is not required to appear
* on the command line.
*/
-#define SC_ARG_DEF_STRING(flag, name, default_, help) \
- ((struct sc_arg){flag, false, SC_ARG_TYPE_STRING, name, help, default_})
+#define SC_ARG_DEF_STRING(flag, name, default_, help) \
+ ((struct sc_arg){ flag, false, SC_ARG_TYPE_STRING, name, help, \
+ default_ })
/**
* Define a string argument without a default value. It is required to appear on
* the command line.
*/
-#define SC_ARG_STRING(flag, name, help) \
- ((struct sc_arg){flag, true, SC_ARG_TYPE_STRING, name, help})
+#define SC_ARG_STRING(flag, name, help) \
+ ((struct sc_arg){ flag, true, SC_ARG_TYPE_STRING, name, help })
/**
* Define an integer argument with a default value. It is not required to appear
* on the command line.
*/
-#define SC_ARG_DEF_INT(flag, name, default_, help) \
- ((struct sc_arg){flag, false, SC_ARG_TYPE_INT, name, help, NULL, default_})
+#define SC_ARG_DEF_INT(flag, name, default_, help) \
+ ((struct sc_arg){ flag, false, SC_ARG_TYPE_INT, name, help, NULL, \
+ default_ })
/**
* Define an integer argument without a default value. It is required to appear
* on the command line.
*/
-#define SC_ARG_INT(flag, name, help) \
- ((struct sc_arg){flag, true, SC_ARG_TYPE_INT, name, help})
+#define SC_ARG_INT(flag, name, help) \
+ ((struct sc_arg){ flag, true, SC_ARG_TYPE_INT, name, help })
/**
* Define an count argument. It is not required to appear on the command line.
*/
-#define SC_ARG_COUNT(flag, name, help) \
- ((struct sc_arg){flag, false, SC_ARG_TYPE_COUNT, name, help})
+#define SC_ARG_COUNT(flag, name, help) \
+ ((struct sc_arg){ flag, false, SC_ARG_TYPE_COUNT, name, help })
/**
* Signals the end of the argument specification.
*/
-#define SC_ARG_END() \
- ((struct sc_arg){0})
+#define SC_ARG_END() ((struct sc_arg){ 0 })
#endif