Skip to content

Commit e28ec72

Browse files
committed
Merge branch 'next' into issue-456
Continue WIP #456
2 parents 722a841 + e48b06b commit e28ec72

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

console/tidy.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ static FILE* errout = NULL;
3939
#if defined(_WIN32)
4040
/** On Windows, we will store the original code page here. */
4141
static uint win_cp; /* original Windows code page */
42+
#if (defined(_MSC_VER) && (_MSC_VER < 1900))
43+
#define snprintf _snprintf
44+
#endif
4245
#endif
4346

4447

@@ -1529,8 +1532,8 @@ static void printXMLCrossRefEqConsole(TidyDoc tdoc, /**< The Tidy document. */
15291532

15301533
if ( hit )
15311534
{
1532-
localHit = *hit;
15331535
tmbstr localName;
1536+
localHit = *hit;
15341537
localize_option_names( &localHit );
15351538
printf(" <eqconsole>%s</eqconsole>\n", localName = get_escaped_name(localHit.name1));
15361539
free((tmbstr)localHit.name1);
@@ -1882,12 +1885,12 @@ int main( int argc, char** argv )
18821885
TidyDoc tdoc = tidyCreate();
18831886
int status = 0;
18841887
tmbstr locale = NULL;
1885-
tidySetMessageCallback( tdoc, reportCallback); /* experimental group */
18861888

18871889
uint contentErrors = 0;
18881890
uint contentWarnings = 0;
18891891
uint accessWarnings = 0;
18901892

1893+
tidySetMessageCallback( tdoc, reportCallback); /* experimental group */
18911894
errout = stderr; /* initialize to stderr */
18921895

18931896
/* Set an atexit handler. */

src/message.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,9 +569,9 @@ void TY_(ReportAttrError)(TidyDocImpl* doc, Node *node, AttVal *av, uint code)
569569
/* lexer is not defined when this is called */
570570
void TY_(ReportBadArgument)( TidyDocImpl* doc, ctmbstr option )
571571
{
572+
TidyMessageImpl *message;
572573
assert( option != NULL );
573-
574-
TidyMessageImpl *message = TY_(tidyMessageCreate)( doc, STRING_MISSING_MALFORMED, TidyConfig, option );
574+
message = TY_(tidyMessageCreate)( doc, STRING_MISSING_MALFORMED, TidyConfig, option );
575575
messageOut( message );
576576
}
577577

version.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
5.5.30
2-
2017.05.29
1+
5.5.31
2+
2017.05.30

0 commit comments

Comments
 (0)