Skip to content

Commit

Permalink
Note to self: Bootstrapping + changing parser at the same time is ann…
Browse files Browse the repository at this point in the history
…oying

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@15093 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 7, 2013
1 parent 2ff29f3 commit 75cd767
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/ParserExt.mo
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function parse "Parse a mo-file"
input Boolean runningTestsuite;
output Absyn.Program outProgram;

external "C" outProgram=ParserExt_parse(filename, acceptedGram, encoding, runningTestsuite) annotation(Library = {"omparse","antlr3","omcruntime"});
external "C" outProgram=ParserExt_parse(filename, infoFilename, acceptedGram, encoding, runningTestsuite) annotation(Library = {"omparse","antlr3","omcruntime"});
end parse;

public function parseexp "Parse a mos-file"
Expand All @@ -60,7 +60,7 @@ public function parseexp "Parse a mos-file"
input Boolean runningTestsuite;
output Interactive.Statements outStatements;

external "C" outStatements=ParserExt_parseexp(filename, acceptedGram, runningTestsuite) annotation(Library = {"omparse","antlr3","omcruntime"});
external "C" outStatements=ParserExt_parseexp(filename, infoFilename, acceptedGram, runningTestsuite) annotation(Library = {"omparse","antlr3","omcruntime"});
end parseexp;

public function parsestring "Parse a string as if it were a stored definition"
Expand Down
4 changes: 2 additions & 2 deletions Compiler/runtime/System_omc.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,10 @@ extern const char* System_snprintff(const char *fmt, int len, double d)

extern const char* System_realpath(const char *path)
{
char buf[PATH_MAX];
static char buf[PATH_MAX];
if (realpath(path, buf) == NULL)
MMC_THROW();
return init_modelica_string(buf);
return buf;
}

#ifdef __cplusplus
Expand Down

0 comments on commit 75cd767

Please sign in to comment.