Add version information to zint.h and increment release version

Relates to #51
This commit is contained in:
Robin Stuart 2016-12-10 09:04:06 +00:00
parent 6115a3f8b6
commit e7858dfe98
11 changed files with 109 additions and 6 deletions

View file

@ -291,7 +291,7 @@ int ps_plot(struct zint_symbol *symbol) {
/* Start writing the header */
fprintf(feps, "%%!PS-Adobe-3.0 EPSF-3.0\n");
fprintf(feps, "%%%%Creator: Zint %s\n", ZINT_VERSION);
fprintf(feps, "%%%%Creator: Zint %d.%d.%d\n", ZINT_VERSION_MAJOR, ZINT_VERSION_MINOR, ZINT_VERSION_RELEASE);
if ((ustrlen(local_text) != 0) && (symbol->show_hrt != 0)) {
fprintf(feps, "%%%%Title: %s\n", local_text);
} else {

View file

@ -98,7 +98,10 @@ extern "C" {
struct zint_render *rendered;
};
#define ZINT_VERSION_MAJOR 2
#define ZINT_VERSION_MINOR 5
#define ZINT_VERSION_RELEASE 1
/* Tbarcode 7 codes */
#define BARCODE_CODE11 1
#define BARCODE_C25MATRIX 2