Fixed warnings about member initializers on Linux. Whatever.

This commit is contained in:
beard%netscape.com 2000-04-08 04:49:41 +00:00
Родитель 14a585783b
Коммит 1edba28c48
2 изменённых файлов: 16 добавлений и 14 удалений

Просмотреть файл

@ -436,22 +436,23 @@ namespace JavaScript {
virtual Label *getBreakLabel(ICodeGenerator *icg) { if (breakLabel == NULL) breakLabel = icg->getLabel(); return breakLabel; }
Register controlExpression;
InstructionStream *caseStatementsStream;
Label *defaultLabel;
InstructionStream *caseStatementsStream;
};
inline ICodeState::ICodeState(StateKind kind, ICodeGenerator *icg)
: stateKind(kind), breakLabel(NULL), continueLabel(NULL), registerBase(icg->getRegisterBase()) { }
: stateKind(kind), registerBase(icg->getRegisterBase()), breakLabel(NULL), continueLabel(NULL) { }
inline SwitchCodeState::SwitchCodeState(Register control, ICodeGenerator *icg)
: ICodeState(Switch_state, icg), controlExpression(control), defaultLabel(NULL), caseStatementsStream(icg->get_iCode()) {}
: ICodeState(Switch_state, icg), controlExpression(control), defaultLabel(NULL),
caseStatementsStream(icg->get_iCode()) {}
inline WhileCodeState::WhileCodeState(Label *conditionLabel, Label *bodyLabel, ICodeGenerator *icg)
: ICodeState(While_state, icg), whileCondition(conditionLabel), whileBody(bodyLabel),
whileExpressionStream(icg->get_iCode()) { }
: ICodeState(While_state, icg), whileCondition(conditionLabel), whileBody(bodyLabel),
whileExpressionStream(icg->get_iCode()) { }
inline ForCodeState::ForCodeState(Label *conditionLabel, Label *bodyLabel, ICodeGenerator *icg)
: ICodeState(For_state, icg), forCondition(conditionLabel), forBody(bodyLabel),
forConditionStream(icg->get_iCode()), forIncrementStream(icg->get_iCode()) { }
: ICodeState(For_state, icg), forCondition(conditionLabel), forBody(bodyLabel),
forConditionStream(icg->get_iCode()), forIncrementStream(icg->get_iCode()) { }
}
#endif

Просмотреть файл

@ -436,22 +436,23 @@ namespace JavaScript {
virtual Label *getBreakLabel(ICodeGenerator *icg) { if (breakLabel == NULL) breakLabel = icg->getLabel(); return breakLabel; }
Register controlExpression;
InstructionStream *caseStatementsStream;
Label *defaultLabel;
InstructionStream *caseStatementsStream;
};
inline ICodeState::ICodeState(StateKind kind, ICodeGenerator *icg)
: stateKind(kind), breakLabel(NULL), continueLabel(NULL), registerBase(icg->getRegisterBase()) { }
: stateKind(kind), registerBase(icg->getRegisterBase()), breakLabel(NULL), continueLabel(NULL) { }
inline SwitchCodeState::SwitchCodeState(Register control, ICodeGenerator *icg)
: ICodeState(Switch_state, icg), controlExpression(control), defaultLabel(NULL), caseStatementsStream(icg->get_iCode()) {}
: ICodeState(Switch_state, icg), controlExpression(control), defaultLabel(NULL),
caseStatementsStream(icg->get_iCode()) {}
inline WhileCodeState::WhileCodeState(Label *conditionLabel, Label *bodyLabel, ICodeGenerator *icg)
: ICodeState(While_state, icg), whileCondition(conditionLabel), whileBody(bodyLabel),
whileExpressionStream(icg->get_iCode()) { }
: ICodeState(While_state, icg), whileCondition(conditionLabel), whileBody(bodyLabel),
whileExpressionStream(icg->get_iCode()) { }
inline ForCodeState::ForCodeState(Label *conditionLabel, Label *bodyLabel, ICodeGenerator *icg)
: ICodeState(For_state, icg), forCondition(conditionLabel), forBody(bodyLabel),
forConditionStream(icg->get_iCode()), forIncrementStream(icg->get_iCode()) { }
: ICodeState(For_state, icg), forCondition(conditionLabel), forBody(bodyLabel),
forConditionStream(icg->get_iCode()), forIncrementStream(icg->get_iCode()) { }
}
#endif