Skip to content

JS_REGEX_BUILD_VERSION definition #2

Description

@frank-dittrich

In an earlier revision, JS_REGEX_BUILD_VERSION was defined as 122.
Now, /usr/local/include/librexgen/version.h has

#define JS_REGEX_MAJOR_VERSION 1
#define JS_REGEX_MINOR_VERSION 1
#define JS_REGEX_BUILD_VERSION DEV

Shouldn't that be:

#define JS_REGEX_BUILD_VERSION "DEV"

Still not optimal, since apparently JS_REGEX_BUILD_VERSION has been defined as an integer in the past, and now became a string, while JS_REGEX_MAJOR_VERSION and JS_REGEX_MINOR_VERSION didn't change.

For the run time version, rexgen_version() can be used. But sometimes, you want to report the rexgen version that has been used when building a binary stat uses librexgen.

May be you can do this now:

#define JS_REGEX_MAJOR_VERSION 1
#define JS_REGEX_MINOR_VERSION 2
#define JS_REGEX_BUILD_VERSION 0
#define JS_REGEX_BUILD_VERSION_SUFFIX "DEV"

and this later:

#define JS_REGEX_MAJOR_VERSION 1
#define JS_REGEX_MINOR_VERSION 2
#define JS_REGEX_BUILD_VERSION 1
#define JS_REGEX_BUILD_VERSION_SUFFIX ""

or something similar that makes sure JS_REGEX_BUILD_VERSION remains an integer.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions