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:
Rusty Russell
2019-11-01 10:08:00 +10:30
committed by neil saitug
parent 7374134dab
commit fe17acf07b
11 changed files with 52 additions and 30 deletions

View File

@@ -58,8 +58,10 @@ void connect_htlc_out(struct htlc_out_map *map, struct htlc_out *hend)
htlc_out_map_add(map, hend);
}
static void *PRINTF_FMT(2,3)
corrupt(const char *abortstr, const char *fmt, ...)
static void *corrupt(const char *abortstr, const char *fmt, ...)
PRINTF_FMT(2,3);
static void *corrupt(const char *abortstr, const char *fmt, ...)
{
if (abortstr) {
char *p;