From 17c5a70c9632a12bb5741ea6950b2d282bfca278 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 16 Dec 2019 21:13:38 -0500 Subject: Move ARRAY_LEN to database.h --- database.h | 1 + unscoop.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/database.h b/database.h index 1299ab0..6d705db 100644 --- a/database.h +++ b/database.h @@ -26,6 +26,7 @@ #include #define SQL(...) #__VA_ARGS__ +#define ARRAY_LEN(a) (sizeof(a) / sizeof((a)[0])) #define DATABASE_PATH "litterbox/litterbox.sqlite" diff --git a/unscoop.c b/unscoop.c index f2d79cb..5aecf19 100644 --- a/unscoop.c +++ b/unscoop.c @@ -28,8 +28,6 @@ #include "database.h" -#define ARRAY_LEN(a) (sizeof(a) / sizeof((a)[0])) - enum { ParamCap = 8 }; struct Matcher { -- cgit 1.4.1 ='submit' value='switch'/> dontfiles
summary refs log tree commit diff
Commit message (Expand)Author
2021-01-26Use First state to match keyword at beginning of lineJune McEnroe
2021-01-25Install vi on Linux and nvi on macOSJune McEnroe
2021-01-25Use vi and lessJune McEnroe
2021-01-20Use mtags for sh in source-filterJune McEnroe
2021-01-20Generate tags for sh files in mtagsJune McEnroe
2021-01-20Add messy sh lexerJune McEnroe
2021-01-20Add all target to git.causal.agency MakefileJune McEnroe
2021-01-20Remove Lua supportJune McEnroe
2021-01-20Fix tests for diff spansJune McEnroe
2021-01-20Avoid matching ':' in make tagsJune McEnroe
2021-01-19Prefer tag matches not preceded by [[:alnum:]]June McEnroe
2021-01-19Escape \ and / in mtags search patternsJune McEnroe
2021-01-20Use mtags in source-filterJune McEnroe
2021-01-19Add mtags to generate tags for make and mdocJune McEnroe
2021-01-19Map tags to IDs using only [[:alnum:]-._]June McEnroe
2021-01-19Don't use a pager if reading standard inputJune McEnroe
2021-01-19Support BSD make syntax and match *.amJune McEnroe
2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe
2021-01-18Allow matching lexers using first input lineJune McEnroe