Bug 73160 - [Refactoring] In preprocessor.pm, remove double quotations from $defines
Summary: [Refactoring] In preprocessor.pm, remove double quotations from $defines
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kentaro Hara
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-26 12:44 PST by Kentaro Hara
Modified: 2011-12-22 02:32 PST (History)
5 users (show)

See Also:


Attachments
Patch (2.17 KB, patch)
2011-11-26 12:50 PST, Kentaro Hara
no flags Details | Formatted Diff | Diff
Patch (3.21 KB, patch)
2011-11-26 13:03 PST, Kentaro Hara
no flags Details | Formatted Diff | Diff
rebased patch for commit (3.19 KB, patch)
2011-11-29 21:52 PST, Kentaro Hara
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kentaro Hara 2011-11-26 12:44:50 PST
In preprocessor.pm, we need to extract gcc macros from $defines. $defines can contain unnecessary double quotations. For example, if $defines is ' "A=1" "B=1" C=1 ""    D  ', then it should be converted into four macros, -DA=1, -DB=1, -DC=1 and -DD.

This bug refactors the above logic in preprocessor.pm.
Comment 1 Kentaro Hara 2011-11-26 12:50:54 PST
Created attachment 116662 [details]
Patch
Comment 2 Kentaro Hara 2011-11-26 13:03:17 PST
Created attachment 116663 [details]
Patch
Comment 3 Kentaro Hara 2011-11-26 14:42:46 PST
mrobinson: Does this change look OK? After receiving your 'yes', I'd like to commit it.
Comment 4 WebKit Review Bot 2011-11-29 21:21:52 PST
Comment on attachment 116663 [details]
Patch

Rejecting attachment 116663 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '-..." exit_code: 2

Last 500 characters of output:
rce/WebCore/ChangeLog
Hunk #1 succeeded at 1 with fuzz 3.
patching file Source/WebCore/bindings/scripts/generate-bindings.pl
Hunk #1 succeeded at 67 with fuzz 1 (offset 3 lines).
Hunk #2 FAILED at 71.
1 out of 2 hunks FAILED -- saving rejects to file Source/WebCore/bindings/scripts/generate-bindings.pl.rej
patching file Source/WebCore/bindings/scripts/preprocessor.pm

Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', u'--reviewer', u'Adam Barth', u'--force']" exit_code: 1

Full output: http://queues.webkit.org/results/10712049
Comment 5 Kentaro Hara 2011-11-29 21:52:09 PST
Created attachment 117119 [details]
rebased patch for commit
Comment 6 WebKit Review Bot 2011-11-30 06:33:59 PST
Comment on attachment 117119 [details]
rebased patch for commit

Clearing flags on attachment: 117119

Committed r101506: <http://trac.webkit.org/changeset/101506>