-
Notifications
You must be signed in to change notification settings - Fork 82
Add ".pwn" to the official list of extensions. #701
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
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 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plungequalifiedfile(incfname,1); /* parse implicit include file (again) */ | |
plungequalifiedfile(incfname,TRUE); /* parse implicit include file (again) */ |
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: