From 32122651bdb51006edce2be3586dd09179bed52f Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sun, 23 Aug 2026 00:28:23 +0200 Subject: introduced helper functions teco_qreg_table_get_string() and teco_qreg_table_get_integer() * Simplifies the common task of querying an integer or string from a Q-Register table. * Undefined Q-Regs are reported as TECO_ERROR_QREGUNDEF, so you can theoretically handle this case. In practice however, it requires less boilerplating to just call teco_qreg_table_find() manually. * It also doesn't make sense to use these functions when getting and setting a register at the same time as you will want to avoid repeated lookups. --- src/error.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/error.h') diff --git a/src/error.h b/src/error.h index a848116..1306feb 100644 --- a/src/error.h +++ b/src/error.h @@ -50,6 +50,7 @@ typedef enum { TECO_ERROR_SUBPATTERN, TECO_ERROR_INVALIDBUF, TECO_ERROR_INVALIDQREG, + TECO_ERROR_QREGUNDEF, TECO_ERROR_QREGOPUNSUPPORTED, TECO_ERROR_QREGCONTAINSNULL, TECO_ERROR_EDITINGLOCALQREG, -- cgit v1.2.3