aboutsummaryrefslogtreecommitdiffstats
path: root/com32/rosh/rosh.c
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2010-10-02 01:05:03 -0400
committerGene Cumm <gene.cumm@gmail.com>2010-10-09 07:33:07 -0400
commitaaca83c8aa0e95776082f7ba154c50b03715df74 (patch)
tree6cd21d680c58b5d16ea2cb65326486e78f746f69 /com32/rosh/rosh.c
parent736c1716e9382c6d2d20bcc8b326302e89952ee4 (diff)
downloadsyslinux-aaca83c8aa0e95776082f7ba154c50b03715df74.tar.gz
syslinux-aaca83c8aa0e95776082f7ba154c50b03715df74.tar.xz
syslinux-aaca83c8aa0e95776082f7ba154c50b03715df74.zip
rosh: Add function header comments that were missing
Diffstat (limited to 'com32/rosh/rosh.c')
-rw-r--r--com32/rosh/rosh.c27
1 files changed, 24 insertions, 3 deletions
diff --git a/com32/rosh/rosh.c b/com32/rosh/rosh.c
index 96f21a58..1a2ab6f3 100644
--- a/com32/rosh/rosh.c
+++ b/com32/rosh/rosh.c
@@ -41,8 +41,10 @@
#define APP_NAME "rosh"
#define APP_AUTHOR "Gene Cumm"
#define APP_YEAR "2010"
-#define APP_VER "beta-b072"
+#define APP_VER "beta-b080"
+/* Print version information to stdout
+ */
void rosh_version(int vtype)
{
char env[256];
@@ -55,6 +57,8 @@ void rosh_version(int vtype)
}
}
+/* Print beta message and if DO_DEBUG/DO_DEBUG2 are active
+ */
void print_beta(void)
{
puts(rosh_beta_str);
@@ -122,8 +126,6 @@ int rosh_parse_sp_1(char *dest, const char *src, const int ipos)
return epos;
}
-int __parse_argv(char ***argv, const char *str);
-
/*
* parse_args1: Try 1 at parsing a string to an argc/argv pair. use free_args1 to free memory malloc'd
*
@@ -184,6 +186,9 @@ fail_args_ptr:
return 0;
}
+/* Free argv created by parse_args1()
+ * argv Argument Values
+ */
void free_args1(char ***argv)
{
char *s;
@@ -192,16 +197,28 @@ void free_args1(char ***argv)
free(s);
}
+/* Convert a string to an argc/argv pair
+ * str String to parse
+ * argv Argument Values
+ * returns Argument Count
+ */
int rosh_str2argv(char ***argv, const char *str)
{
return parse_args1(argv, str);
}
+/* Free an argv created by rosh_str2argv()
+ * argv Argument Values to free
+ */
void rosh_free_argv(char ***argv)
{
free_args1(argv);
}
+/* Print the contents of an argc/argv pair
+ * argc Argument Count
+ * argv Argument Values
+ */
void rosh_pr_argv(int argc, char *argv[])
{
int i;
@@ -211,6 +228,10 @@ void rosh_pr_argv(int argc, char *argv[])
puts("");
}
+/* Print the contents of an argc/argv pair verbosely
+ * argc Argument Count
+ * argv Argument Values
+ */
void rosh_pr_argv_v(int argc, char *argv[])
{
int i;