summaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-01 03:11:29 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-02-01 03:11:29 (GMT)
commit76f0b1119f1be174ce7adbb1458d2d9a3fa30d22 (patch)
tree0c30a8720e8fd56a6a051ec3a2d2d3f61307b7e1 /src/parser.y
parent17eb94bf67ae55fb3f649d99790593907b7820b0 (diff)
bugfix: In MDI mode, the parser must know which file it compiles, not just the contents, for inluded files to be found. Made the parser Qt-dependant - oh well...
git-svn-id: http://svn.clifford.at/openscad/trunk@395 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.y b/src/parser.y
index 91d49cf..8d986fe 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -504,12 +504,14 @@ void yyerror (char const *s)
extern FILE *lexerin;
extern const char *parser_input_buffer;
const char *parser_input_buffer;
+const char *parser_source_path;
-AbstractModule *parse(const char *text, int debug)
+AbstractModule *parse(const char *text, const char *path, int debug)
{
lexerin = NULL;
parser_error_pos = -1;
parser_input_buffer = text;
+ parser_source_path = path;
module_stack.clear();
module = new Module();
contact: Jan Huwald // Impressum