Merge branch 'next' of github.com:htacg/tidy-html5 into next

This commit is contained in:
Geoff McLane 2017-04-09 02:09:19 +02:00
commit d8839485a4
2 changed files with 804 additions and 519 deletions

File diff suppressed because it is too large Load diff

View file

@ -384,7 +384,7 @@ TidyMessageArgument TY_(getNextMessageArgument)( TidyMessageImpl message, TidyIt
TidyFormatParameterType TY_(getArgType)( TidyMessageImpl message, TidyMessageArgument* arg )
{
int argNum = (int)*arg;
int argNum = (int)(size_t)*arg;
assert( argNum <= message.argcount );
return message.arguments[argNum].type;
@ -393,7 +393,7 @@ TidyFormatParameterType TY_(getArgType)( TidyMessageImpl message, TidyMessageArg
ctmbstr TY_(getArgFormat)( TidyMessageImpl message, TidyMessageArgument* arg )
{
int argNum = (int)*arg;
int argNum = (int)(size_t)*arg;
assert( argNum <= message.argcount );
return message.arguments[argNum].format;
@ -402,7 +402,7 @@ ctmbstr TY_(getArgFormat)( TidyMessageImpl message, TidyMessageArgument* arg )
ctmbstr TY_(getArgValueString)( TidyMessageImpl message, TidyMessageArgument* arg )
{
int argNum = (int)*arg;
int argNum = (int)(size_t)*arg;
assert( argNum <= message.argcount );
assert( message.arguments[argNum].type == tidyFormatType_STRING);
@ -412,7 +412,7 @@ ctmbstr TY_(getArgValueString)( TidyMessageImpl message, TidyMessageArgument* ar
uint TY_(getArgValueUInt)( TidyMessageImpl message, TidyMessageArgument* arg )
{
int argNum = (int)*arg;
int argNum = (int)(size_t)*arg;
assert( argNum <= message.argcount );
assert( message.arguments[argNum].type == tidyFormatType_UINT);
@ -422,7 +422,7 @@ uint TY_(getArgValueUInt)( TidyMessageImpl message, TidyMessageArgument* arg )
int TY_(getArgValueInt)( TidyMessageImpl message, TidyMessageArgument* arg )
{
int argNum = (int)*arg;
int argNum = (int)(size_t)*arg;
assert( argNum <= message.argcount );
assert( message.arguments[argNum].type == tidyFormatType_INT);
@ -432,7 +432,7 @@ int TY_(getArgValueInt)( TidyMessageImpl message, TidyMessageArgument* arg )
double TY_(getArgValueDouble)( TidyMessageImpl message, TidyMessageArgument* arg )
{
int argNum = (int)*arg;
int argNum = (int)(size_t)*arg;
assert( argNum <= message.argcount );
assert( message.arguments[argNum].type == tidyFormatType_DOUBLE);