new release.

This commit is contained in:
Daniel Lemire
2019-03-13 20:02:18 -04:00
parent 40ad3d6c92
commit 6af16f4e21
7 changed files with 20 additions and 24 deletions
+3 -3
View File
@@ -10,9 +10,9 @@ endif()
project(simdjson)
set(SIMDJSON_LIB_NAME simdjson)
set(PROJECT_VERSION_MAJOR 0)
set(PROJECT_VERSION_MINOR 0)
set(PROJECT_VERSION_PATCH 1)
set(SIMDJSON_LIB_VERSION "0.0.1" CACHE STRING "simdjson library version")
set(PROJECT_VERSION_MINOR 1)
set(PROJECT_VERSION_PATCH 0)
set(SIMDJSON_LIB_VERSION "0.1.0" CACHE STRING "simdjson library version")
set(SIMDJSON_LIB_SOVERSION "0" CACHE STRING "simdjson library soversion")
if(NOT MSVC)
+3 -3
View File
@@ -1,10 +1,10 @@
// /include/simdjson/simdjson_version.h automatically generated by release.py, do not change by hand
#ifndef SIMDJSON_INCLUDE_SIMDJSON_VERSION
#define SIMDJSON_INCLUDE_SIMDJSON_VERSION
#define SIMDJSON_VERSION = 0.0.1,
#define SIMDJSON_VERSION 0.1.0
enum {
SIMDJSON_VERSION_MAJOR = 0,
SIMDJSON_VERSION_MINOR = 0,
SIMDJSON_VERSION_REVISION = 1
SIMDJSON_VERSION_MINOR = 1,
SIMDJSON_VERSION_REVISION = 0
};
#endif // SIMDJSON_INCLUDE_SIMDJSON_VERSION
+1 -1
View File
@@ -164,7 +164,7 @@ static inline void avx_count_nibbles(__m256i bytes,
// check whether the current bytes are valid UTF-8
// at the end of the function, previous gets updated
static struct avx_processed_utf_bytes
static inline struct avx_processed_utf_bytes
avxcheckUTF8Bytes(__m256i current_bytes,
struct avx_processed_utf_bytes *previous,
__m256i *has_error) {
+1 -1
View File
@@ -1,4 +1,4 @@
/* auto-generated on Fri Mar 8 19:04:53 PST 2019. Do not edit! */
/* auto-generated on Wed 13 Mar 2019 20:02:04 EDT. Do not edit! */
#include <iostream>
#include "simdjson.h"
+1 -1
View File
@@ -1,4 +1,4 @@
/* auto-generated on Fri Mar 8 19:04:53 PST 2019. Do not edit! */
/* auto-generated on Wed 13 Mar 2019 20:02:04 EDT. Do not edit! */
#include "simdjson.h"
/* used for http://dmalloc.com/ Dmalloc - Debug Malloc Library */
+7 -11
View File
@@ -1,13 +1,13 @@
/* auto-generated on Fri Mar 8 19:04:53 PST 2019. Do not edit! */
/* auto-generated on Wed 13 Mar 2019 20:02:04 EDT. Do not edit! */
/* begin file include/simdjson/simdjson_version.h */
// /include/simdjson/simdjson_version.h automatically generated by release.py, do not change by hand
#ifndef SIMDJSON_INCLUDE_SIMDJSON_VERSION
#define SIMDJSON_INCLUDE_SIMDJSON_VERSION
#define SIMDJSON_VERSION = 0.0.1,
#define SIMDJSON_VERSION 0.1.0
enum {
SIMDJSON_VERSION_MAJOR = 0,
SIMDJSON_VERSION_MINOR = 0,
SIMDJSON_VERSION_REVISION = 1
SIMDJSON_VERSION_MINOR = 1,
SIMDJSON_VERSION_REVISION = 0
};
#endif // SIMDJSON_INCLUDE_SIMDJSON_VERSION
/* end file include/simdjson/simdjson_version.h */
@@ -27,7 +27,8 @@ struct simdjson {
static const std::string& errorMsg(const int);
};
#endif/* end file include/simdjson/simdjson.h */
#endif
/* end file include/simdjson/simdjson.h */
/* begin file include/simdjson/portability.h */
#ifndef SIMDJSON_PORTABILITY_H
#define SIMDJSON_PORTABILITY_H
@@ -35727,7 +35728,7 @@ static inline void avx_count_nibbles(__m256i bytes,
// check whether the current bytes are valid UTF-8
// at the end of the function, previous gets updated
static struct avx_processed_utf_bytes
static inline struct avx_processed_utf_bytes
avxcheckUTF8Bytes(__m256i current_bytes,
struct avx_processed_utf_bytes *previous,
__m256i *has_error) {
@@ -36687,11 +36688,6 @@ static really_inline bool parse_number(const uint8_t *const buf,
unsigned char digit = *p - '0';
expnumber = digit;
p++;
while (is_integer(*p)) {
digit = *p - '0';
expnumber = 10 * expnumber + digit;
++p;
}
if (is_integer(*p)) {
digit = *p - '0';
expnumber = 10 * expnumber + digit;
+4 -4
View File
@@ -85,7 +85,7 @@ with open(versionfile, 'w') as file:
file.write("// "+versionfilerel+" automatically generated by release.py, do not change by hand \n")
file.write("#ifndef SIMDJSON_INCLUDE_SIMDJSON_VERSION \n")
file.write("#define SIMDJSON_INCLUDE_SIMDJSON_VERSION \n")
file.write("#define SIMDJSON_VERSION = "+toversionstring(*newversion)+", \n")
file.write("#define SIMDJSON_VERSION "+toversionstring(*newversion)+" \n")
file.write("enum { \n")
file.write(" SIMDJSON_VERSION_MAJOR = "+str(newversion[0])+", \n")
file.write(" SIMDJSON_VERSION_MINOR = "+str(newversion[1])+", \n")
@@ -107,9 +107,9 @@ cmakefile = maindir + os.sep + "CMakeLists.txt"
for line in fileinput.input(cmakefile, inplace=1, backup='.bak'):
line = re.sub('SIMDJSON_LIB_VERSION "\d+\.\d+\.\d+','SIMDJSON_LIB_VERSION "'+newversionstring, line.rstrip())
line = re.sub('SIMDJSON_LIB_SOVERSION "\d+','SIMDJSON_LIB_SOVERSION "'+newmajorversionstring, line)
line = re.sub('set(PROJECT_VERSION_MAJOR \d+','set(PROJECT_VERSION_MAJOR '+newmajorversionstring, line)
line = re.sub('set(PROJECT_VERSION_MINOR \d+','set(PROJECT_VERSION_MINOR '+mewminorversionstring, line)
line = re.sub('set(PROJECT_VERSION_PATCH \d+','set(PROJECT_VERSION_PATCH '+newrevversionstring, line)
line = re.sub('set\(PROJECT_VERSION_MAJOR \d+','set(PROJECT_VERSION_MAJOR '+newmajorversionstring, line)
line = re.sub('set\(PROJECT_VERSION_MINOR \d+','set(PROJECT_VERSION_MINOR '+mewminorversionstring, line)
line = re.sub('set\(PROJECT_VERSION_PATCH \d+','set(PROJECT_VERSION_PATCH '+newrevversionstring, line)
print(line)