mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
fix(command): declare-forward ProcessFile()
This commit is contained in:
parent
1a3763c78c
commit
d374107fb6
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue