Changes between Version 16 and Version 17 of EFLWebKitCodingStyle
- Timestamp:
- Sep 13, 2012, 12:21:48 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EFLWebKitCodingStyle
v16 v17 10 10 * Use '''NULL''' in public C headers instead of 0 11 11 * Use a double negation '''(!!)''' when you modify or compare with a Eina Bool member variable which stores a value in a bit field. 12 * *_ref() functions should return the ref'd object 12 13 13 14 = Example = … … 249 250 } 250 251 }}} 252 253 == *_ref() functions should return the ref'd object. == 254 255 This makes them more convenient to use and results in less code. 256 257 === Right === 258 {{{ 259 #!cpp 260 EAPI Ewk_Web_Resource *ewk_web_resource_ref(Ewk_Web_Resource *resource); 261 [...] 262 resources.add(resourceID, ewk_web_resource_ref(ewkResource)); 263 }}} 264 === Wrong === 265 {{{ 266 #!cpp 267 EAPI void ewk_web_resource_ref(Ewk_Web_Resource *resource); 268 [...] 269 ewk_web_resource_ref(ewkResource) 270 resources.add(resourceID, ewkResource); 271 }}}