Re: [webkit-dev] unsigned vs unsigned int

2012-09-17 Thread Allan Sandfeld Jensen
On Sunday 16 September 2012, Darin Adler wrote:
 On Sep 16, 2012, at 2:30 AM, Allan Sandfeld Jensen k...@carewolf.com wrote:
  On Thursday 13 September 2012, Dan Bernstein wrote:
  On Sep 13, 2012, at 1:29 AM, Kenneth Rohde Christiansen 
kenneth.christian...@gmail.com wrote:
  I was telling people to use unsigned instead of unsigned int, as I
  have been told that was the preferred style before, but apparently
  that is not in the style guide.
  
  The question is, should it be?
  
  Yes.
  
  Why? Wouldn't it be better to move away from deprecated C syntax?
 
 I think we should use the shortest name for each type.
 
 That is why I like “unsigned” better than “unsigned int”.
 
Does this mean you also prefer 'const' over 'const int'? ;-)

Anyway, I have no strong opinion on the subject, like most programmers I just 
prefer what I am just to, and for some reason I am more used to 'unsigned int' 
than 'unsigned'. But I can easily live with it. This was only meant as a 
weekend comment.

Best regards.
`Allan
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] unsigned vs unsigned int

2012-09-17 Thread Darin Adler
On Sep 17, 2012, at 1:22 AM, Allan Sandfeld Jensen k...@carewolf.com wrote:

 On Sunday 16 September 2012, Darin Adler wrote:
 I think we should use the shortest name for each type.
 
 That is why I like “unsigned” better than “unsigned int”.
 
 Does this mean you also prefer 'const' over 'const int'?

No.

-- Darin
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] unsigned vs unsigned int

2012-09-16 Thread Allan Sandfeld Jensen
On Thursday 13 September 2012, Dan Bernstein wrote:
 On Sep 13, 2012, at 1:29 AM, Kenneth Rohde Christiansen 
kenneth.christian...@gmail.com wrote:
  Hi there,
  
  I was telling people to use unsigned instead of unsigned int, as I
  have been told that was the preferred style before, but apparently
  that is not in the style guide.
  
  The question is, should it be?
 
 Yes.
 
Why? Wouldn't it be better to move away from deprecated C syntax?

`Allan
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] unsigned vs unsigned int

2012-09-16 Thread Darin Adler
On Sep 16, 2012, at 2:30 AM, Allan Sandfeld Jensen k...@carewolf.com wrote:

 On Thursday 13 September 2012, Dan Bernstein wrote:
 On Sep 13, 2012, at 1:29 AM, Kenneth Rohde Christiansen 
 kenneth.christian...@gmail.com wrote:
 
 I was telling people to use unsigned instead of unsigned int, as I
 have been told that was the preferred style before, but apparently
 that is not in the style guide.
 
 The question is, should it be?
 
 Yes.
 
 Why? Wouldn't it be better to move away from deprecated C syntax?

I think we should use the shortest name for each type.

That is why I like “unsigned” better than “unsigned int”.

-- Darin
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] unsigned vs unsigned int

2012-09-16 Thread Maciej Stachowiak

On Sep 16, 2012, at 2:30 AM, Allan Sandfeld Jensen k...@carewolf.com wrote:

 On Thursday 13 September 2012, Dan Bernstein wrote:
 On Sep 13, 2012, at 1:29 AM, Kenneth Rohde Christiansen 
 kenneth.christian...@gmail.com wrote:
 Hi there,
 
 I was telling people to use unsigned instead of unsigned int, as I
 have been told that was the preferred style before, but apparently
 that is not in the style guide.
 
 The question is, should it be?
 
 Yes.
 
 Why? Wouldn't it be better to move away from deprecated C syntax?


At least per ISO/IEC 9899:1999 (colloquially called C99), using unsigned as a 
type name is not deprecated. The standard does label a few things deprecated, 
but not this.

Regards,
Maciej

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


[webkit-dev] unsigned vs unsigned int

2012-09-13 Thread Kenneth Rohde Christiansen
Hi there,

I was telling people to use unsigned instead of unsigned int, as I
have been told that was the preferred style before, but apparently
that is not in the style guide.

