aboutsummaryrefslogtreecommitdiff
path: root/grammar.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 /grammar.c
parent2d109f974b6a03a79db3dd8a5ffe5c2aff76659e (diff)
Added forward declarations for static functions
Diffstat (limited to 'grammar.c')
-rw-r--r--grammar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/grammar.c b/grammar.c
index e9ea4b4..cdc8f51 100644
--- a/grammar.c
+++ b/grammar.c
@@ -10,6 +10,9 @@
#include "grammar.h"
#include "utils.h"
+__attribute__((nonnull(2,3,4), returns_nonnull))
+static def_t *with_backref(def_t *defs, file_t *f, const char *name, match_t *m);
+
//
// Return a new list of definitions with one added to the front
//
@@ -67,7 +70,6 @@ vm_op_t *lookup(def_t *defs, const char *name)
//
// Push a backreference onto the backreference stack
//
-__attribute__((nonnull))
static def_t *with_backref(def_t *defs, file_t *f, const char *name, match_t *m)
{
vm_op_t *op = new(vm_op_t);