|
|
@@ -164,36 +164,36 @@ void GetScriptingCommands(cmState* state)
|
|
|
state->AddBuiltinCommand("string", cmStringCommand);
|
|
|
state->AddBuiltinCommand("unset", cmUnsetCommand);
|
|
|
|
|
|
- state->AddUnexpectedCommand(
|
|
|
+ state->AddUnexpectedFlowControlCommand(
|
|
|
"else",
|
|
|
"An ELSE command was found outside of a proper "
|
|
|
"IF ENDIF structure. Or its arguments did not match "
|
|
|
"the opening IF command.");
|
|
|
- state->AddUnexpectedCommand(
|
|
|
+ state->AddUnexpectedFlowControlCommand(
|
|
|
"elseif",
|
|
|
"An ELSEIF command was found outside of a proper "
|
|
|
"IF ENDIF structure.");
|
|
|
- state->AddUnexpectedCommand(
|
|
|
+ state->AddUnexpectedFlowControlCommand(
|
|
|
"endforeach",
|
|
|
"An ENDFOREACH command was found outside of a proper "
|
|
|
"FOREACH ENDFOREACH structure. Or its arguments did "
|
|
|
"not match the opening FOREACH command.");
|
|
|
- state->AddUnexpectedCommand(
|
|
|
+ state->AddUnexpectedFlowControlCommand(
|
|
|
"endfunction",
|
|
|
"An ENDFUNCTION command was found outside of a proper "
|
|
|
"FUNCTION ENDFUNCTION structure. Or its arguments did not "
|
|
|
"match the opening FUNCTION command.");
|
|
|
- state->AddUnexpectedCommand(
|
|
|
+ state->AddUnexpectedFlowControlCommand(
|
|
|
"endif",
|
|
|
"An ENDIF command was found outside of a proper "
|
|
|
"IF ENDIF structure. Or its arguments did not match "
|
|
|
"the opening IF command.");
|
|
|
- state->AddUnexpectedCommand(
|
|
|
+ state->AddUnexpectedFlowControlCommand(
|
|
|
"endmacro",
|
|
|
"An ENDMACRO command was found outside of a proper "
|
|
|
"MACRO ENDMACRO structure. Or its arguments did not "
|
|
|
"match the opening MACRO command.");
|
|
|
- state->AddUnexpectedCommand(
|
|
|
+ state->AddUnexpectedFlowControlCommand(
|
|
|
"endwhile",
|
|
|
"An ENDWHILE command was found outside of a proper "
|
|
|
"WHILE ENDWHILE structure. Or its arguments did not "
|