From 8cde489ab6c4169fb03d810447c18eea0d0eaa14 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sat, 23 Mar 2013 03:30:19 +0000 Subject: Make the parser/lexer reentrant No more locking! Also, the interface for TikzGraphAssembler is much simpler. Changes to OSX code are completely untested. --- tikzit/src/common/TikzShape.m | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tikzit/src/common/TikzShape.m') 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]; -- cgit v1.2.3