summaryrefslogtreecommitdiff
path: root/unsorted/Option.c
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-11 22:29:53 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-11 22:29:53 +0000
commit0bec4f557a96e1a40437cf5af20cc78a5eec8a63 (patch)
treec1e05ec804c43aa5a8f5f21b0ed02d0587d29563 /unsorted/Option.c
parentaec1b8dddc68ecb8288ec6132932e4c7b4bca09f (diff)
downloadMWCC-0bec4f557a96e1a40437cf5af20cc78a5eec8a63.tar.gz
MWCC-0bec4f557a96e1a40437cf5af20cc78a5eec8a63.zip
getting closer
Diffstat (limited to '')
-rw-r--r--unsorted/Option.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/unsorted/Option.c b/unsorted/Option.c
index 410c807..c1c8e91 100644
--- a/unsorted/Option.c
+++ b/unsorted/Option.c
@@ -69,14 +69,14 @@ static void Option_PopOpt(char *optname) {
free(os->e.o.curopt);
}
-static void Option_PopList() {
+static void Option_PopList(void) {
Args_Pop(ARGFLAG_1);
}
-void Args_InitStack() {
+void Args_InitStack(void) {
oStackPtr = 0;
}
-int Args_StackSize() {
+int Args_StackSize(void) {
return oStackPtr;
}
@@ -187,7 +187,7 @@ void Args_AddToToolArgs(anon0_50 *ta) {
Arg_AddToToolArgs(ta, 2, nptr);
}
-void Options_Init() {
+void Options_Init(void) {
numoptionlists = 0;
maxlegalset = 0;
numlegalset = 0;
@@ -212,11 +212,11 @@ void Options_Init() {
Args_InitStack();
}
-OptionList *Options_GetOptions() {
+OptionList *Options_GetOptions(void) {
return &legalset;
}
-void Options_SortOptions() {
+void Options_SortOptions(void) {
int r;
if (numinternalset > 0) {
@@ -341,7 +341,7 @@ int Option_ForTool(Option *opt, int which) {
return !which || (opt->avail & which);
}
-int Option_ThisTool() {
+int Option_ThisTool(void) {
return (pTool->TYPE == CWDROPINCOMPILERTYPE) ? OTF_TOOL_COMPILER : OTF_TOOL_LINKER;
}
@@ -817,7 +817,7 @@ static int Options_DoParse(OptionList *search, int flags) {
parseopts.possibleFiles++;
haderrors = 0;
}
- parsedany = 1;
+ parsedany++;
if (haderrors)
failed = 1;
else
@@ -1126,7 +1126,7 @@ int Option_Help(const char *opt) {
return ret;
}
-int Options_DisplayHelp() {
+int Options_DisplayHelp(void) {
if (parseopts.helpFlags & HELPFLAGS_1)
return Option_Help(parseopts.helpKey);
else