Add support for versioning
This commit is contained in:
parent
26c68ad080
commit
fb517dcabf
2 changed files with 18 additions and 1 deletions
|
@ -2215,4 +2215,12 @@ ups_markdown(struct buf *ob, struct buf *ib, const struct mkd_renderer *rndrer,
|
|||
parr_free(&rndr.work_bufs[BUFFER_BLOCK]);
|
||||
}
|
||||
|
||||
void
|
||||
ups_version(int *ver_major, int *ver_minor, int *ver_revision)
|
||||
{
|
||||
*ver_major = UPSKIRT_VER_MAJOR;
|
||||
*ver_minor = UPSKIRT_VER_MINOR;
|
||||
*ver_revision = UPSKIRT_VER_REVISION;
|
||||
}
|
||||
|
||||
/* vim: set filetype=c: */
|
||||
|
|
|
@ -21,6 +21,11 @@
|
|||
|
||||
#include "buffer.h"
|
||||
|
||||
#define UPSKIRT_VERSION "1.2.0"
|
||||
#define UPSKIRT_VER_MAJOR 1
|
||||
#define UPSKIRT_VER_MINOR 2
|
||||
#define UPSKIRT_VER_REVISION 0
|
||||
|
||||
/********************
|
||||
* TYPE DEFINITIONS *
|
||||
********************/
|
||||
|
@ -104,10 +109,14 @@ is_safe_link(const char *link, size_t link_len);
|
|||
* EXPORTED FUNCTIONS *
|
||||
**********************/
|
||||
|
||||
/* markdown • parses the input buffer and renders it into the output buffer */
|
||||
/* ups_markdown * parses the input buffer and renders it into the output buffer */
|
||||
extern void
|
||||
ups_markdown(struct buf *ob, struct buf *ib, const struct mkd_renderer *rndr, unsigned int extensions);
|
||||
|
||||
/* ups_version * returns the library version as major.minor.rev */
|
||||
extern void
|
||||
ups_version(int *major, int *minor, int *revision);
|
||||
|
||||
#endif
|
||||
|
||||
/* vim: set filetype=c: */
|
||||
|
|
Loading…
Reference in a new issue