Bug 170892 - [Cocoa] Move isNullFunctionPointer down into WTF
Summary: [Cocoa] Move isNullFunctionPointer down into WTF
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: mitz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-16 14:03 PDT by mitz
Modified: 2017-04-17 13:22 PDT (History)
3 users (show)

See Also:


Attachments
Patch for EWS (19.28 KB, patch)
2017-04-16 15:04 PDT, mitz
no flags Details | Formatted Diff | Diff
Patch for EWS (19.30 KB, patch)
2017-04-16 15:56 PDT, mitz
no flags Details | Formatted Diff | Diff
Move the function to wtf/darwin/WeakLinking.h (22.50 KB, patch)
2017-04-16 17:08 PDT, mitz
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2017-04-16 14:03:18 PDT
Rather than having a copy of isNullFunctionPointer() in each source file that uses it, we can put it in a WTF header.
Comment 1 mitz 2017-04-16 15:04:54 PDT
Created attachment 307241 [details]
Patch for EWS
Comment 2 mitz 2017-04-16 15:56:30 PDT
Created attachment 307244 [details]
Patch for EWS
Comment 3 mitz 2017-04-16 17:08:00 PDT
Created attachment 307250 [details]
Move the function to wtf/darwin/WeakLinking.h
Comment 4 mitz 2017-04-16 17:08:40 PDT
Not sure I picked the best place in WTF for this function.
Comment 5 Sam Weinig 2017-04-16 17:14:40 PDT
Comment on attachment 307250 [details]
Move the function to wtf/darwin/WeakLinking.h

View in context: https://bugs.webkit.org/attachment.cgi?id=307250&action=review

> Source/WTF/wtf/darwin/WeakLinking.h:27
> +

Probably worth including <type_traits> to make this compile standalone.
Comment 6 mitz 2017-04-17 13:22:40 PDT
Committed <https://trac.webkit.org/r215424>.