1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-30 00:00:16 +01:00
libwebsockets/minimal-examples/api-tests
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
..
api-test-async-dns async dns: test app: dont use exp as ambiguous 2020-04-11 16:49:13 +01:00
api-test-dhcpc cleaning 2020-01-05 22:17:58 +00:00
api-test-fts cleaning 2020-01-05 22:17:58 +00:00
api-test-gencrypto cleaning 2020-01-05 22:17:58 +00:00
api-test-jose gencrypto: windows: warnings 2020-04-12 08:39:27 +01:00
api-test-lws_dsh cleaning 2020-01-05 22:17:58 +00:00
api-test-lws_sequencer cleaning 2020-01-05 22:17:58 +00:00
api-test-lws_struct-json lejp: correct return temp type to int 2020-05-11 15:17:14 +01:00
api-test-lws_struct_sqlite lws_struct: sqlite open option for create or not 2020-04-20 12:56:58 +01:00
api-test-lws_tokenize windows: clean type warnings 2020-01-11 14:04:50 +00:00
api-test-lwsac cleaning 2020-01-05 22:17:58 +00:00
api-test-smtp_client cleaning 2020-01-05 22:17:58 +00:00
README.md smtp: make abstract 2019-05-04 08:28:31 +01:00

These are buildable test apps that run in CI to confirm correct api operation.

name tests
api-test-lwsac LWS Allocated Chunks api
api-test-lws_struct-json Selftests for lws_struct JSON serialization and deserialization
api-test-lws_tokenize Generic secure string tokenizer api
api-test-fts LWS Full-text Search api
api-test-gencrypto LWS Generic Crypto apis
api-test-jose LWS JOSE apis
api-test-smtp_client SMTP client for sending emails