[Aptitude-svn-commit] r3906 - in branches/aptitude-0.3/aptitude: .
src/vscreen
Daniel Burrows
dburrows at costa.debian.org
Wed Aug 17 23:05:28 UTC 2005
Author: dburrows
Date: Wed Aug 17 23:05:24 2005
New Revision: 3906
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/vscreen/transcode.h
Log:
More format_arg specifiers added.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Wed Aug 17 23:05:24 2005
@@ -1,5 +1,10 @@
2005-08-17 Daniel Burrows <dburrows at debian.org>
+ * src/vscreen/transcode.h:
+
+ Add format_arg specifiers that are presently useless since gcc
+ doesn't know about wide strings.
+
* src/aptitude.h:
Add a format_arg attribute to P_.
Modified: branches/aptitude-0.3/aptitude/src/vscreen/transcode.h
==============================================================================
--- branches/aptitude-0.3/aptitude/src/vscreen/transcode.h (original)
+++ branches/aptitude-0.3/aptitude/src/vscreen/transcode.h Wed Aug 17 23:05:24 2005
@@ -65,6 +65,9 @@
* \param errf the error handler, or \b null to use the default
* handler (transcode_mbtow_err).
*/
+#ifdef __GNUG__
+__attribute__ ((format_arg(1)))
+#endif
std::wstring transcode(const std::string &s,
const char *encoding=NULL,
std::wstring (*errf)(int error,
@@ -83,6 +86,9 @@
* \param errf the error handler, or \b null to use the default
* handler (transcode_mbtow_err).
*/
+#ifdef __GNUG__
+__attribute__ ((format_arg(1)))
+#endif
std::wstring transcode(const char *s,
const char *encoding=NULL,
std::wstring (*errf)(int error,
@@ -136,6 +142,9 @@
* \param errf the error handler, or \b null to use the default
* handler (transcode_mbtow_err).
*/
+#ifdef __GNUG__
+__attribute__ ((format_arg(1)))
+#endif
std::string transcode(const std::wstring &s,
const char *encoding=NULL,
std::string (*errf)(int error,
@@ -154,6 +163,9 @@
* \param errf the error handler, or \b null to use the default
* handler (transcode_mbtow_err).
*/
+#ifdef __GNUG__
+__attribute__ ((format_arg(1)))
+#endif
std::string transcode(const wchar_t *s,
const char *encoding=NULL,
std::string (*errf)(int error,
More information about the Aptitude-svn-commit
mailing list