summary refs log tree commit diff
path: root/scoop.c
diff options
context:
space:
mode:
Diffstat (limited to 'scoop.c')
-rw-r--r--scoop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scoop.c b/scoop.c
index 8c113d5..95fb794 100644
--- a/scoop.c
+++ b/scoop.c
@@ -283,7 +283,9 @@ static void regexp(sqlite3_context *ctx, int n, sqlite3_value *args[]) {
 	sqlite3_result_int(ctx, !error);
 }
 
-static char select[4096] = SQL(
+enum { QueryCap = 4096 };
+
+static char select[QueryCap] = SQL(
 	SELECT
 		events.event,
 		contexts.network,
@@ -306,8 +308,6 @@ static char select[4096] = SQL(
 		events.target,
 );
 
-enum { QueryCap = 4096 };
-
 static char from[QueryCap] = SQL(
 	FROM events
 	JOIN contexts USING (context)
8Indicate if still reading or no resultsJune McEnroe 2022-06-08Add Maiden, Mother, CroneJune McEnroe 2022-06-05FIRST SHOW IN 2.5 YEARS BABEY!!!June McEnroe 2022-06-03Set line number on File linesJune McEnroe 2022-06-03Stop polling stdin after EOFJune McEnroe 2022-06-02Set TABSIZE=4June McEnroe 2022-06-02Do basic match highlightingJune McEnroe 2022-06-02Clean up parsing a littleJune McEnroe 2022-06-02Don't duplicate path stringJune McEnroe 2022-06-02Use stderr instead of /dev/tty, realloc buffer if lines too longJune McEnroe 2022-06-02Add initial working version of qfJune McEnroe 2022-05-29Set prompt for okshJune McEnroe