summaryrefslogtreecommitdiff
path: root/tikzit/src/common/TikzShape.m
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2013-03-23 03:30:19 +0000
committerAlex Merry <dev@randomguy3.me.uk>2013-03-23 03:38:55 +0000
commit8cde489ab6c4169fb03d810447c18eea0d0eaa14 (patch)
treead3fcdc71f1819963198ae8a52fc5f2b2818cd20 /tikzit/src/common/TikzShape.m
parente68a44b882e5d6dbbab769f7ef20355ec53a9278 (diff)
Make the parser/lexer reentrant
No more locking! Also, the interface for TikzGraphAssembler is much simpler. Changes to OSX code are completely untested.
Diffstat (limited to 'tikzit/src/common/TikzShape.m')
-rw-r--r--tikzit/src/common/TikzShape.m6
1 files changed, 1 insertions, 5 deletions
diff --git a/tikzit/src/common/TikzShape.m b/tikzit/src/common/TikzShape.m
index b5b23c3..722275c 100644
--- a/tikzit/src/common/TikzShape.m
+++ b/tikzit/src/common/TikzShape.m
@@ -35,11 +35,7 @@
error:NULL];
if (tikz == nil) return nil;
- TikzGraphAssembler *ass = [[TikzGraphAssembler alloc] init];
- [ass parseTikz:tikz];
-
- Graph *graph = [ass graph];
- [ass release];
+ Graph *graph = [TikzGraphAssembler parseTikz:tikz];
if (graph == nil) return nil;
NSRect graphBounds = ([graph hasBoundingBox]) ? [graph boundingBox] : [graph bounds];