The question is, should it be?

A few greps in the code:

unsigned - 18406 occurrences.
unsigned int - 1721
unsigned i = - 1548

It does in fact seem to be the preferred style.

Cheers
Kenneth

-- 
Kenneth Rohde Christiansen
Senior Engineer, WebKit, Qt, EFL
Phone  +45 4093 0598 / E-mail kenneth at webkit.org

﹆﹆﹆
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] unsigned vs unsigned int

2012-09-13 Thread Dan Bernstein


On Sep 13, 2012, at 1:29 AM, Kenneth Rohde Christiansen 
kenneth.christian...@gmail.com wrote:

 Hi there,
 
 I was telling people to use unsigned instead of unsigned int, as I
 have been told that was the preferred style before, but apparently
 that is not in the style guide.
 
 The question is, should it be?

Yes.

 
 A few greps in the code:
 
 unsigned - 18406 occurrences.
 unsigned int - 1721
 unsigned i = - 1548
 
 It does in fact seem to be the preferred style.
 
 Cheers
 Kenneth
 
 -- 
 Kenneth Rohde Christiansen
 Senior Engineer, WebKit, Qt, EFL
 Phone  +45 4093 0598 / E-mail kenneth at webkit.org
 
 ﹆﹆﹆
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] unsigned vs unsigned int

2012-09-13 Thread Ryosuke Niwa
Uploaded a patch on https://bugs.webkit.org/show_bug.cgi?id=96682.

- Ryosuke

On Thu, Sep 13, 2012 at 8:11 AM, Dan Bernstein m...@apple.com wrote:



 On Sep 13, 2012, at 1:29 AM, Kenneth Rohde Christiansen 
 kenneth.christian...@gmail.com wrote:

  Hi there,
 
  I was telling people to use unsigned instead of unsigned int, as I
  have been told that was the preferred style before, but apparently
  that is not in the style guide.
 
  The question is, should it be?

 Yes.

 
  A few greps in the code:
 
  unsigned - 18406 occurrences.
  unsigned int - 1721
  unsigned i = - 1548
 
  It does in fact seem to be the preferred style.
 
  Cheers
  Kenneth
 
  --
  Kenneth Rohde Christiansen
  Senior Engineer, WebKit, Qt, EFL
  Phone  +45 4093 0598 / E-mail kenneth at webkit.org
 
  ﹆﹆﹆
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo/webkit-dev
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] unsigned vs unsigned int

2012-09-13 Thread Ryosuke Niwa
Landed in http://trac.webkit.org/changeset/128499 (Thanks ggaren!)

On Thu, Sep 13, 2012 at 12:29 PM, Ryosuke Niwa rn...@webkit.org wrote:

 Uploaded a patch on https://bugs.webkit.org/show_bug.cgi?id=96682.

 - Ryosuke

 On Thu, Sep 13, 2012 at 8:11 AM, Dan Bernstein m...@apple.com wrote:



 On Sep 13, 2012, at 1:29 AM, Kenneth Rohde Christiansen 
 kenneth.christian...@gmail.com wrote:

  Hi there,
 
  I was telling people to use unsigned instead of unsigned int, as I
  have been told that was the preferred style before, but apparently
  that is not in the style guide.
 
  The question is, should it be?

 Yes.

 
  A few greps in the code:
 
  unsigned - 18406 occurrences.
  unsigned int - 1721
  unsigned i = - 1548
 
  It does in fact seem to be the preferred style.
 
  Cheers
  Kenneth
 
  --
  Kenneth Rohde Christiansen
  Senior Engineer, WebKit, Qt, EFL
  Phone  +45 4093 0598 / E-mail kenneth at webkit.org
 
  ﹆﹆﹆
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo/webkit-dev
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] unsigned vs unsigned int

2012-09-13 Thread Oliver Hunt
Does the style bot pick up unsigned int etc?

--Oliver

