Changes between Version 14 and Version 15 of EFLWebKitCodingStyle


Ignore:
Timestamp:
Aug 16, 2012 7:17:46 PM (12 years ago)
Author:
gyuyoung.kim@samsung.com
Comment:

Remove by http://lists.webkit.org/pipermail/webkit-efl/2012-August/000255.html

Legend:

Unmodified
Added
Removed
Modified
  • EFLWebKitCodingStyle

    v14 v15  
    88 * Use '''smart pointers''', like WKEinaSharedString, OwnPtr, RefPtr, etc.
    99 * Use c++ '''new/delete''' operators
    10  * Use '''const''' keyword instead of '''#define''' when you define constant variable.
    1110 * Use '''NULL''' in public C headers instead of 0
    1211 * Use a double negation '''(!!)''' when you modify or compare with a Eina Bool member variable which stores a value in a bit field.
     
    149148}}}
    150149
    151 ==  Use const keyword instead of #define when you define constant variable ==
    152 === Right ===
    153 {{{
    154 #!cpp
    155  const int defaultTileWidth = 256;
    156  const int defaultTileHeigth = 256;
    157 }}}
    158 === Wrong ===
    159 {{{
    160 #!cpp
    161  #define DEFAULT_TILE_W (256)
    162  #define DEFAULT_TILE_H (256)
    163 }}}
    164 
    165150== Use NULL in public C headers instead of 0 (but keep using 0 in implementations and in private headers). ==
    166151=== Right ===