summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-10-21 16:05:05 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-10-21 16:08:14 -0400
commit710069d5cc48b621e166c8e5a1669e601d1becdd (patch)
tree9d11905f7da90d6104f93a28bcc8de1992236848
parent4a08c0300cf6b0ee3bb5f755007641635ba21f9d (diff)
downloadbfs-710069d5cc48b621e166c8e5a1669e601d1becdd.tar.xz
cmdline: Declare functions in a more natural order
-rw-r--r--cmdline.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/cmdline.h b/cmdline.h
index 7c1891c..e9731f9 100644
--- a/cmdline.h
+++ b/cmdline.h
@@ -101,13 +101,6 @@ struct cmdline {
};
/**
- * Optimize the parsed command line.
- *
- * @return 0 if successful, -1 on error.
- */
-int optimize_cmdline(struct cmdline *cmdline);
-
-/**
* Parse the command line.
*/
struct cmdline *parse_cmdline(int argc, char *argv[]);
@@ -118,6 +111,13 @@ struct cmdline *parse_cmdline(int argc, char *argv[]);
void dump_cmdline(const struct cmdline *cmdline, bool verbose);
/**
+ * Optimize the parsed command line.
+ *
+ * @return 0 if successful, -1 on error.
+ */
+int optimize_cmdline(struct cmdline *cmdline);
+
+/**
* Evaluate the command line.
*/
int eval_cmdline(const struct cmdline *cmdline);