13
0
livetrax/libs/pbd
David Robillard e0aaed6d65 *** NEW CODING POLICY ***
All #include statements that include a header that is a part of a library
bundled with ardour MUST use quotes, not angle brackets.

Do this:

#include "ardour/types.h"

NOT this:

#include <ardour/types.h>

Rationale:

This is best practice in general, to ensure we include the local version
and not the system version.  That quotes mean "local" (in some sense)
and angle brackets mean "system" (in some sense) is a ubiquitous
convention and IIRC right in the C spec somewhere.

More pragmatically, this is required by (my) waf (stuff) for dependencies
to work correctly.  That is:

!!! FAILURE TO DO THIS CAN RESULT IN BROKEN BUILDS !!!

Failure to comply is punishable by death by torture. :)

P.S. It's not that dramatic in all cases, but this (in combination with some
GCC flags specific to the include type) is the best way I have found to be
absolutely 100% positive the local ones are being used (and we definitely
want to be absolutely 100% positive on that one).


git-svn-id: svn://localhost/ardour2/branches/3.0@4655 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-25 18:26:51 +00:00
..
boost-debug rollback to 3428, before the mysterious removal of libs/* at 3431/3432 2008-06-02 21:41:35 +00:00
macosx rollback to 3428, before the mysterious removal of libs/* at 3431/3432 2008-06-02 21:41:35 +00:00
pbd *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
tests rollback to 3428, before the mysterious removal of libs/* at 3431/3432 2008-06-02 21:41:35 +00:00
.cvsignore rollback to 3428, before the mysterious removal of libs/* at 3431/3432 2008-06-02 21:41:35 +00:00
base_ui.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
basename.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
ChangeLog rollback to 3428, before the mysterious removal of libs/* at 3431/3432 2008-06-02 21:41:35 +00:00
command.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
controllable.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
convert.cc rollback to 3428, before the mysterious removal of libs/* at 3431/3432 2008-06-02 21:41:35 +00:00
COPYING rollback to 3428, before the mysterious removal of libs/* at 3431/3432 2008-06-02 21:41:35 +00:00
dmalloc.cc rollback to 3428, before the mysterious removal of libs/* at 3431/3432 2008-06-02 21:41:35 +00:00
enumwriter.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
error.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
file_utils.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
filesystem_paths.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
filesystem.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
fpu.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
gettext.h rollback to 3428, before the mysterious removal of libs/* at 3431/3432 2008-06-02 21:41:35 +00:00
i18n.h *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
id.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
libpbd.pc.in rollback to 3428, before the mysterious removal of libs/* at 3431/3432 2008-06-02 21:41:35 +00:00
libpbd.spec.in rollback to 3428, before the mysterious removal of libs/* at 3431/3432 2008-06-02 21:41:35 +00:00
mountpoint.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
pathscanner.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
pool.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
pthread_utils.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
receiver.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
SConscript first pass at internal sends. this is a very tentative work in progress, and it is possible that major changes may follow in the near future. it is certainly not complete, but the fundamental changes to Port/Buffer operation merit a commit at this point 2009-01-30 07:40:13 +00:00
search_path.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
shortpath.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
stacktrace.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
stateful.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
strreplace.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
strsplit.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
textreceiver.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
transmitter.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
undo.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
uuid.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
whitespace.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00
wscript Move waf up to top level, waf building of pbd, evoral, midi++ 2009-02-25 17:51:42 +00:00
xml++.cc *** NEW CODING POLICY *** 2009-02-25 18:26:51 +00:00