Daniel Lemire
bea1483cde
Fixing minor issue with document stream (DOM). ( #1648 )
...
* Fixing minor issue with document stream (DOM).
* Porting over the fix.
2021-07-05 17:40:04 -04:00
Amos Bird
8df32cea33
Return err when alloc failure ( #1567 )
2021-05-14 22:51:07 -04:00
Daniel Lemire
8eed8f5155
Document stream: truncate final unfinished document and give access to the number of truncated bytes. ( #1534 )
...
* Truncate final unclosed string.
* Adding more precise remarks.
* Better documentation and more robust code.
* ARM + PPC corrections.
* Patching ARM implementation with new stage1_mode parameter.
* Fixed most problems.
* Correcting white spaces and adding a remark.
* This adds the truncated_bytes() method to the stream instances.
2021-04-23 09:24:00 -04:00
Tibbel
5613d30e97
partly replacement old-style-cast to c++ *_cast ( #1403 )
...
Co-authored-by: Tibbel <tibbel@ma-gi.de >
2021-01-27 13:33:48 -05:00
Daniel Lemire
d9c4191e8a
This should fix an issue we have with unclosed strings with document_stream ( #1321 )
...
* This should fix an issue we have with unclosed strings.
* Patching the fallback kernel.
* Better guarding the code.
* Patching the fallback.
2020-11-30 13:43:57 -05:00
Paul Dreik
af4db55e66
remove trailing whitespace ( #1284 )
2020-11-03 21:48:09 +01:00
Daniel Lemire
6321df078a
This fixes very minor "mistakes". ( #1281 )
2020-11-02 20:04:04 -05:00
Daniel Lemire
bb2bc98a22
Fix issue https://github.com/simdjson/simdjson/issues/1127 ( #1224 )
2020-10-13 09:18:54 -04:00
John Keiser
a700848bae
Move ondemand implementation to include/
2020-10-04 12:47:30 -07:00
John Keiser
9bbfd5804e
Put haswell/westmere/fallback/amd64 in simdjson namespace
2020-10-04 12:47:30 -07:00
John Keiser
b234d74f43
Remove unnamed namespace from ondemand
2020-10-04 12:47:30 -07:00
John Keiser
c892b83c93
Make ondemand classes usable from simdjson_result
2020-10-04 12:47:30 -07:00
Daniel Lemire
0e584fa4a5
Attempt to fix issue 1187. ( #1192 )
2020-09-27 12:04:47 -04:00
Daniel Lemire
3e5497e2f9
Fixes issue 1170 and makes the usage of minify easier. ( #1171 )
...
* Fixes issue 1170 and makes the usage of minify easier.
* This should get the fallback implementation to detect unclosed strings.
2020-09-12 16:20:20 -04:00
John Keiser
04d39c0961
Make tape_builder primary entry point to stage 2
2020-08-18 21:25:01 -07:00
Daniel Lemire
8a8eea53a2
Prefixing macros (issue 1035) ( #1124 )
...
* Renaming partially done.
* More prefixing.
* I thought that this was fixed.
* Missed one.
* Missed a few.
* Missed another one.
* Minor fixes.
2020-08-18 18:25:36 -04:00
John Keiser
ec28acba3d
De-templatize stage2::structural_parser
2020-08-03 23:09:15 -07:00
John Keiser
ee6647ce40
Make parse part of structural_parser
2020-08-03 17:50:51 -07:00
John Keiser
66a68ce264
Return errors immediately instead of using goto
2020-08-02 12:04:12 -07:00
John Keiser
379a4e6a01
namespace { -> unnamed namespace
2020-08-01 14:46:23 -07:00
John Keiser
bc8a6dd2e3
Remove dead code
2020-08-01 14:43:10 -07:00
John Keiser
4e944a9f3c
Eliminate unused functions in fallback
2020-08-01 14:43:10 -07:00
John Keiser
c7fa9b5fe8
Make entire implementation namespaces anonymous
2020-08-01 14:43:10 -07:00
John Keiser
65148b123b
Put anonymous namespace in front of everything
2020-08-01 14:43:10 -07:00
John Keiser
7d347be902
Untangle amalgamated headers
2020-07-24 02:56:41 -07:00
John Keiser
bf67c967d6
Inline jsoncharutils per-implementation
2020-07-24 02:56:41 -07:00
John Keiser
44b7a7145c
Include bitmanip/simd everywhere
2020-07-24 02:56:39 -07:00
John Keiser
3867ee71ed
Include files where they are used
2020-07-24 02:56:37 -07:00
John Keiser
464f4813e3
Define namespaces inside generic files
2020-07-24 02:56:36 -07:00
John Keiser
af8b52e7e8
Target region for entire compilation of an implementation
2020-07-24 02:48:25 -07:00
John Keiser
6797a6ab56
Use const uint8_t * in number parsing
2020-07-10 09:17:23 -07:00
Daniel Lemire
2bb101bd19
Code reformatting.
2020-06-22 16:50:57 -04:00
Daniel Lemire
f03a6ab5a4
Tweaking.
2020-06-21 17:39:24 -04:00
Daniel Lemire
5dc07ed295
It builds.
2020-06-21 17:20:33 -04:00
Daniel Lemire
064d4255d5
Ok.
2020-06-21 17:09:06 -04:00
John Keiser
a5beffda78
Remove streaming_structural_parser.h
2020-06-08 15:20:56 -07:00
John Keiser
0dbda65e44
Fix fallback implementation
2020-06-08 14:52:23 -07:00
John Keiser
ed0c815735
Move unclosed array check to stage 2
2020-06-05 12:39:13 -07:00
Daniel Lemire
7a69da16e4
Fixing issue 906 ( #912 )
...
* Fixing issue 906
* Safe patching.
* Now with explanations.
* Bumping up memory allocation.
* Putting the patch back.
* fallback fixes.
Co-authored-by: Daniel Lemire <lemire@gmai.com >
2020-06-05 15:37:09 -04:00
John Keiser
b75fa26dc1
Move containing_scope and ret_address to .cpp
2020-06-01 12:15:55 -07:00
John Keiser
1aab4752e2
Store all parser state in the implementation
2020-06-01 12:15:54 -07:00
John Keiser
6a71b24495
Reuse stored buf and len from parser
2020-06-01 12:14:09 -07:00
John Keiser
84712a8bbc
Store buf and len in parser implementation
2020-06-01 12:14:09 -07:00
John Keiser
b86fb95306
Rename doc_parser -> parser
2020-06-01 12:14:09 -07:00
John Keiser
a3a9bde83e
Move DOM parsing into concrete interface implementation
2020-06-01 12:14:09 -07:00
John Keiser
5651fbedc4
Add logging to stage 2
2020-05-21 09:47:19 -07:00
John Keiser
7ad4020829
Make main compilation chunks into .cpp files
2020-05-19 13:32:35 -07:00
John Keiser
72ab0d11ff
Move stage 1 and 2 files to their own directories
2020-05-19 13:30:34 -07:00
John Keiser
4ea866f050
Move stage2 classes into their own files
2020-05-19 13:30:34 -07:00
John Keiser
d4a37f6ef5
Enable conversion warnings on Linux and Windows
2020-04-22 14:21:30 -07:00