Conversation
It is used by almost all scripts, so why shouldn't it be officially supported?
| SC_FUNC stkitem popstk(void); | ||
| SC_FUNC void clearstk(void); | ||
| SC_FUNC int plungequalifiedfile(char *name); /* explicit path included */ | ||
| SC_FUNC int plungequalifiedfile(char *name,char new_extensions); /* explicit path included */ |
Contributor
There was a problem hiding this comment.
Suggested change
| SC_FUNC int plungequalifiedfile(char *name,char new_extensions); /* explicit path included */ | |
| SC_FUNC int plungequalifiedfile(char *name,int new_extensions); /* explicit path included */ |
In this codebase boolean values are usually stored in variables of type int. Not sure why, but still...
| } | ||
|
|
||
| SC_FUNC int plungequalifiedfile(char *name) | ||
| SC_FUNC int plungequalifiedfile(char *name,char new_extensions) |
Contributor
There was a problem hiding this comment.
Suggested change
| SC_FUNC int plungequalifiedfile(char *name,char new_extensions) | |
| SC_FUNC int plungequalifiedfile(char *name,int new_extensions) |
|
|
||
| if (try_currentpath) { | ||
| result=plungequalifiedfile(name); | ||
| result=plungequalifiedfile(name,0); |
Contributor
There was a problem hiding this comment.
Suggested change
| result=plungequalifiedfile(name,0); | |
| result=plungequalifiedfile(name,FALSE); |
| strlcpy(path,inpfname,len+1); | ||
| strlcat(path,name,arraysize(path)); | ||
| result=plungequalifiedfile(path); | ||
| result=plungequalifiedfile(path,1); |
Contributor
There was a problem hiding this comment.
Suggested change
| result=plungequalifiedfile(path,1); | |
| result=plungequalifiedfile(path,TRUE); |
| strlcpy(path,ptr,arraysize(path)); | ||
| strlcat(path,name,arraysize(path)); | ||
| result=plungequalifiedfile(path); | ||
| result=plungequalifiedfile(path,1); |
Contributor
There was a problem hiding this comment.
Suggested change
| result=plungequalifiedfile(path,1); | |
| result=plungequalifiedfile(path,TRUE); |
| plungefile(incfname,FALSE,TRUE); /* parse "default.inc" */ | ||
| } else { | ||
| if (!plungequalifiedfile(incfname)) /* parse "prefix" include file */ | ||
| if (!plungequalifiedfile(incfname,1)) /* parse "prefix" include file */ |
Contributor
There was a problem hiding this comment.
Suggested change
| if (!plungequalifiedfile(incfname,1)) /* parse "prefix" include file */ | |
| if (!plungequalifiedfile(incfname,TRUE)) /* parse "prefix" include file */ |
| plungefile(incfname,FALSE,TRUE); /* parse "default.inc" (again) */ | ||
| else | ||
| plungequalifiedfile(incfname); /* parse implicit include file (again) */ | ||
| plungequalifiedfile(incfname,1); /* parse implicit include file (again) */ |
Contributor
There was a problem hiding this comment.
Suggested change
| plungequalifiedfile(incfname,1); /* parse implicit include file (again) */ | |
| plungequalifiedfile(incfname,TRUE); /* parse implicit include file (again) */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Adds
".pwn"to the list of include extensions. It is used by almost all scripts, so why shouldn't it be officially supported?Which issue(s) this PR fixes:
Fixes #
What kind of pull this is:
Additional Documentation: