| 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 | */ |
| 172 | EAPI 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 | */ |
| 184 | EAPI const char *ewk_intent_action_get(const Ewk_Intent *intent); |
| 185 | }}} |
| 186 | }}} |