mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-12 07:34:50 +00:00
Remove isconst from FCompileContext.
- It's not used anymore, so keeping it around is pointless.
This commit is contained in:
parent
58f088c1ab
commit
09c902ce55
2 changed files with 5 additions and 7 deletions
|
@ -62,13 +62,11 @@ struct FCompileContext
|
|||
{
|
||||
PClassActor *cls;
|
||||
bool lax;
|
||||
bool isconst;
|
||||
|
||||
FCompileContext(PClassActor *_cls = NULL, bool _lax = false, bool _isconst = false)
|
||||
FCompileContext(PClassActor *_cls = NULL, bool _lax = false)
|
||||
{
|
||||
cls = _cls;
|
||||
lax = _lax;
|
||||
isconst = _isconst;
|
||||
}
|
||||
|
||||
PSymbol *FindInClass(FName identifier)
|
||||
|
|
|
@ -208,7 +208,7 @@ static void ParseConstant (FScanner &sc, PSymbolTable *symt, PClassActor *cls)
|
|||
FxExpression *expr = ParseExpression (sc, cls);
|
||||
sc.MustGetToken(';');
|
||||
|
||||
FCompileContext ctx(cls, true, true);
|
||||
FCompileContext ctx(cls, true);
|
||||
expr = expr->Resolve(ctx);
|
||||
if (!expr->isConstant())
|
||||
{
|
||||
|
@ -266,7 +266,7 @@ static void ParseEnum (FScanner &sc, PSymbolTable *symt, PClassActor *cls)
|
|||
if (sc.CheckToken('='))
|
||||
{
|
||||
FxExpression *expr = ParseExpression (sc, cls);
|
||||
FCompileContext ctx(cls, true, true);
|
||||
FCompileContext ctx(cls, true);
|
||||
expr = expr->Resolve(ctx);
|
||||
if (!expr->isConstant())
|
||||
{
|
||||
|
@ -355,7 +355,7 @@ static void ParseNativeVariable (FScanner &sc, PSymbolTable *symt, PClassActor *
|
|||
if (sc.CheckToken('['))
|
||||
{
|
||||
FxExpression *expr = ParseExpression (sc, cls);
|
||||
FCompileContext ctx(cls, true, true);
|
||||
FCompileContext ctx(cls, true);
|
||||
expr = expr->Resolve(ctx);
|
||||
if (!expr->isConstant())
|
||||
{
|
||||
|
@ -428,7 +428,7 @@ static void ParseUserVariable (FScanner &sc, PSymbolTable *symt, PClassActor *cl
|
|||
if (sc.CheckToken('['))
|
||||
{
|
||||
FxExpression *expr = ParseExpression(sc, cls);
|
||||
FCompileContext ctx(cls, true, true);
|
||||
FCompileContext ctx(cls, true);
|
||||
int maxelems;
|
||||
expr = expr->Resolve(ctx);
|
||||
if (!expr->isConstant())
|
||||
|
|
Loading…
Reference in a new issue