dev31337
81bff78c86
lejp: enable negative integers
...
https://github.com/warmcat/libwebsockets/issues/1957
2020-06-22 08:14:56 +01:00
Andy Green
080d1fc2ba
lejp: add api test suite and support empty object
...
Adds api-test-lejp to the CI where LEJP enabled.
Supports empty objects like
{ "a": 123, "b": { } }
2020-06-02 08:37:10 +01:00
Andy Green
e4a9307b11
lejp: support outer element is array
2020-05-11 21:20:29 +01:00
Andy Green
af26f0c765
lejp: correct return temp type to int
...
lejp_parse() return type is an int... but in the function, the temp
for it is a char. This leads to badness that is currently worked
around by casting the return through a signed char type.
But that leads to more badness since if there's >127 bytes of buffer
left after the end of the JSON object, we misreport it.
Bite the bullet and fix the temp type, and fix up all the guys
who were working around it at the caller return casting to use the
resulting straight int.
If you are using this api, remove any casting you may have cut-
and-pasted like this
n = (int)(signed char)lejp_parse(...);
... to just be like this...
n = lejp_parse(...);
2020-05-11 15:17:14 +01:00
Andy Green
63c8a23776
lws_spawn: windows
...
Move the unix spawn.c from lib/misc through to lib/plat/unix, and
add an implementation for windows in lib/plat/windows
2020-04-13 19:29:09 +01:00
Kristján Valur Jónsson
1b51301c8d
lejp: fix warnings on windows
2019-10-23 06:36:11 +01:00
Andy Green
d7f0521aeb
private.h: rename to contain dir
...
Having unique private header names is a requirement of a particular
platform build system it's desirable to work with
2019-08-15 10:49:52 +01:00
Andy Green
26319663f7
license: switch LGPLv2.1+SLE parts to MIT
2019-08-14 10:44:38 +01:00
Andy Green
8f06b6fbad
lejp: allow up to 20 digit decimal numbers
...
https://github.com/warmcat/libwebsockets/issues/1559
2019-05-02 09:28:45 +01:00
Andy Green
0405c0c878
lejp: make sure child object close is not mistaken for parent
2019-05-02 09:28:38 +01:00
Andy Green
38fb0e31da
lws_struct
...
lws_struct JSON + sqlite3 serializer and deserializer
See READMEs/README.lws_struct.md
2019-04-06 06:08:47 +08:00
Andy Green
6a88483f02
lejp: integrate error strings and api to core lejp
...
lejp-conf isn't the only user that needs to generate human-readable
JSON parsing error stacks.
Build it in with lejp and introduce an error code -> string api
2019-03-12 11:57:43 +08:00
Andy Green
eda102e397
jwe
2018-12-27 06:45:32 +08:00
Andy Green
253942ca80
clean: solve type conversion warnings for appveyor
2018-09-11 18:27:59 +08:00
Andy Green
d461f46a97
libwebsockets.h: clean out some boilerplate better put in core/private.h
...
https://github.com/warmcat/libwebsockets/issues/1370
2018-08-16 19:10:32 +08:00
Andy Green
94e375f552
lejp: improve bogus JSON underrun detection
...
https://github.com/warmcat/libwebsockets/issues/1357
2018-08-14 08:00:30 +08:00
Andy Green
2e4ac9defe
lejp: fix float
...
https://libwebsockets.org/pipermail/libwebsockets/2018-January/003599.html
2018-01-04 10:28:06 +08:00
Andy Green
2b30c82b9e
lejp: dont underflow with anonymous braces
2017-11-26 19:17:11 +08:00
Andy Green
a76e9aad11
lejp: handle empty arrays
2017-11-26 19:17:11 +08:00
Andy Green
5a90bb36d1
lejp: add test app to parse stdin
2017-10-26 18:55:12 +08:00
Andy Green
f9421f084b
lejp: integrate header into libwebsockets.h
2017-10-26 18:55:11 +08:00
Andy Green
5a0b5299d2
lejp: use explicit signed char return
2017-10-25 07:54:18 +08:00
Andy Green
c83afc66e6
refactor: subdirs for source in lib
...
Split out some optional code into own sources to
shrink down libwebsockets.c and server.c a bit
2017-10-16 17:28:37 +08:00