Changeset 28028 in webkit
- Timestamp:
- Nov 25, 2007 6:12:37 PM (16 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r28025 r28028 1 2007-11-24 Laszlo Gombos <laszlo.gombos@gmail.com> 2 3 Reviewed by Sam Weinig. 4 5 Add printf format attribute to several functions. Use the the new WTF_ATTRIBUTE_PRINTF define. 6 7 * dom/XMLTokenizer.cpp: 8 * dom/XMLTokenizer.h: 9 * platform/DeprecatedString.h: 10 * platform/PlatformString.h: 11 1 12 2007-11-25 Dan Bernstein <mitz@apple.com> 2 13 -
trunk/WebCore/dom/XMLTokenizer.cpp
r27936 r28028 1066 1066 } 1067 1067 1068 WTF_ATTRIBUTE_PRINTF(2, 3) 1068 1069 static void warningHandler(void* closure, const char* message, ...) 1069 1070 { … … 1074 1075 } 1075 1076 1077 WTF_ATTRIBUTE_PRINTF(2, 3) 1076 1078 static void fatalErrorHandler(void* closure, const char* message, ...) 1077 1079 { … … 1082 1084 } 1083 1085 1086 WTF_ATTRIBUTE_PRINTF(2, 3) 1084 1087 static void normalErrorHandler(void* closure, const char* message, ...) 1085 1088 { … … 1551 1554 } 1552 1555 1556 WTF_ATTRIBUTE_PRINTF(2, 3) 1553 1557 static void balancedWarningHandler(void* closure, const char* message, ...) 1554 1558 { -
trunk/WebCore/dom/XMLTokenizer.h
r27936 r28028 85 85 #ifndef USE_QXMLSTREAM 86 86 // callbacks from parser SAX 87 void error(ErrorType, const char* message, va_list args) ;87 void error(ErrorType, const char* message, va_list args) WTF_ATTRIBUTE_PRINTF(3, 0); 88 88 void startElementNs(const xmlChar* xmlLocalName, const xmlChar* xmlPrefix, const xmlChar* xmlURI, int nb_namespaces, 89 89 const xmlChar** namespaces, int nb_attributes, int nb_defaulted, const xmlChar** libxmlAttributes); -
trunk/WebCore/platform/DeprecatedString.h
r27187 r28028 386 386 DeprecatedString &setNum(double); 387 387 388 DeprecatedString& format(const char *, ...) 389 #if __GNUC__ 390 __attribute__ ((format (printf, 2, 3))) 391 #endif 392 ; 388 DeprecatedString& format(const char *, ...) WTF_ATTRIBUTE_PRINTF(2, 3); 393 389 394 390 DeprecatedString &append(const DeprecatedString &); -
trunk/WebCore/platform/PlatformString.h
r27363 r28028 134 134 static String number(double); 135 135 136 static String format(const char *, ...) 137 #if __GNUC__ 138 __attribute__ ((format (printf, 1, 2))) 139 #endif 140 ; 136 static String format(const char *, ...) WTF_ATTRIBUTE_PRINTF(1, 2); 141 137 142 138 Vector<String> split(const String& separator, bool allowEmptyEntries = false) const;
Note: See TracChangeset
for help on using the changeset viewer.