On Sep 13, 2012, at 1:19 PM, Ryosuke Niwa rn...@webkit.org wrote:

 Landed in http://trac.webkit.org/changeset/128499 (Thanks ggaren!)
 
 On Thu, Sep 13, 2012 at 12:29 PM, Ryosuke Niwa rn...@webkit.org wrote:
 Uploaded a patch on https://bugs.webkit.org/show_bug.cgi?id=96682.
 
 - Ryosuke
 
 On Thu, Sep 13, 2012 at 8:11 AM, Dan Bernstein m...@apple.com wrote:
 
 
 On Sep 13, 2012, at 1:29 AM, Kenneth Rohde Christiansen 
 kenneth.christian...@gmail.com wrote:
 
  Hi there,
 
  I was telling people to use unsigned instead of unsigned int, as I
  have been told that was the preferred style before, but apparently
  that is not in the style guide.
 
  The question is, should it be?
 
 Yes.
 
 
  A few greps in the code:
 
  unsigned - 18406 occurrences.
  unsigned int - 1721
  unsigned i = - 1548
 
  It does in fact seem to be the preferred style.
 
  Cheers
  Kenneth
 
  --
  Kenneth Rohde Christiansen
  Senior Engineer, WebKit, Qt, EFL
  Phone  +45 4093 0598 / E-mail kenneth at webkit.org
 
  ﹆﹆﹆
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo/webkit-dev
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev
 
 
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] unsigned vs unsigned int

2012-09-13 Thread Ryosuke Niwa
No. I think we can update webkitpy/style/checkers/cpp.py to do that.
Unfortunately, I don't understand that code base.

- Ryosuke

On Thu, Sep 13, 2012 at 1:34 PM, Oliver Hunt oli...@apple.com wrote:

 Does the style bot pick up unsigned int etc?

 --Oliver

 On Sep 13, 2012, at 1:19 PM, Ryosuke Niwa rn...@webkit.org wrote:

 Landed in http://trac.webkit.org/changeset/128499 (Thanks ggaren!)

 On Thu, Sep 13, 2012 at 12:29 PM, Ryosuke Niwa rn...@webkit.org wrote:

 Uploaded a patch on https://bugs.webkit.org/show_bug.cgi?id=96682.

 - Ryosuke

 On Thu, Sep 13, 2012 at 8:11 AM, Dan Bernstein m...@apple.com wrote:



 On Sep 13, 2012, at 1:29 AM, Kenneth Rohde Christiansen 
 kenneth.christian...@gmail.com wrote:

  Hi there,
 
  I was telling people to use unsigned instead of unsigned int, as I
  have been told that was the preferred style before, but apparently
  that is not in the style guide.
 
  The question is, should it be?

 Yes.

 
  A few greps in the code:
 
  unsigned - 18406 occurrences.
  unsigned int - 1721
  unsigned i = - 1548
 
  It does in fact seem to be the preferred style.
 
  Cheers
  Kenneth
 
  --
  Kenneth Rohde Christiansen
  Senior Engineer, WebKit, Qt, EFL
  Phone  +45 4093 0598 / E-mail kenneth at webkit.org
 
  ﹆﹆﹆
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo/webkit-dev
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev



 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev



___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] unsigned vs unsigned int

2012-09-13 Thread Kenneth Rohde Christiansen
Filed https://bugs.webkit.org/show_bug.cgi?id=96693

On Thu, Sep 13, 2012 at 10:47 PM, Ryosuke Niwa rn...@webkit.org wrote:
 No. I think we can update webkitpy/style/checkers/cpp.py to do that.
 Unfortunately, I don't understand that code base.

 - Ryosuke


 On Thu, Sep 13, 2012 at 1:34 PM, Oliver Hunt oli...@apple.com wrote:

 Does the style bot pick up unsigned int etc?

 --Oliver

 On Sep 13, 2012, at 1:19 PM, Ryosuke Niwa rn...@webkit.org wrote:

 Landed in http://trac.webkit.org/changeset/128499 (Thanks ggaren!)

 On Thu, Sep 13, 2012 at 12:29 PM, Ryosuke Niwa rn...@webkit.org wrote:

 Uploaded a patch on https://bugs.webkit.org/show_bug.cgi?id=96682.

 - Ryosuke

 On Thu, Sep 13, 2012 at 8:11 AM, Dan Bernstein m...@apple.com wrote:



 On Sep 13, 2012, at 1:29 AM, Kenneth Rohde Christiansen
 kenneth.christian...@gmail.com wrote:

  Hi there,
 
  I was telling people to use unsigned instead of unsigned int, as I
  have been told that was the preferred style before, but apparently
  that is not in the style guide.
 
  The question is, should it be?

 Yes.

 
  A few greps in the code:
 
  unsigned - 18406 occurrences.
  unsigned int - 1721
  unsigned i = - 1548
 
  It does in fact seem to be the preferred style.
 
  Cheers
  Kenneth
 
  --
  Kenneth Rohde Christiansen
  Senior Engineer, WebKit, Qt, EFL
  Phone  +45 4093 0598 / E-mail kenneth at webkit.org
 
  ﹆﹆﹆
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo/webkit-dev
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev



 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev




 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev




