summaryrefslogtreecommitdiff
path: root/unsorted/Arguments.c
diff options
context:
space:
mode:
Diffstat (limited to 'unsorted/Arguments.c')
-rw-r--r--unsorted/Arguments.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/unsorted/Arguments.c b/unsorted/Arguments.c
index c427a5a..663d211 100644
--- a/unsorted/Arguments.c
+++ b/unsorted/Arguments.c
@@ -96,7 +96,7 @@ static void Arg_Setup(int argc, char **argv) {
margind = 1;
}
-static void Arg_SkipRespFileWS() {
+static void Arg_SkipRespFileWS(void) {
restart:
while (respfile[0] && isspace(respfile[0]))
++respfile;
@@ -139,12 +139,12 @@ static unsigned char Arg_OpenRespFile(const char *name) {
}
}
-static void Arg_CloseRespFile() {
+static void Arg_CloseRespFile(void) {
in_response_file = 0;
OS_FreeFileHandle(&respfilehandle);
}
-static char *Arg_GetRespFileToken() {
+static char *Arg_GetRespFileToken(void) {
char *start;
char *ptr;
int quoting;
@@ -211,7 +211,7 @@ restart:
return ret;
}
-static unsigned char Arg_GotMore() {
+static unsigned char Arg_GotMore(void) {
if (!in_response_file)
return margind < margc;
else if (respfile[0])
@@ -220,7 +220,7 @@ static unsigned char Arg_GotMore() {
return margind < margc;
}
-static void Arg_Parse() {
+static void Arg_Parse(void) {
unsigned char isOpt;
unsigned char isList;
char *arg;
@@ -385,7 +385,7 @@ void Arg_Init(int theargc, char **theargv) {
}
}
-void Arg_Terminate() {
+void Arg_Terminate(void) {
ArgToken *cur;
while (numargtoks > 0) {
@@ -399,7 +399,7 @@ void Arg_Terminate() {
maxargtoks = 0;
}
-void Arg_Reset() {
+void Arg_Reset(void) {
scantok = 0;
}
@@ -419,27 +419,27 @@ void Arg_Stop(ArgToken *where) {
scantok = numargtoks - 2;
}
-ArgToken *Arg_PeekToken() {
+ArgToken *Arg_PeekToken(void) {
if (scantok >= numargtoks)
return 0;
else
return &argtoks[scantok];
}
-ArgToken *Arg_UsedToken() {
+ArgToken *Arg_UsedToken(void) {
if (scantok < numargtoks)
scantok++;
return Arg_PeekToken();
}
-int Arg_IsEmpty() {
+int Arg_IsEmpty(void) {
ArgToken *tok;
tok = Arg_PeekToken();
return (tok == 0 || tok->val == ATK_END);
}
-ArgToken *Arg_GetToken() {
+ArgToken *Arg_GetToken(void) {
ArgToken *ret;
ret = Arg_PeekToken();
@@ -448,7 +448,7 @@ ArgToken *Arg_GetToken() {
return ret;
}
-ArgToken *Arg_UndoToken() {
+ArgToken *Arg_UndoToken(void) {
if (scantok > 0) {
scantok--;
return Arg_PeekToken();