aboutsummaryrefslogtreecommitdiff
path: root/bp.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-01-10 00:12:09 -0800
committerBruce Hill <bruce@bruce-hill.com>2021-01-10 00:12:09 -0800
commit9d1f51c483578c66d401a59f59ad18add0e1a52f (patch)
tree569d53f5a3adb2e7de56bba7f38ad0267476aec2 /bp.c
parentaa91728a082cde784e01078944dc39e6df0877fa (diff)
Simplified grammars using intrusive linked lists instead of dynamic
arrays
Diffstat (limited to 'bp.c')
-rw-r--r--bp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bp.c b/bp.c
index cefb5aa..bcc8b98 100644
--- a/bp.c
+++ b/bp.c
@@ -133,7 +133,7 @@ int main(int argc, char *argv[])
char path[PATH_MAX] = {0};
const char *rule = "find-all";
- grammar_t *g = new_grammar();
+ grammar_t *g = new(grammar_t);
// Load builtins:
if (access("/etc/xdg/bp/builtins.bp", R_OK) != -1)