# HG changeset patch # User Matti Hamalainen # Date 1206973898 -10800 # Node ID 35444232ac7ed2ddbb4d1b9c9f13cd030a299dae # Parent ac8d871b60753f88af741e00ddfd194cf4174b20 Note about code duplication. diff -r ac8d871b6075 -r 35444232ac7e HACKING --- a/HACKING Mon Mar 31 17:27:50 2008 +0300 +++ b/HACKING Mon Mar 31 17:31:38 2008 +0300 @@ -22,7 +22,7 @@ ================= - We use Glib for portability. This means that we have sized integer types - like gint{16,32,64}, etc. and shorthand types like guint and guchar + such as gint{16,32,64}, etc. and shorthand types like guint and guchar provided, so please do use them. Arguably C99 provides inttypes.h with similar types, but C99 support @@ -75,6 +75,11 @@ documentation for more information. +- Avoid reinventing wheels, avoid code duplication. If same thing is done + in two places, it should be in a library, or possibly in Audacious core. + Discuss about it with fellow developers. + + Additional style guidelines ===========================