From 641803df358a2377e078c8c1ea05617bfe83bc1d Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Thu, 31 Oct 2024 06:49:40 +0100 Subject: Enable user-defined actions Also fix pclose() handling within Info plugins, and prevent them from screwing up the terminal with error output on initialization. This is still rather crude, but at least it's possible. --- nncmpp.actions.awk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nncmpp.actions.awk') diff --git a/nncmpp.actions.awk b/nncmpp.actions.awk index b4d7eaf..8cd18e7 100644 --- a/nncmpp.actions.awk +++ b/nncmpp.actions.awk @@ -1,6 +1,6 @@ # nncmpp.actions.awk: produce C code for a list of user actions # -# Copyright (c) 2022, Přemysl Eric Janouch +# Copyright (c) 2022 - 2024, Přemysl Eric Janouch # SPDX-License-Identifier: 0BSD # # Usage: env LC_ALL=C A=0 B=1 awk -f nncmpp.actions.awk \ @@ -91,7 +91,7 @@ END { print "enum action {" for (i in Constants) print "\t" "ACTION_" Constants[i] "," - print "\t" "ACTION_COUNT" + print "\t" "ACTION_USER_0" print "};" print "" print "static const char *g_action_names[] = {" -- cgit v1.2.3-70-g09d2