Re: [PATCH] Makefile: drop GEN_HDRS
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 17, 2019, 01:43 UTC
- Message-ID
- <20191217014321.GF10734@google.com>
- In-Reply-To
- <20191216192014.GA2678964@coredump.intra.peff.net>
Jeff King wrote:
> I actually wonder if the whole thing would be simpler if command-list.h > was a static tracked file with the declarations, and we generated > command-list.c with "extern const char *command_list[]", etc.
Right, or a "command-list.inc" file.
extern-ing it seems like the simplest way to go.
Thanks, Jonathan