* src/misc/version.hh, src/misc/version.cc: New files.
* src/misc/Makefile.am (libmisc_la_SOURCES, misc_HEADERS): Add them. * wrap/python/spot.i: Include misc/version.hh. * wrap/python/cgi/ltl2tgba.in: Print spot.version().
This commit is contained in:
parent
b90e0d611f
commit
a5e04a10e6
6 changed files with 36 additions and 3 deletions
|
|
@ -1,5 +1,10 @@
|
||||||
2003-08-05 Alexandre Duret-Lutz <aduret@src.lip6.fr>
|
2003-08-05 Alexandre Duret-Lutz <aduret@src.lip6.fr>
|
||||||
|
|
||||||
|
* src/misc/version.hh, src/misc/version.cc: New files.
|
||||||
|
* src/misc/Makefile.am (libmisc_la_SOURCES, misc_HEADERS): Add them.
|
||||||
|
* wrap/python/spot.i: Include misc/version.hh.
|
||||||
|
* wrap/python/cgi/ltl2tgba.in: Print spot.version().
|
||||||
|
|
||||||
* README: Update layout.
|
* README: Update layout.
|
||||||
|
|
||||||
* wrap/python/cgi/Makefile.am, wrap/python/cgi/ltl2tgba.in,
|
* wrap/python/cgi/Makefile.am, wrap/python/cgi/ltl2tgba.in,
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,10 @@ miscdir = $(pkgincludedir)/misc
|
||||||
|
|
||||||
misc_HEADERS = \
|
misc_HEADERS = \
|
||||||
bddalloc.hh \
|
bddalloc.hh \
|
||||||
bddlt.hh
|
bddlt.hh \
|
||||||
|
version.hh
|
||||||
|
|
||||||
noinst_LTLIBRARIES = libmisc.la
|
noinst_LTLIBRARIES = libmisc.la
|
||||||
libmisc_la_SOURCES = \
|
libmisc_la_SOURCES = \
|
||||||
bddalloc.cc
|
bddalloc.cc \
|
||||||
|
version.cc
|
||||||
|
|
|
||||||
12
src/misc/version.cc
Normal file
12
src/misc/version.cc
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
#include "version.hh"
|
||||||
|
|
||||||
|
namespace spot
|
||||||
|
{
|
||||||
|
static const char version_[] = VERSION;
|
||||||
|
|
||||||
|
const char*
|
||||||
|
version()
|
||||||
|
{
|
||||||
|
return version_;
|
||||||
|
}
|
||||||
|
}
|
||||||
10
src/misc/version.hh
Normal file
10
src/misc/version.hh
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
#ifndef SPOT_MISC_VERSION_HH
|
||||||
|
# define SPOT_MISC_VERSION_HH
|
||||||
|
|
||||||
|
namespace spot
|
||||||
|
{
|
||||||
|
/// Return Spot's version.
|
||||||
|
const char* version();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // SPOT_MISC_VERSION_HH
|
||||||
|
|
@ -224,4 +224,4 @@ del degen
|
||||||
del concrete
|
del concrete
|
||||||
|
|
||||||
print '<hr>'
|
print '<hr>'
|
||||||
print 'Spot @PACKAGE_VERSION@'
|
print 'ltl2tgba.py @PACKAGE_VERSION@; Spot', spot.version()
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,8 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
#include "misc/version.hh"
|
||||||
|
|
||||||
#include "ltlast/formula.hh"
|
#include "ltlast/formula.hh"
|
||||||
#include "ltlast/refformula.hh"
|
#include "ltlast/refformula.hh"
|
||||||
#include "ltlast/atomic_prop.hh"
|
#include "ltlast/atomic_prop.hh"
|
||||||
|
|
@ -56,6 +58,8 @@ using namespace spot::ltl;
|
||||||
using namespace spot;
|
using namespace spot;
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
%include "misc/version.hh"
|
||||||
|
|
||||||
%include "ltlast/formula.hh"
|
%include "ltlast/formula.hh"
|
||||||
%include "ltlast/refformula.hh"
|
%include "ltlast/refformula.hh"
|
||||||
%include "ltlast/atomic_prop.hh"
|
%include "ltlast/atomic_prop.hh"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue