++ On the enum return codes. If you end up doing this, make sure you
make the prefix 'DRIZZLED', since I'm using 'DRIZZLE' in libdrizzle.

-Eric

On Tue, Jan 06, 2009 at 11:40:48AM +0900, Toru Maesaka wrote:
>    Hi!
>    Something I've been pondering lately is the return value for
>    success/failure in our internal functions.
>    Returning 0 for success and anything else as an abnormal status is fine
>    but at various places we treat stdbool/C++'s false as success and true as
>    failure which looks weird to my eyes. It also means that we have to
>    comment a lot to make sure people don't get confused (some places I'm sure
>    these comments don't even exist).
>    So, would it make sense to create a bunch of enums like, DRIZZLE_SUCCESS,
>    DRIZZLE_FAILURE and etc to use internally? It would help sustain
>    consistency in the codebase.
>    It beats seeing comments like this everywhere I think:
>    3214   RETURN                                                            
>                              
>    3215     0  - OK                                                          
>                             
>    3216     -1 - error                                                      
>                              
>    3217 */ 
>    Cheers,
>    --
>    Toru Maesaka <[email protected]>

> _______________________________________________
> Mailing list: https://launchpad.net/~drizzle-discuss
> Post to     : [email protected]
> Unsubscribe : https://launchpad.net/~drizzle-discuss
> More help   : https://help.launchpad.net/ListHelp


_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help   : https://help.launchpad.net/ListHelp

Reply via email to