commit cac4b23337d9881edfd83de46fa306d37d6efd66
parent 8278d0f399abdaa9ec4afda1ce7549bcc955f5e8
Author: Remy Noulin <loader2x@gmail.com>
Date: Tue, 30 Apr 2019 19:40:24 +0200
add isCompiledWithCurrentLisheepyVersion
Diffstat:
3 files changed, 14 insertions(+), 21 deletions(-)
diff --git a/boxen.c b/boxen.c
@@ -584,3 +584,8 @@ internal winSizet wsize (void)
//-----------------------
// vim: set expandtab ts=2 sw=2:
+
+bool checkLibsheepyVersionBoxen(const char *currentLibsheepyVersion) {
+ return eqG(currentLibsheepyVersion, LIBSHEEPY_VERSION);
+}
+
diff --git a/boxen.h b/boxen.h
@@ -185,3 +185,6 @@ boxent* allocBoxen(void);
/* end class boxen*/
// vim: set expandtab ts=2 sw=2:
+
+#define isBoxenCompiledWithCurrentLisheepyVersion checkLibsheepyVersionBoxen(LIBSHEEPY_VERSION)
+bool checkLibsheepyVersionBoxen(const char *currentLibsheepyVersion);
diff --git a/package.yml b/package.yml
@@ -1,32 +1,17 @@
---
name: boxen
- version: 0.0.4
- description: "Create boxes in the terminal"
+ version: 0.0.5
+ description: Create boxes in the terminal
bin: ./boxen.c
- #cflags: -DA -ggdb -std=gnu11 -fPIC -pipe
- #lflags: -lpcre
repository:
type: git
- url: git+https://github.com/RemyNoulin/boxen.git
+ url: "git+https://github.com/RemyNoulin/boxen.git"
keywords:
- utility
- box
author: Remy Noulin
license: MIT
bugs:
- url: https://github.com/RemyNoulin/boxen/issues
- homepage: https://github.com/RemyNoulin/boxen#readme
- #compileHelp: # text displayed when there is a compilation error
- #dependencies:
- # md4c:
- # Test configuration:
- #testBin: ./testBoxen.c
- #testCflags: -ggdb -std=gnu11 -fPIC -pipe -fprofile-arcs -ftest-coverage -Wall -Wextra
- #testLflags: -lcheck_pic -lrt -lm -lsubunit -fprofile-arcs -ftest-coverage -rdynamic
- # Memcheck configuration:
- #memcheckBin: ./memcheckBoxen.c
- #memcheckCmd: valgrind --leak-check=full --show-leak-kinds=all
- #memcheckCflags: -ggdb -std=gnu11 -fPIC -pipe
- #memcheckLflags: -rdynamic
- #documentationCmd: # command for generating the documentation with spm doc
- private: false # true for private package
+ url: "https://github.com/RemyNoulin/boxen/issues"
+ homepage: "https://github.com/RemyNoulin/boxen#readme"
+ private: false