core-lightning/lightningd/test
Mark Beckwith bd5bf1f168 Enhanced param parsing
[ Squashed into single commit --RR ]

This adds two new macros, `p_req_tal()` and `p_opt_tal()`. These support
callbacks that take a `struct command *` context.  Example:

	static bool json_tok_label_x(struct command *cmd,
                                      const char *name,
				      const char *buffer,
				      const jsmntok_t *tok,
				      struct json_escaped **label)

The above is taken from the run-param unit test (near the bottom of the diff).
The return value is true on success, or false (and it calls command_fail itself).

We can pretty much remove all remaining usage of `json_tok_tok` in the codebase
with this type of callback.
2018-08-10 02:15:30 +00:00
..
Makefile Re-enable builds with DEVELOPER=0 2017-12-20 12:43:10 +01:00
run-commit_tx.c Remove tal_len, use tal_count() or tal_bytelen(). 2018-07-30 11:31:17 +02:00
run-cryptomsg.c status: make status_io a more generic mechanism. 2018-05-10 02:28:44 +00:00
run-find_my_path.c gossipd: remove connectd functionality, enable connectd. 2018-07-25 02:13:52 +00:00
run-funding_tx.c lightningd: fix up BOLT references. 2018-06-18 12:31:09 +02:00
run-key_derive.c Force the use of the POSIX C locale for all commands and their subprocesses 2018-04-27 14:02:59 +02:00
run-param.c Enhanced param parsing 2018-08-10 02:15:30 +00:00