aboutsummaryrefslogtreecommitdiff
path: root/bp.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-12 22:33:28 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-12 22:33:28 -0800
commit6deb08a4ab64a998a5844df8f61fb8abe56f5d7b (patch)
treea868d425cacc7f5b4c5775aa26a76fe26c2e3696 /bp.c
parent2d109f974b6a03a79db3dd8a5ffe5c2aff76659e (diff)
Added forward declarations for static functions
Diffstat (limited to 'bp.c')
-rw-r--r--bp.c6
1 files changed, 5 insertions, 1 deletions
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);