Commit f61b62755cfcc7cd258b6f5225f507f06e752cce

Authored by Georg Hopp
1 parent c4022ee0

Add a version function

@@ -17,6 +17,8 @@ @@ -17,6 +17,8 @@
17 #include "tr/interface/indexable.h" 17 #include "tr/interface/indexable.h"
18 #include "tr/interface/logger.h" 18 #include "tr/interface/logger.h"
19 19
  20 +const char * const TR_base_version(void);
  21 +
20 #endif // __TR_BASE_H__ 22 #endif // __TR_BASE_H__
21 23
22 // vim: set ts=4 sw=4: 24 // vim: set ts=4 sw=4:
@@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS = -I m4 @@ -2,7 +2,7 @@ ACLOCAL_AMFLAGS = -I m4
2 AUTOMAKE_OPTIONS = subdir-objects 2 AUTOMAKE_OPTIONS = subdir-objects
3 3
4 AM_CFLAGS += -I../include/ -std=c99 4 AM_CFLAGS += -I../include/ -std=c99
5 -AM_LDFLAGS += 5 +AM_LDFLAGS +=
6 6
7 TR_CLASS = memory.c \ 7 TR_CLASS = memory.c \
8 interface.c \ 8 interface.c \
@@ -16,6 +16,7 @@ TR_CLASS = memory.c \ @@ -16,6 +16,7 @@ TR_CLASS = memory.c \
16 math.c \ 16 math.c \
17 sized_data.c \ 17 sized_data.c \
18 sized_data_set_data.c \ 18 sized_data_set_data.c \
  19 + version.c \
19 i_class.c \ 20 i_class.c \
20 i_subject.c \ 21 i_subject.c \
21 i_observer.c \ 22 i_observer.c \
  1 +#include "config.h"
  2 +
  3 +const char * const
  4 +TR_base_version(void)
  5 +{
  6 + return VERSION;
  7 +}
  8 +
Please register or login to post a comment