• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

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.

変更サマリ

差分

--- a/ChangeLog
+++ b/ChangeLog
@@ -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+
19 2013-10-08 Keith Marshall <keithmarshall@users.sourceforge.net>
210
311 Integrate XML validation tests into build infrastructure.
--- a/tests/xmlcheck.cpp
+++ b/tests/xmlcheck.cpp
@@ -32,7 +32,10 @@
3232 * arising from the use of this software.
3333 *
3434 */
35-#include <cstdio>
35+#define __STDC_FORMAT_MACROS 1
36+#include <inttypes.h> /* for PRIu64 */
37+
38+#include <cstdio> /* for fprintf() */
3639 #include <string>
3740 #include <memory> /* for std::auto_ptr */
3841 #include <cstddef> /* for std::size_t */
@@ -151,7 +154,7 @@ error_handler::handleError( const xercesc::DOMError& condition )
151154 * diagnostic message to emit.
152155 */
153156 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(),
155158 loc->getColumnNumber(), warn ? "WARNING" : "ERROR", msg
156159 );
157160 XMLString::release( &msg );