Title: [164443] trunk/Source/_javascript_Core
- Revision
- 164443
- Author
- [email protected]
- Date
- 2014-02-20 12:57:20 -0800 (Thu, 20 Feb 2014)
Log Message
Replace uses of deprecated POSIX index() with strchr() in ObjcRuntimeExtras.h
https://bugs.webkit.org/show_bug.cgi?id=128610
Reviewed by Anders Carlsson.
index() is deprecated in favor of strchr() so we should use the latter.
* API/JSWrapperMap.mm:
(selectorToPropertyName):
* API/ObjcRuntimeExtras.h:
(parseObjCType):
Modified Paths
Diff
Modified: trunk/Source/_javascript_Core/API/JSWrapperMap.mm (164442 => 164443)
--- trunk/Source/_javascript_Core/API/JSWrapperMap.mm 2014-02-20 20:37:03 UTC (rev 164442)
+++ trunk/Source/_javascript_Core/API/JSWrapperMap.mm 2014-02-20 20:57:20 UTC (rev 164443)
@@ -59,7 +59,7 @@
static NSString *selectorToPropertyName(const char* start)
{
// Use 'index' to check for colons, if there are none, this is easy!
- const char* firstColon = index(start, ':');
+ const char* firstColon = strchr(start, ':');
if (!firstColon)
return [NSString stringWithUTF8String:start];
Modified: trunk/Source/_javascript_Core/API/ObjcRuntimeExtras.h (164442 => 164443)
--- trunk/Source/_javascript_Core/API/ObjcRuntimeExtras.h 2014-02-20 20:37:03 UTC (rev 164442)
+++ trunk/Source/_javascript_Core/API/ObjcRuntimeExtras.h 2014-02-20 20:57:20 UTC (rev 164443)
@@ -193,8 +193,8 @@
if (*position == '"') {
const char* begin = position + 1;
- const char* protocolPosition = index(begin, '<');
- const char* endOfType = index(begin, '"');
+ const char* protocolPosition = strchr(begin, '<');
+ const char* endOfType = strchr(begin, '"');
position = endOfType + 1;
// There's no protocol involved in this type, so just handle the class name.
Modified: trunk/Source/_javascript_Core/ChangeLog (164442 => 164443)
--- trunk/Source/_javascript_Core/ChangeLog 2014-02-20 20:37:03 UTC (rev 164442)
+++ trunk/Source/_javascript_Core/ChangeLog 2014-02-20 20:57:20 UTC (rev 164443)
@@ -1,3 +1,17 @@
+2014-02-20 Mark Hahnenberg <[email protected]>
+
+ Replace uses of deprecated POSIX index() with strchr() in ObjcRuntimeExtras.h
+ https://bugs.webkit.org/show_bug.cgi?id=128610
+
+ Reviewed by Anders Carlsson.
+
+ index() is deprecated in favor of strchr() so we should use the latter.
+
+ * API/JSWrapperMap.mm:
+ (selectorToPropertyName):
+ * API/ObjcRuntimeExtras.h:
+ (parseObjCType):
+
2014-02-19 Filip Pizlo <[email protected]>
FTL should not emit stack overflow checks in leaf functions
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes