SVN Update to TSTT repo (2383)
Mark Miller
miller86 at llnl.gov
Wed Oct 21 19:06:38 CDT 2009
Hi All,
I've made the changes to iMesh.h header file for link time version
number consistency checking.
Version number information is encoded in iMesh.h header file in 3
distinct places; as compile time conditional compilation symbols, as an
extern int reference and as a string. I also defined a version number
comparison macro, IMESH_VERSION_GE(maj,min,pat) which you can use like
so...
#if IMESH_VERSION_GE(1,2,3)
#else
#endif
These represent practices 6,9 and 10 from the Smart Libraries paper,
also available here... https://wci.llnl.gov/codes/smartlibs/
Because version number information is codified in 3 distinct places, I
defined a helper script to update it, setvno. Using that script to
change version number is 'safer' as it will ensure all places are
changed together.
IMPORTANT CHANGES FOR IMPLEMENTATIONS...
1. Change name of iMesh_newMesh() to iMesh_newMesh_real(). The
iMesh_newMesh() symbol is now a macro in the iMesh.h header file
which references the 'real' implementation.
2. Ensure you have this line somewhere in a source file which is
part of your iMesh implementation and such that it will support
external "C" linkage.
int IMESH_VERSION_TAG = 0;
M TSTT/Interface/iMesh/iMesh.h
A TSTT/Interface/iMesh/setvno
Mark
--
Mark C. Miller, Lawrence Livermore National Laboratory
email: mailto:miller86 at llnl.gov
(M/T/W) (925)-423-5901 (!!LLNL BUSINESS ONLY!!)
(Th/F) (530)-753-8511 (!!LLNL BUSINESS ONLY!!)
More information about the tstt-interface
mailing list