From 6deb08a4ab64a998a5844df8f61fb8abe56f5d7b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 12 Jan 2021 22:33:28 -0800 Subject: Added forward declarations for static functions --- bp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bp.c') diff --git a/bp.c b/bp.c index 8d48ed3..1db9bf4 100644 --- a/bp.c +++ b/bp.c @@ -41,11 +41,15 @@ static const char *usage = ( static print_options_t print_options = 0; +__attribute__((nonnull)) +static char *getflag(const char *flag, char *argv[], int *i); +__attribute__((nonnull(3))) +static int process_file(def_t *defs, const char *filename, vm_op_t *pattern, unsigned int flags); + // // Return a pointer to the value part of a flag, if present, otherwise NULL. // This works for --foo=value or --foo value // -__attribute__((nonnull)) static char *getflag(const char *flag, char *argv[], int *i) { size_t n = strlen(flag); -- cgit v1.2.3