Changes between Version 7 and Version 8 of EFLWebKitCodingStyle


Ignore:
Timestamp:
Jul 17, 2012 11:57:01 AM (12 years ago)
Author:
Christophe Dumez
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EFLWebKitCodingStyle

    v7 v8  
    99 * Use c++ '''new/delete''' operators
    1010 * Use '''const''' keyword instead of '''#define''' when you define constant variable.
     11 * Use NULL in public C headers instead of 0
    1112
    1213= Example =
     
    158159 #define DEFAULT_TILE_H (256)
    159160}}}
     161
     162== Use NULL in public C headers instead of 0 (but keep using 0 in implementations and in private headers). ==
     163=== Right ===
     164{{{
     165/**
     166 * Query action for this intent.
     167 *
     168 * @param intent intent object to query.
     169 *
     170 * @return the intent action if successful or @c NULL otherwise.
     171 */
     172EAPI const char *ewk_intent_action_get(const Ewk_Intent *intent);
     173}}}
     174=== Wrong ===
     175{{{
     176{{{
     177/**
     178 * Query action for this intent.
     179 *
     180 * @param intent intent object to query.
     181 *
     182 * @return the intent action if successful or @c 0 otherwise.
     183 */
     184EAPI const char *ewk_intent_action_get(const Ewk_Intent *intent);
     185}}}
     186}}}