]> git.mdlowis.com Git - proto/sclpl.git/commitdiff
Added a typedef for dictionary definitions
authorMichael D. Lowis <mike@mdlowis.com>
Tue, 29 Apr 2014 23:32:35 +0000 (19:32 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Tue, 29 Apr 2014 23:32:35 +0000 (19:32 -0400)
source/slvm/slvm.h

index a9300cf19ddc51b7da4ef184e718fc6859a24977..f56399c12a3f882c0a448565b9c3cc2a6a7c11e1 100644 (file)
@@ -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)