Title: [227212] trunk/Source/WTF
- Revision
- 227212
- Author
- [email protected]
- Date
- 2018-01-19 10:09:23 -0800 (Fri, 19 Jan 2018)
Log Message
Update XPCSPI.h
https://bugs.webkit.org/show_bug.cgi?id=181827
rdar://problem/36393031
Reviewed by Daniel Bates.
* wtf/spi/darwin/XPCSPI.h:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (227211 => 227212)
--- trunk/Source/WTF/ChangeLog 2018-01-19 18:05:40 UTC (rev 227211)
+++ trunk/Source/WTF/ChangeLog 2018-01-19 18:09:23 UTC (rev 227212)
@@ -1,3 +1,13 @@
+2018-01-19 Alexey Proskuryakov <[email protected]>
+
+ Update XPCSPI.h
+ https://bugs.webkit.org/show_bug.cgi?id=181827
+ rdar://problem/36393031
+
+ Reviewed by Daniel Bates.
+
+ * wtf/spi/darwin/XPCSPI.h:
+
2018-01-18 Chris Dumez <[email protected]>
We should be able to terminate service workers that are unresponsive
Modified: trunk/Source/WTF/wtf/spi/darwin/XPCSPI.h (227211 => 227212)
--- trunk/Source/WTF/wtf/spi/darwin/XPCSPI.h 2018-01-19 18:05:40 UTC (rev 227211)
+++ trunk/Source/WTF/wtf/spi/darwin/XPCSPI.h 2018-01-19 18:09:23 UTC (rev 227212)
@@ -55,11 +55,15 @@
typedef const struct _xpc_type_s* xpc_type_t;
+#if PLATFORM(IOS) && __has_attribute(noescape)
+#define XPC_NOESCAPE __attribute__((__noescape__))
+#endif
+
#if COMPILER_SUPPORTS(BLOCKS)
typedef bool (^xpc_array_applier_t)(size_t index, xpc_object_t);
typedef bool (^xpc_dictionary_applier_t)(const char *key, xpc_object_t value);
typedef void (^xpc_handler_t)(xpc_object_t);
-#endif
+#endif // COMPILER_SUPPORTS(BLOCKS)
typedef void (*xpc_connection_handler_t)(xpc_connection_t connection);
@@ -82,6 +86,10 @@
};
#endif
+#if !defined(XPC_NOESCAPE)
+#define XPC_NOESCAPE
+#endif
+
WTF_EXTERN_C_BEGIN
extern const struct _xpc_dictionary_s _xpc_error_connection_invalid;
@@ -95,8 +103,8 @@
xpc_object_t xpc_array_create(const xpc_object_t*, size_t count);
#if COMPILER_SUPPORTS(BLOCKS)
-bool xpc_array_apply(xpc_object_t, xpc_array_applier_t);
-bool xpc_dictionary_apply(xpc_object_t xdict, xpc_dictionary_applier_t applier);
+bool xpc_array_apply(xpc_object_t, XPC_NOESCAPE xpc_array_applier_t);
+bool xpc_dictionary_apply(xpc_object_t xdict, XPC_NOESCAPE xpc_dictionary_applier_t applier);
#endif
size_t xpc_array_get_count(xpc_object_t);
const char* xpc_array_get_string(xpc_object_t, size_t index);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes