diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2005-02-01 14:58:53 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2005-02-01 14:58:53 +0000 |
commit | cb95431b072f5519a083a59e878255c5bcab64d1 (patch) | |
tree | d36d7e7ee32fc44b5d288f244ae16ad086071fb5 /src/CODESTYLE | |
parent | 0026d529a6a0ccd030d9510858726bcd3e1e0d24 (diff) |
fix a C++ namespaces bug found by Erik:
error_exit() was declared extern "C"
--> it wasn't namespace-mangled
--> it could conflict with a similar error_exit() in another thorn
although this fix touches a *lot* of files, it's conceptually simple:
* error_exit() is not extern "C" any more
* everything in src/jtutil/ (which used to be in the jtutil:: namespace)
is now in the AHFinderDirect::jtutil:: namespace
--> all C++ code in this thorn is now inside the AHFinderDirect:: namespace
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1395 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/CODESTYLE')
-rw-r--r-- | src/CODESTYLE | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/CODESTYLE b/src/CODESTYLE index 9164011..d2784bb 100644 --- a/src/CODESTYLE +++ b/src/CODESTYLE @@ -1,6 +1,6 @@ AHFinderDirect Code Style ========================= -$Header: /usr/local/svn/cvs-repositories/numrelcvs/AEIThorns/AHFinderDirect/src/CODESTYLE,v 1.7 2004-03-01 11:06:58 jthorn Exp $ +$Header: /usr/local/svn/cvs-repositories/numrelcvs/AEIThorns/AHFinderDirect/src/CODESTYLE,v 1.8 2005-02-01 14:58:52 jthorn Exp $ This file documents some general programming conventions used in this thorn. @@ -187,6 +187,14 @@ printf()-style printing, eg } +C++ Namespaces +============== + +All this thorn's C++ code is in the AHFinderDirect:: C++ namespace. +Alas, the C and Fortran code under ./sparse-matrix/*/ doesn't enjoy +such protection. :( + + Error Handling ============== |