-- 
Kenneth Rohde Christiansen
Senior Engineer, WebKit, Qt, EFL
Phone  +45 4093 0598 / E-mail kenneth at webkit.org

﹆﹆﹆
___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev


Re: [webkit-dev] unsigned vs unsigned int

2012-09-13 Thread David Levin
If someone wanted this and understood python, I suspect that they could
search for unsigned in that cpp.py and in about 10 min have a pretty good
idea of how to add such a check. If you don't understand Python, then 30
minutes :)

dave


On Thu, Sep 13, 2012 at 2:12 PM, Kenneth Rohde Christiansen 
kenneth.christian...@gmail.com wrote:

 Filed https://bugs.webkit.org/show_bug.cgi?id=96693

 On Thu, Sep 13, 2012 at 10:47 PM, Ryosuke Niwa rn...@webkit.org wrote:
  No. I think we can update webkitpy/style/checkers/cpp.py to do that.
  Unfortunately, I don't understand that code base.
 
  - Ryosuke
 
 
  On Thu, Sep 13, 2012 at 1:34 PM, Oliver Hunt oli...@apple.com wrote:
 
  Does the style bot pick up unsigned int etc?
 
  --Oliver
 
  On Sep 13, 2012, at 1:19 PM, Ryosuke Niwa rn...@webkit.org wrote:
 
  Landed in http://trac.webkit.org/changeset/128499 (Thanks ggaren!)
 
  On Thu, Sep 13, 2012 at 12:29 PM, Ryosuke Niwa rn...@webkit.org
 wrote:
 
  Uploaded a patch on https://bugs.webkit.org/show_bug.cgi?id=96682.
 
  - Ryosuke
 
  On Thu, Sep 13, 2012 at 8:11 AM, Dan Bernstein m...@apple.com wrote:
 
 
 
  On Sep 13, 2012, at 1:29 AM, Kenneth Rohde Christiansen
  kenneth.christian...@gmail.com wrote:
 
   Hi there,
  
   I was telling people to use unsigned instead of unsigned int,
 as I
   have been told that was the preferred style before, but apparently
   that is not in the style guide.
  
   The question is, should it be?
 
  Yes.
 
  
   A few greps in the code:
  
   unsigned - 18406 occurrences.
   unsigned int - 1721
   unsigned i = - 1548
  
   It does in fact seem to be the preferred style.
  
   Cheers
   Kenneth
  
   --
   Kenneth Rohde Christiansen
   Senior Engineer, WebKit, Qt, EFL
   Phone  +45 4093 0598 / E-mail kenneth at webkit.org
  
   ﹆﹆﹆
   ___
   webkit-dev mailing list
   webkit-dev@lists.webkit.org
   http://lists.webkit.org/mailman/listinfo/webkit-dev
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo/webkit-dev
 
 
 
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo/webkit-dev
 
 
 
 
  ___
  webkit-dev mailing list
  webkit-dev@lists.webkit.org
  http://lists.webkit.org/mailman/listinfo/webkit-dev
 



 --
 Kenneth Rohde Christiansen
 Senior Engineer, WebKit, Qt, EFL
 Phone  +45 4093 0598 / E-mail kenneth at webkit.org

 ﹆﹆﹆
 ___
 webkit-dev mailing list
 webkit-dev@lists.webkit.org
 http://lists.webkit.org/mailman/listinfo/webkit-dev

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-dev