Bug 92624 - Add special export macro for string related functions
Summary: Add special export macro for string related functions
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Template Framework (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Patrick R. Gansterer
URL:
Keywords:
Depends on:
Blocks: 76257
  Show dependency treegraph
 
Reported: 2012-07-30 02:35 PDT by Patrick R. Gansterer
Modified: 2012-07-30 18:22 PDT (History)
2 users (show)

See Also:


Attachments
Patch (33.32 KB, patch)
2012-07-30 02:52 PDT, Patrick R. Gansterer
morrita: review-
Details | Formatted Diff | Diff
Patch (33.32 KB, patch)
2012-07-30 03:33 PDT, Patrick R. Gansterer
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick R. Gansterer 2012-07-30 02:35:19 PDT
Add special export macro for string related functions
Comment 1 Patrick R. Gansterer 2012-07-30 02:52:44 PDT
Created attachment 155241 [details]
Patch
Comment 2 WebKit Review Bot 2012-07-30 02:57:04 PDT
Attachment 155241 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/Ex..." exit_code: 1
Source/WTF/wtf/text/AtomicString.h:82:  The parameter name "s" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Hajime Morrita 2012-07-30 03:31:10 PDT
Comment on attachment 155241 [details]
Patch

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

r- due to style error. The code direction looks fine to me.

> Source/WTF/wtf/ExportMacros.h:144
> +#if PLATFORM(WIN)

I expect this conditional to be tuned in coming revisions, right?
If so, it's OK for now.
Comment 4 Patrick R. Gansterer 2012-07-30 03:33:42 PDT
Created attachment 155244 [details]
Patch

(In reply to comment #3)
> > Source/WTF/wtf/ExportMacros.h:144
> > +#if PLATFORM(WIN)
> 
> I expect this conditional to be tuned in coming revisions, right?
Yes, in the commit, where i change the build system.
Comment 5 Hajime Morrita 2012-07-30 03:49:18 PDT
Comment on attachment 155244 [details]
Patch

Looks good. Please wait until bots become green.
Comment 6 WebKit Review Bot 2012-07-30 11:54:00 PDT
Comment on attachment 155244 [details]
Patch

Clearing flags on attachment: 155244

Committed r124069: <http://trac.webkit.org/changeset/124069>
Comment 7 WebKit Review Bot 2012-07-30 11:54:03 PDT
All reviewed patches have been landed.  Closing bug.
Comment 8 Darin Adler 2012-07-30 17:44:36 PDT
Comment on attachment 155244 [details]
Patch

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

> Source/WTF/wtf/ExportMacros.h:148
> +#if PLATFORM(WIN)
> +#define WTF_EXPORT_STRING_API
> +#else
> +#define WTF_EXPORT_STRING_API WTF_EXPORT_PRIVATE
> +#endif

The use of the term API here is misleading. These are private entry points for use only within the WebKit project, right? So they are not API.
Comment 9 Hajime Morrita 2012-07-30 18:22:56 PDT
(In reply to comment #8)
> (From update of attachment 155244 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=155244&action=review
> 
> > Source/WTF/wtf/ExportMacros.h:148
> > +#if PLATFORM(WIN)
> > +#define WTF_EXPORT_STRING_API
> > +#else
> > +#define WTF_EXPORT_STRING_API WTF_EXPORT_PRIVATE
> > +#endif
> 
> The use of the term API here is misleading. These are private entry points for use only within the WebKit project, right? So they are not API.

True. Maybe WTF_EXPORT_PRIVATE_STRING_API?