mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +03:00
Compiler: Ignore #pragma tabsize with non-positive argument.
Imported from SA-MP: 7f30a03f94
.
This commit is contained in:
parent
1b3b07d4d8
commit
b2442a2268
@ -1108,7 +1108,11 @@ static void parseoptions(int argc,char **argv,char *oname,char *ename,char *pnam
|
||||
skipinput=atoi(option_value(ptr));
|
||||
break;
|
||||
case 't':
|
||||
sc_tabsize=atoi(option_value(ptr));
|
||||
i=atoi(option_value(ptr));
|
||||
if (i>0)
|
||||
sc_tabsize=i;
|
||||
else
|
||||
about();
|
||||
break;
|
||||
case 'v':
|
||||
verbosity= isdigit(*option_value(ptr)) ? atoi(option_value(ptr)) : 2;
|
||||
|
@ -1131,7 +1131,8 @@ static int command(void)
|
||||
} else if (strcmp(str,"tabsize")==0) {
|
||||
cell val;
|
||||
preproc_expr(&val,NULL);
|
||||
sc_tabsize=(int)val;
|
||||
if (val>0)
|
||||
sc_tabsize=(int)val;
|
||||
} else if (strcmp(str,"align")==0) {
|
||||
sc_alignnext=TRUE;
|
||||
} else if (strcmp(str,"unused")==0) {
|
||||
|
Loading…
Reference in New Issue
Block a user