mirror of
https://github.com/alliedmodders/sourcemod.git
synced 2025-12-07 18:38:37 +00:00
Quell MSVC C99 bugs.
This commit is contained in:
parent
f2e166c592
commit
1e5213d43f
@ -3550,6 +3550,8 @@ static void domethodmap(LayoutSpec spec)
|
|||||||
{
|
{
|
||||||
int val;
|
int val;
|
||||||
char *str;
|
char *str;
|
||||||
|
LayoutSpec old_spec;
|
||||||
|
methodmap_t *parent = NULL;
|
||||||
const char *spectype = layout_spec_name(spec);
|
const char *spectype = layout_spec_name(spec);
|
||||||
|
|
||||||
// methodmap ::= "methodmap" symbol ("<" symbol)? "{" methodmap-body "}"
|
// methodmap ::= "methodmap" symbol ("<" symbol)? "{" methodmap-body "}"
|
||||||
@ -3561,12 +3563,10 @@ static void domethodmap(LayoutSpec spec)
|
|||||||
if (!isupper(*mapname))
|
if (!isupper(*mapname))
|
||||||
error(109, spectype);
|
error(109, spectype);
|
||||||
|
|
||||||
LayoutSpec old_spec = deduce_layout_spec_by_name(mapname);
|
old_spec = deduce_layout_spec_by_name(mapname);
|
||||||
if (!can_redef_layout_spec(spec, old_spec))
|
if (!can_redef_layout_spec(spec, old_spec))
|
||||||
error(110, mapname, layout_spec_name(old_spec));
|
error(110, mapname, layout_spec_name(old_spec));
|
||||||
|
|
||||||
methodmap_t *parent = NULL;
|
|
||||||
|
|
||||||
if (matchtoken('<')) {
|
if (matchtoken('<')) {
|
||||||
if (lex(&val, &str) != tSYMBOL) {
|
if (lex(&val, &str) != tSYMBOL) {
|
||||||
error(93);
|
error(93);
|
||||||
|
|||||||
@ -242,8 +242,6 @@ static void check_empty(const unsigned char *lptr)
|
|||||||
static void doinclude(int silent)
|
static void doinclude(int silent)
|
||||||
{
|
{
|
||||||
char name[_MAX_PATH];
|
char name[_MAX_PATH];
|
||||||
char symname[sNAMEMAX+1];
|
|
||||||
char *ptr;
|
|
||||||
char c;
|
char c;
|
||||||
int i, result;
|
int i, result;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user