|
From: <sv...@va...> - 2010-03-03 22:58:06
|
Author: sewardj Date: 2010-03-03 22:57:47 +0000 (Wed, 03 Mar 2010) New Revision: 11061 Log: Make the version number available in the valgrind.h headers, so clients can do version-specific client requests. This is something we should have done long ago. Still needs a way to regtest this, to check that the embedded version matches what's stated in configure.in. Modified: trunk/include/valgrind.h Modified: trunk/include/valgrind.h =================================================================== --- trunk/include/valgrind.h 2010-03-03 22:55:42 UTC (rev 11060) +++ trunk/include/valgrind.h 2010-03-03 22:57:47 UTC (rev 11061) @@ -73,6 +73,17 @@ #ifndef __VALGRIND_H #define __VALGRIND_H + +/* ------------------------------------------------------------------ */ +/* VERSION NUMBER OF VALGRIND */ +/* ------------------------------------------------------------------ */ + +/* Specify Valgrind's version number, so that user code can + conditionally compile based on our version number. */ +#define __VALGRIND__ 3 +#define __VALGRIND_MINOR__ 6 + + #include <stdarg.h> /* Nb: this file might be included in a file compiled with -ansi. So |
|
From: Nicholas N. <n.n...@gm...> - 2010-03-04 22:19:40
|
On Thu, Mar 4, 2010 at 9:57 AM, <sv...@va...> wrote: > > +#define __VALGRIND__ 3 > +#define __VALGRIND_MINOR__ 6 __VALGRIND_MAJOR__ ? N |
|
From: Julian S. <js...@ac...> - 2010-03-05 00:07:26
|
On Thursday 04 March 2010, Nicholas Nethercote wrote: > On Thu, Mar 4, 2010 at 9:57 AM, <sv...@va...> wrote: > > +#define __VALGRIND__ 3 > > +#define __VALGRIND_MINOR__ 6 > > __VALGRIND_MAJOR__ ? I simply copied __GNUC__ and __GNUC_MINOR__, but, hmm, yes maybe _MAJOR would be better. J |