fix(command): declare-forward ProcessFile()

This commit is contained in:
phaneron 2023-08-15 02:40:31 -04:00
parent 1a3763c78c
commit d374107fb6

View file

@ -247,7 +247,7 @@ static int32_t ProcessFlags(const char* string, PROCESSING* processing, CMDERROR
int32_t datachars; int32_t datachars;
CMDDEF* ptr = nullptr; CMDDEF* ptr = nullptr;
auto strlength = SStrLen(string); auto strlength = SStrLen(string);
auto lastflaglength = std::max(SStrLen(lastflag), 1); auto lastflaglength = std::max(SStrLen(lastflag), size_t(1));
while (lastflaglength--) { while (lastflaglength--) {
if (strlength + lastflaglength < 256) { if (strlength + lastflaglength < 256) {
@ -291,6 +291,8 @@ static int32_t ProcessFlags(const char* string, PROCESSING* processing, CMDERROR
return 1; return 1;
} }
static int32_t ProcessFile(const char* filename, PROCESSING* processing, CMDDEF** nextarg, CMDEXTRACALLBACKFCN extracallback, CMDERRORCALLBACKFCN errorcallback);
static int32_t ProcessToken(const char* string, int32_t quoted, PROCESSING* processing, CMDDEF** nextarg, CMDEXTRACALLBACKFCN extracallback, CMDERRORCALLBACKFCN errorcallback) { static int32_t ProcessToken(const char* string, int32_t quoted, PROCESSING* processing, CMDDEF** nextarg, CMDEXTRACALLBACKFCN extracallback, CMDERRORCALLBACKFCN errorcallback) {
if (string[0] == '@' && !quoted) { if (string[0] == '@' && !quoted) {
return ProcessFile(&string[1], processing, nextarg, extracallback, errorcallback); return ProcessFile(&string[1], processing, nextarg, extracallback, errorcallback);