XML catalogue of packages which are available for installation, using the mingw-get installer.
リビジョン | df204a194596f2827650b204326da220d6bda530 (tree) |
---|---|
日時 | 2013-10-12 15:28:22 |
作者 | Keith Marshall <keithmarshall@user...> |
コミッター | Keith Marshall |
Correct an XML validation tool format specification error.
@@ -1,3 +1,11 @@ | ||
1 | +2013-10-12 Keith Marshall <keithmarshall@users.sourceforge.net> | |
2 | + | |
3 | + Correct an XML validation tool format specification error. | |
4 | + | |
5 | + * tests/xmlchec.cpp (error_handler::handleError): Need PRIu64 format | |
6 | + for printing loc->getLineNumber() and loc->getColumnNumber(); define | |
7 | + __STDC_FORMAT_MACROS as 1, and include inttypes.h, to use it. | |
8 | + | |
1 | 9 | 2013-10-08 Keith Marshall <keithmarshall@users.sourceforge.net> |
2 | 10 | |
3 | 11 | Integrate XML validation tests into build infrastructure. |
@@ -32,7 +32,10 @@ | ||
32 | 32 | * arising from the use of this software. |
33 | 33 | * |
34 | 34 | */ |
35 | -#include <cstdio> | |
35 | +#define __STDC_FORMAT_MACROS 1 | |
36 | +#include <inttypes.h> /* for PRIu64 */ | |
37 | + | |
38 | +#include <cstdio> /* for fprintf() */ | |
36 | 39 | #include <string> |
37 | 40 | #include <memory> /* for std::auto_ptr */ |
38 | 41 | #include <cstddef> /* for std::size_t */ |
@@ -151,7 +154,7 @@ error_handler::handleError( const xercesc::DOMError& condition ) | ||
151 | 154 | * diagnostic message to emit. |
152 | 155 | */ |
153 | 156 | char* msg = XMLString::transcode( condition.getMessage() ); |
154 | - fprintf( stderr, "%d:%d: %s: %s\n", loc->getLineNumber(), | |
157 | + fprintf( stderr, "%" PRIu64 ":%" PRIu64 ": %s: %s\n", loc->getLineNumber(), | |
155 | 158 | loc->getColumnNumber(), warn ? "WARNING" : "ERROR", msg |
156 | 159 | ); |
157 | 160 | XMLString::release( &msg ); |