<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>55503</bug_id>
          
          <creation_ts>2011-03-01 13:44:02 -0800</creation_ts>
          <short_desc>Fix misspelled word in build-webkit&apos;s checkForJavaSDK() and sort forward declarations</short_desc>
          <delta_ts>2011-03-06 17:11:57 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Bates">dbates</reporter>
          <assigned_to name="Daniel Bates">dbates</assigned_to>
          <cc>ddkilzer</cc>
    
    <cc>eric</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>360194</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2011-03-01 13:44:02 -0800</bug_when>
    <thetext>It is unnecessary in Perl to explicitly write &quot;()&quot; in function prototypes for functions that take no arguments. So, we can remove the &quot;()&quot; from the function prototypes for writeCongrats(), checkForJavaSDK(),  and unlinkZeroFiles().

Additionally, the word &quot;download&quot; is misspelled in the message printed in checkForJavaSDK().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>360195</commentid>
    <comment_count>1</comment_count>
      <attachid>84288</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2011-03-01 13:45:32 -0800</bug_when>
    <thetext>Created attachment 84288
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>360452</commentid>
    <comment_count>2</comment_count>
      <attachid>84288</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-03-01 18:04:37 -0800</bug_when>
    <thetext>Comment on attachment 84288
Patch

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

rs=me, assuming this is considered &quot;good perl style&quot;.

&gt; Tools/Scripts/build-webkit:44
&gt; +sub checkForJavaSDK;

