Fixing style violation.

This commit is contained in:
Daniel Lemire 2019-08-01 16:38:51 -04:00
parent ee66fb1c60
commit 2a240e3fe2
2 changed files with 6 additions and 6 deletions

View File

@ -5,9 +5,9 @@
#define SIMDJSON_VERSION 0.2.0
namespace simdjson {
enum {
SIMDJSON_VERSION_MAJOR = 0,
SIMDJSON_VERSION_MINOR = 2,
SIMDJSON_VERSION_REVISION = 0
SIMDJSON_VERSION_MAJOR = 0,
SIMDJSON_VERSION_MINOR = 2,
SIMDJSON_VERSION_REVISION = 0
};
}
#endif // SIMDJSON_INCLUDE_SIMDJSON_VERSION

View File

@ -89,9 +89,9 @@ with open(versionfile, 'w') as file:
file.write("#define SIMDJSON_VERSION "+toversionstring(*newversion)+"\n")
file.write("namespace simdjson {\n")
file.write("enum {\n")
file.write(" SIMDJSON_VERSION_MAJOR = "+str(newversion[0])+",\n")
file.write(" SIMDJSON_VERSION_MINOR = "+str(newversion[1])+",\n")
file.write(" SIMDJSON_VERSION_REVISION = "+str(newversion[2])+"\n")
file.write(" SIMDJSON_VERSION_MAJOR = "+str(newversion[0])+",\n")
file.write(" SIMDJSON_VERSION_MINOR = "+str(newversion[1])+",\n")
file.write(" SIMDJSON_VERSION_REVISION = "+str(newversion[2])+"\n")
file.write("};\n")
file.write("}\n")
file.write("#endif // SIMDJSON_INCLUDE_SIMDJSON_VERSION\n")