From 26c27194d8ad1d484044717d447c508815cdac73 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Tue, 29 Apr 2014 19:32:35 -0400 Subject: [PATCH] Added a typedef for dictionary definitions --- source/slvm/slvm.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/slvm/slvm.h b/source/slvm/slvm.h index a9300cf..f56399c 100644 --- a/source/slvm/slvm.h +++ b/source/slvm/slvm.h @@ -77,6 +77,14 @@ typedef struct word_t { val_t* code; } word_t; +/** This structure defines a dictionary of defined words. */ +typedef struct dict_t { + /** Pointer to the previously loaded dictionary */ + struct dict_t* link; + /** Pointer to the most recently defined word in this dictionary */ + word_t* words; +} dict_t; + /** Execute a built-in word directly */ #define EXEC(word) (word).codeword((word).code) -- 2.52.0