mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +01:00
TAGS: reformat to fix when PRINTF_FMT() used.
I was wondering why TAGS was missing some functions, and finally tracked it down: PRINTF_FMT() confuses etags if it's at the start of a function, and it ignores the rest of the file. So we put PRINTF_FMT at the end, but that doesn't work for *definitions*, only *declarations*. So we remove it from definitions and add gratuitous declarations in the few static places.1 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
7374134dab
commit
fe17acf07b
@@ -90,11 +90,10 @@ void json_stream_append(struct json_stream *js, const char *str, size_t len);
|
||||
* The resulting string from @fmt is escaped if quote is true:
|
||||
* see json_member_direct to avoid quoting.
|
||||
*/
|
||||
PRINTF_FMT(4,5)
|
||||
void json_add_member(struct json_stream *js,
|
||||
const char *fieldname,
|
||||
bool quote,
|
||||
const char *fmt, ...);
|
||||
const char *fmt, ...) PRINTF_FMT(4,5);
|
||||
|
||||
/**
|
||||
* json_member_direct - start a generic member.
|
||||
|
||||
Reference in New Issue
Block a user