From d374107fb666fae2cf257046dc30ed3cb062ec72 Mon Sep 17 00:00:00 2001 From: superp00t Date: Tue, 15 Aug 2023 02:40:31 -0400 Subject: [PATCH] fix(command): declare-forward ProcessFile() --- storm/Command.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/storm/Command.cpp b/storm/Command.cpp index 4f86c4c..c81f5e2 100644 --- a/storm/Command.cpp +++ b/storm/Command.cpp @@ -247,7 +247,7 @@ static int32_t ProcessFlags(const char* string, PROCESSING* processing, CMDERROR int32_t datachars; CMDDEF* ptr = nullptr; auto strlength = SStrLen(string); - auto lastflaglength = std::max(SStrLen(lastflag), 1); + auto lastflaglength = std::max(SStrLen(lastflag), size_t(1)); while (lastflaglength--) { if (strlength + lastflaglength < 256) { @@ -291,6 +291,8 @@ static int32_t ProcessFlags(const char* string, PROCESSING* processing, CMDERROR 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) { if (string[0] == '@' && !quoted) { return ProcessFile(&string[1], processing, nextarg, extracallback, errorcallback);