pipewire/test
Pauli Virtanen 31e5823010 spa: json: more parsing errors & add spa_json_get_error
Disallow = and : as bare items in [] containers, as that likely is
"[ { foo = bar } ]" mistyped as "[ foo = bar ]".

Disallow nesting errors, eg. "[ foo bar" or "[ foo bar }".

Fix handling of ", \ and # in bare strings.

Fix ignoring trailing comments.

Add a fixed-size stack (128 levels) to the tokenizer, so that it can
check these at levels below its depth.

When the tokenizer encounters an error, make it and its parents enter
error state where no further input will be processed. This allows caller
to check for parse errors later as convenient.

The error state can be queried using spa_json_get_error, which also
looks up the error line/column position.
2024-03-25 20:49:25 +02:00
..
meson.build meson: fix compilation when spa-plugins is disabled 2024-02-06 11:50:54 +01:00
pwtest-compat.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
pwtest-implementation.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
pwtest.c treewide: try to use const char * for string literals 2023-09-16 17:47:35 +02:00
pwtest.h treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-array.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-client.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-config.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-context.c test: fix test 2023-07-19 11:35:03 +02:00
test-example.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-functional.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-lib.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-logger.c test: fix test error message check 2024-01-04 10:02:55 +00:00
test-loop.c hooks: add and use _fast callback function 2023-05-06 00:27:12 +02:00
test-map.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-properties.c spa: json: more parsing errors & add spa_json_get_error 2024-03-25 20:49:25 +02:00
test-pwtest.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-buffer.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-json.c spa: json: more parsing errors & add spa_json_get_error 2024-03-25 20:49:25 +02:00
test-spa-log.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-node.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-pod.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-spa-utils.c Port: Add tag param 2023-08-29 14:22:13 +02:00
test-support.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00
test-utils.c treewide: use SPDX tags to specify copyright information 2023-02-16 10:54:48 +00:00