Changeset 94044 in webkit
- Timestamp:
- Aug 29, 2011, 10:01:47 PM (15 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
-
JavaScriptCore/ChangeLog (modified) (1 diff)
-
JavaScriptCore/wtf/Platform.h (modified) (1 diff)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/xml/parser/XMLDocumentParserLibxml2.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r94035 r94044 1 2011-08-29 Daniel Bates <dbates@webkit.org> 2 3 Add HAVE(VASPRINTF) macro to test for vasprintf() support 4 https://bugs.webkit.org/show_bug.cgi?id=67156 5 6 Reviewed by Darin Adler. 7 8 Encapsulate testing of vasprintf() support in a HAVE macro 9 instead of hardcoding the list of supported/unsupported 10 compilers at the call site. 11 12 * wtf/Platform.h: 13 1 14 2011-08-29 Mark Hahnenberg <mhahnenberg@apple.com> 2 15 -
trunk/Source/JavaScriptCore/wtf/Platform.h
r93950 r94044 682 682 #endif 683 683 684 #if !defined(HAVE_VASPRINTF) 685 #if !COMPILER(MSVC) && !COMPILER(RVCT) && !COMPILER(MINGW) 686 #define HAVE_VASPRINTF 1 687 #endif 688 #endif 689 684 690 #if !defined(HAVE_STRNSTR) 685 691 #if OS(DARWIN) || OS(FREEBSD) -
trunk/Source/WebCore/ChangeLog
r94041 r94044 1 2011-08-29 Daniel Bates <dbates@webkit.org> 2 3 Add HAVE(VASPRINTF) macro to test for vasprintf() support 4 https://bugs.webkit.org/show_bug.cgi?id=67156 5 6 Reviewed by Darin Adler. 7 8 * xml/parser/XMLDocumentParserLibxml2.cpp: 9 (WebCore::XMLDocumentParser::error): Modified to use HAVE(VASPRINTF). 10 1 11 2011-08-29 Yuta Kitamura <yutak@chromium.org> 2 12 -
trunk/Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp
r93638 r94044 939 939 return; 940 940 941 #if COMPILER(MSVC) || COMPILER(RVCT) || COMPILER(MINGW) 941 #if HAVE(VASPRINTF) 942 char* m; 943 if (vasprintf(&m, message, args) == -1) 944 return; 945 #else 942 946 char m[1024]; 943 947 vsnprintf(m, sizeof(m) - 1, message, args); 944 #else945 char* m;946 if (vasprintf(&m, message, args) == -1)947 return;948 948 #endif 949 949 … … 953 953 handleError(type, m, lineNumber(), columnNumber()); 954 954 955 #if !COMPILER(MSVC) && !COMPILER(RVCT) && !COMPILER(MINGW)955 #if HAVE(VASPRINTF) 956 956 free(m); 957 957 #endif
Note:
See TracChangeset
for help on using the changeset viewer.