From c7d764c0a6c6735bf1fe26c7cc61c14941c44c44 Mon Sep 17 00:00:00 2001 From: Alex Baines Date: Mon, 6 Nov 2017 21:07:40 +0000 Subject: [PATCH] add hmml_version variable --- hmmlib/hmmlib.h | 6 ++++++ hmmlib/hmmlib.l | 2 ++ 2 files changed, 8 insertions(+) diff --git a/hmmlib/hmmlib.h b/hmmlib/hmmlib.h index 980d092..13c2d81 100644 --- a/hmmlib/hmmlib.h +++ b/hmmlib/hmmlib.h @@ -95,4 +95,10 @@ HMML_Output hmml_parse_file (FILE* file); void hmml_dump (HMML_Output* output); void hmml_free (HMML_Output* output); +// Version + +extern const struct HMML_Version { + int Major, Minor, Patch; +} hmml_version; + #endif diff --git a/hmmlib/hmmlib.l b/hmmlib/hmmlib.l index e1f0b34..c22f7fc 100644 --- a/hmmlib/hmmlib.l +++ b/hmmlib/hmmlib.l @@ -5,6 +5,8 @@ #include "stb_sb.h" #include "hmmlib.h" + const struct HMML_Version hmml_version = { 0, 1, 0 }; + typedef struct { int line; HMML_Annotation* annos;