Small refactorizations:

- Improved formatting of unhandled-char-constant message (Side-effect: fixes #7206)
- Replace nr="-1" by nr="any" in windows.cfg
This commit is contained in:
PKEuS 2015-12-10 15:47:46 +01:00
parent 61da95010c
commit 37572dc109
2 changed files with 3 additions and 3 deletions

View File

@ -1771,7 +1771,7 @@ HFONT CreateFont(
--> -->
<function name="CreateFont"> <function name="CreateFont">
<noreturn>false</noreturn> <noreturn>false</noreturn>
<arg nr="-1"> <arg nr="any">
<not-uninit/> <not-uninit/>
</arg> </arg>
<arg nr="14"/> <arg nr="14"/>

View File

@ -400,7 +400,7 @@ MathLib::bigint MathLib::characterLiteralToLongNumber(const std::string& str)
c = str[1]; c = str[1];
break; break;
default: default:
throw InternalError(0, "Internal Error. MathLib::toLongNumber: Unhandled char constant " + str); throw InternalError(0, "Internal Error. MathLib::toLongNumber: Unhandled char constant '" + str + "'.");
} }
return c & 0xff; return c & 0xff;
case 2: case 2:
@ -413,7 +413,7 @@ MathLib::bigint MathLib::characterLiteralToLongNumber(const std::string& str)
} }
} }
throw InternalError(0, "Internal Error. MathLib::toLongNumber: Unhandled char constant " + str); throw InternalError(0, "Internal Error. MathLib::toLongNumber: Unhandled char constant '" + str + "'.");
} }
MathLib::bigint MathLib::toLongNumber(const std::string & str) MathLib::bigint MathLib::toLongNumber(const std::string & str)