| List: | Internals | « Previous MessageNext Message » | |
| From: | Michael Widenius | Date: | October 20 2009 11:27pm |
| Subject: | re: Style proposal [Re: Coding style changes of 2009-06-26 now in the guidelines] | ||
| View as plain text | |||
Hi! >>>>> "Ingo" == Ingo Strüwing <Ingo.Struewing@stripped> writes: Ingo> Hi Mark, Ingo> thank you. I added it to the list of pending proposals: Ingo> http://forge.mysql.com/wiki/Coding_Style#Pending_propsals Ingo> MARK CALLAGHAN, 19.10.2009 17:07: Ingo> ... >> I don't expect existing code to be changed. But it would be nice for >> people to slowly fix things when they edit code. My requests are: >> 1) Use Unix style for functions (return type is int, 0 == success). >> The current rule doesn't mention the return type. Do not use >> bool/my_bool for this with FALSE==errror and TRUE==success in place of >> 1. >> 2) Use _Bool for my_bool on platforms that support C99 >> 3) Do not use the literals 0 and 1 in place of FALSE and TRUE Then add also as a pending proposal to keep the current code style convention. I would also suggest that you never accept a code style convention that is not accepted by those that are affected by it (I those that produced code to MySQL or it's variants). Regards, Monty
