aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-25 14:53:34 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-25 14:53:34 -0700
commit270a0a47c4561507fd34d750a59bb1e64acb822c (patch)
tree4a1760221051cc0c09da4134c76c7dec05a64543
parent1593b30393b6a848581d543f088ca8f341c9f14d (diff)
Minor cleanup
-rw-r--r--Lua/lbp.c8
-rw-r--r--bp.c3
2 files changed, 5 insertions, 6 deletions
diff --git a/Lua/lbp.c b/Lua/lbp.c
index 9e5176e..592094b 100644
--- a/Lua/lbp.c
+++ b/Lua/lbp.c
@@ -1,8 +1,8 @@
/*
* lbp.c - bp library for lua
* API:
-* bp.match(str, pat[, start_index]) -> nil or (match_text, start_index, match_len_in_source)
-* bp.replace(str, pat, replacement, start_index) -> str with replacements
+* bp.match(str, pat[, start_index]) -> nil or (match_table, start_index, input_consumed)
+* bp.replace(str, pat, replacement, start_index) -> str with replacements, num_replacements
*/
#include <fcntl.h>
@@ -23,9 +23,9 @@
#define luaL_register(L, _, R) luaL_setfuncs(L, R, 0)
#endif
-static const char *builtins_source =
+static const char *builtins_source = (
#include "builtins.h"
-;
+);
static int MATCH_METATABLE = 0;
diff --git a/bp.c b/bp.c
index 01e7a53..f9d1512 100644
--- a/bp.c
+++ b/bp.c
@@ -32,8 +32,7 @@
#define BP_NAME "bp"
#endif
-static const char *description = (
- BP_NAME" - a Parsing Expression Grammar command line tool");
+static const char *description = BP_NAME" - a Parsing Expression Grammar command line tool";
static const char *usage = (
"Usage:\n"
" "BP_NAME" [flags] <pattern> [<files>...]\n\n"