I guess this is good perl?  Looks strange to a non-perl-er.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>360839</commentid>
    <comment_count>3</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2011-03-02 09:21:31 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; (From update of attachment 84288 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=84288&amp;action=review
&gt; 
&gt; rs=me, assuming this is considered &quot;good perl style&quot;.
&gt; 
&gt; &gt; Tools/Scripts/build-webkit:44
&gt; &gt; +sub checkForJavaSDK;
&gt; 
&gt; I guess this is good perl?  Looks strange to a non-perl-er.

I&apos;m not particularly fond of this style.  I like my functions to have parenthesis, even if it makes them more C-like.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>360842</commentid>
    <comment_count>4</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2011-03-02 09:22:16 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; I&apos;m not particularly fond of this style.  I like my functions to have parenthesis, even if it makes them more C-like.

But not enough to oppose this change.  (Which style is more prevalent in the tools Perl code?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>360892</commentid>
    <comment_count>5</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2011-03-02 10:23:17 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; I&apos;m not particularly fond of this style.  I like my functions to have parenthesis, even if it makes them more C-like.
&gt; 
&gt; But not enough to oppose this change.  (Which style is more prevalent in the tools Perl code?)

Using some regular expressions against webkitdirs.pm and VCSUtils.pm (*), the empty parentheses notation is more prevalent than the no-parentheses notation (which is proposed in this patch). So, I can change this patch only be a spelling correction and sorting of the forward declarations.

For completeness, the sentiment on #perl on freenode seems to be against all uses of prototypes. They referred me to the Usenet post &lt;http://groups.google.com/group/comp.lang.perl.modules/msg/84484de5eb01085b?dmode=source&amp;output=gplain&gt;.

(*) I used the following regular expressions.

Match all prototypes: sub (.+)$

Match prototypes that don&apos;t contain &quot;()&quot;: sub ([^($]+)$

Match prototypes that contain &quot;()&quot;: sub (.+)\s*\(\)

Match prototypes with at least one compile-time argument check: sub (.+)\s*\((.+)\)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>362168</commentid>
    <comment_count>6</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2011-03-03 18:13:36 -0800</bug_when>
    <thetext>(In reply to comment #5)
&gt; For completeness, the sentiment on #perl on freenode seems to be against all uses of prototypes. They referred me to the Usenet post &lt;http://groups.google.com/group/comp.lang.perl.modules/msg/84484de5eb01085b?dmode=source&amp;output=gplain&gt;.

ZOMG.  I didn&apos;t have the patience to read through the whole thing.  My experience with prototypes has been generally good as they&apos;ve caught issues when I didn&apos;t pass in the correct number of arguments, and I usually prefer to use parenthesis when calling methods (except for some built-in functions).

I suppose we could also define some standard rules for Perl scripts, although Perl seems to be on its way out in the WebKit project in favor of Python or Ruby.

As I said, I don&apos;t feel strongly enough to r- this, but it would be good to settle on a common way to define methods in Perl scripts, at least for the remaining ones.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>363155</commentid>
    <comment_count>7</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2011-03-06 17:09:38 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #5)
&gt; [...]
&gt; As I said, I don&apos;t feel strongly enough to r- this, but it would be good to settle on a common way to define methods in Perl scripts, at least for the remaining ones.

I decided to defer the no-parentheses notation change. I reduced the scope of this bug and its patch to just the misspelled word and sorting the forward declarations.

We should consider standardizing on a notation for our existing Perl scripts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>363156</commentid>
    <comment_count>8</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2011-03-06 17:11:57 -0800</bug_when>
    <thetext>Committed r80443: &lt;http://trac.webkit.org/changeset/80443&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>84288</attachid>
            <date>2011-03-01 13:45:32 -0800</date>
            <delta_ts>2011-03-01 18:04:36 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-55503-20110301134148.patch</filename>
            <type>text/plain</type>
            <size>2754</size>
            <attacher name="Daniel Bates">dbates</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDgwMDExKQorKysgVG9vbHMvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMg
KzEsMTggQEAKKzIwMTEtMDMtMDEgIERhbmllbCBCYXRlcyAgPGRiYXRlc0ByaW0uY29tPgorCisg
ICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIENsZWFudXA6IFJl
bW92ZSB1bm5lY2Vzc2FyeSAiKCkiIGZyb20gZnVuY3Rpb24gcHJvdG90eXBlcyB0aGF0IHRha2Ug
bm8KKyAgICAgICAgYXJndW1lbnRzIGluIGJ1aWxkLXdlYmtpdDsgQW5kIGZpeCBtaXNzcGVsbGVk
IHdvcmQuCisgICAgICAgIGh0dHBz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TIFggMTAuNiBV
cGRhdGUgM1wiLCB0aGUgSmF2YSBEZXZlbG9wZXIgUGFja2FnZSBpcyByZXF1aXJlZCB0byBidWls
ZCBXZWJLaXQuXG4iOwotICAgIHByaW50ICJQbGVhc2UgaW5zdGFsbCB0aGUgcGFja2FnZSBmcm9t
IGh0dHA6Ly9jb25uZWN0LmFwcGxlLmNvbSAoZm91bmQgdW5kZXIgRG93bG9hZHMgPiBKYXZhKS5c
blxuIjsKKyAgICBwcmludCAiUGxlYXNlIGluc3RhbGwgdGhlIHBhY2thZ2UgZnJvbSBodHRwOi8v
Y29ubmVjdC5hcHBsZS5jb20gKGZvdW5kIHVuZGVyIERvd25sb2FkcyA+IEphdmEpLlxuXG4iOwog
ICAgIHByaW50ICJGb3IgbW9yZSBpbmZvcm1hdGlvbiwgc2VlOlxuIjsKICAgICBwcmludCAiaHR0
cHM6Ly9saXN0cy53ZWJraXQub3JnL3BpcGVybWFpbC93ZWJraXQtZGV2LzIwMTAtT2N0b2Jlci8w
MTQ4NjcuaHRtbFxuIjsKICAgICBwcmludCAiaHR0cHM6Ly93ZWJraXQub3JnL2J1aWxkaW5nL3Rv
b2xzLmh0bWxcblxuIjsKQEAgLTYzOCw3ICs2MzgsNyBAQCBzdWIgZm9ybWF0QnVpbGRUaW1lKCQp
CiAgICAgcmV0dXJuIHNwcmludGYoIiUwMmRtOiUwMmRzIiwgJGJ1aWxkTWlucywgJGJ1aWxkU2Vj
cyk7CiB9CiAKLXN1YiB3cml0ZUNvbmdyYXRzKCkKK3N1YiB3cml0ZUNvbmdyYXRzCiB7CiAgICAg
bXkgJGxhdW5jaGVyUGF0aCA9IGxhdW5jaGVyUGF0aCgpOwogICAgIG15ICRsYXVuY2hlck5hbWUg
PSBsYXVuY2hlck5hbWUoKTsK
</data>
<flag name="review"
          id="76253"
          type_id="1"
          status="+"
          setter="eric"
    />
          </attachment>
      

    </bug>

</bugzilla>