diff options
Diffstat (limited to 'unsorted/Help.c')
-rw-r--r-- | unsorted/Help.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/unsorted/Help.c b/unsorted/Help.c index ceeb278..74849a1 100644 --- a/unsorted/Help.c +++ b/unsorted/Help.c @@ -23,7 +23,7 @@ static char outLine[256]; static void Help_Output(Side *left, Side *right); static void Help_OutputSingle(Side *all); -static void Help_Flush(); +static void Help_Flush(void); static void Side_Init(Side *s, short offset, short width) { memset(s, 0, sizeof(Side)); @@ -147,7 +147,7 @@ static void Side_DumpLine(Side *s) { } } -static void Help_PrintLine() { +static void Help_PrintLine(void) { HPrintF(helptext, "%.*s\n", parseopts.ioCols - 1, outLine); } @@ -176,11 +176,11 @@ static void Help_OutputSingle(Side *all) { } } -static void Help_Flush() { +static void Help_Flush(void) { Help_Output(&left, &right); } -static void Help_NewLine() { +static void Help_NewLine(void) { Side_NewLine(&left); Side_NewLine(&right); } @@ -369,7 +369,7 @@ int Help_Option(struct OptionList *lst, struct Option *opt, int subprint, const Side_Print( &left, "%s", - (opt->avail & OTF_SUB_OPTIONS_OPTIONAL) ? ((lastparam->flags & PARAMFLAGS_8) ? "[=" : "[,") : ((lastparam->flags & PARAMFLAGS_8) ? "," : "=") + (opt->avail & OTF_SUB_OPTIONS_OPTIONAL) ? ((lastparam->flags & PARAMFLAGS_8) ? "[=" : "[,") : ((lastparam->flags & PARAMFLAGS_8) ? "=" : ",") ); } else if (!(opt->avail & OTF_STICKY)) { if (opt->avail & OTF_SUB_OPTIONS_OPTIONAL) { @@ -397,8 +397,8 @@ int Help_Option(struct OptionList *lst, struct Option *opt, int subprint, const Side_Print(&left, "\t"); Side_Print(&right, "\t"); Help_Options(opt->sub, 1, ""); - Side_Print(&left, "\b"); Side_Print(&right, "\b"); + Side_Print(&left, "\b"); } else { Side_Print(&left, "\n"); Side_Print(&right, "\n"); @@ -465,7 +465,7 @@ void Help_Options(struct OptionList *lst, int subprint, const char *keyword) { HPrintF(helptext, "\n"); } -void Help_Usage() { +void Help_Usage(void) { Side_Print( &all, "\tGuide to help:\b" @@ -518,7 +518,7 @@ void Help_Usage() { Help_OutputSingle(&all); } -void Help_Null() { +void Help_Null(void) { Side_Print(&all, "%s [options, filenames...]\n\nExecute '%s %shelp' for more information.", OS_GetFileNamePtr(parseopts.args->argv[0]), @@ -528,7 +528,7 @@ void Help_Null() { Help_OutputSingle(&all); } -void Help_Init() { +void Help_Init(void) { short lb; short le; short rb; @@ -555,7 +555,7 @@ void Help_Line(char ch) { HPrintF(helptext, "%.*s\n", parseopts.ioCols - 1, line); } -void Help_Term() { +void Help_Term(void) { ShowTextHandle(0, helptext); DisposeHandle(helptext); } |