aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-04-09 23:59:30 +0200
committerLuc Van Oostenryck <luc.vanoostenryck@gmail.com>2021-04-10 01:13:36 +0200
commit8fd2c0b489d3fe371081ceddb1637713a452eefd (patch)
tree0fbfa1f22887ae9d6f7cf20cb24444c5be550a4e
parent5e674421d5f144612a8d39cafae557bbfa7026fa (diff)
downloadsparse-8fd2c0b489d3fe371081ceddb1637713a452eefd.tar.gz
export declare_builtins()
Make declare_builtins() extern so that it can be used from other files. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r--builtin.c2
-rw-r--r--builtin.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/builtin.c b/builtin.c
index c7e7da3b..ff03dbab 100644
--- a/builtin.c
+++ b/builtin.c
@@ -559,7 +559,7 @@ static void declare_builtin(int stream, const struct builtin_fn *entry)
}
}
-static void declare_builtins(int stream, const struct builtin_fn tbl[])
+void declare_builtins(int stream, const struct builtin_fn tbl[])
{
if (!tbl)
return;
diff --git a/builtin.h b/builtin.h
index d0d3fd2c..9cb67284 100644
--- a/builtin.h
+++ b/builtin.h
@@ -12,4 +12,6 @@ struct builtin_fn {
struct symbol_op *op;
};
+void declare_builtins(int stream, const struct builtin_fn tbl[]);
+
#endif