aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-01-26 21:21:53 +0100
committerThomas White <taw@bitwiz.org.uk>2014-01-26 21:21:53 +0100
commit7c88e350c46cc5523b3252a75b83fdaa651a7f29 (patch)
treef79a30a32b6f54494a4b4a87fd50ebe829c1ad91 /src
parenteea878f4c12bd05972cb03d706f6e24257c3af23 (diff)
Data structures for macros
Diffstat (limited to 'src')
-rw-r--r--src/sc_interp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sc_interp.c b/src/sc_interp.c
index 93b07f0..15441ab 100644
--- a/src/sc_interp.c
+++ b/src/sc_interp.c
@@ -37,6 +37,14 @@
#include "wrap.h"
+struct macro
+{
+ char *name;
+ char *sc;
+ struct macro *prev; /* Previous declaration, or NULL */
+};
+
+
struct sc_state
{
PangoFontDescription *fontdesc;
@@ -46,6 +54,9 @@ struct sc_state
int height;
struct frame *fr; /* The current frame */
+
+ int n_macros;
+ struct macro *macros; /* Contents need to be copied on push */
};