diff options
author | Thomas White <taw@physics.org> | 2019-10-03 16:47:38 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-10-05 17:03:43 +0200 |
commit | 54b33a62d7d1dd5e70ee2d54a0bba51a59bac76f (patch) | |
tree | d6b3cc6723367075c81007ed4be84257f78d296b /libstorycode/storycode.c | |
parent | 74ace225ceec792896b4c778c013830809d45d6d (diff) |
Get rid of spctx completely
Diffstat (limited to 'libstorycode/storycode.c')
-rw-r--r-- | libstorycode/storycode.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libstorycode/storycode.c b/libstorycode/storycode.c index 18e5270..139af67 100644 --- a/libstorycode/storycode.c +++ b/libstorycode/storycode.c @@ -37,7 +37,6 @@ #include "storycode_parse.h" #include "storycode_lex.h" -#include "scparse_priv.h" extern int scdebug; @@ -46,15 +45,16 @@ extern int scdebug; Narrative *storycode_parse_presentation(const char *sc) { YY_BUFFER_STATE b; - struct scpctx parse_ctx; + Narrative *n; b = sc_scan_string(sc); //scdebug = 1; - scparse(&parse_ctx); + n = narrative_new(); + scparse(n); sc_delete_buffer(b); - //narrative_debug(parse_ctx.n); + //narrative_debug(n); - return parse_ctx.n; + return n; } |