aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/qreg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/qreg.h')
-rw-r--r--src/qreg.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/qreg.h b/src/qreg.h
index e9a9b1b..4a7c15c 100644
--- a/src/qreg.h
+++ b/src/qreg.h
@@ -144,9 +144,16 @@ struct teco_qreg_table_t {
* b) The top-level local register table.
*/
gboolean must_undo;
+
+ /**
+ * The radix register in this local Q-Register table or NULL.
+ * This is an optimization to avoid frequent table lookups.
+ */
+ teco_qreg_t *radix;
};
void teco_qreg_table_init(teco_qreg_table_t *table, gboolean must_undo);
+void teco_qreg_table_init_locals(teco_qreg_table_t *table, gboolean must_undo);
/** @memberof teco_qreg_table_t */
static inline teco_qreg_t *