Skip to content

Commit cc385a4

Browse files
author
Håkan Lundvall
committed
Fixed bug in generated code for interactive function calls.
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1895 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 305bcb4 commit cc385a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Compiler/Static.rml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2881,6 +2881,7 @@ relation generate_compiled_function: (Env.Env, Absyn.ComponentRef, Exp.Exp, Type
28812881
string_append(pathstr,".c") => filename &
28822882
Print.print_buf "#include \"modelica.h\"\n#include <stdio.h>\n#include <stdlib.h>\n#include <errno.h>\n" &
28832883
Print.print_buf "\nint main(int argc, char** argv)\n{\n\n if (argc != 3)\n {\n fprintf(stderr,\"# Incorrrect number of arguments\\n\");\n return 1;\n }\n" &
2884+
Print.print_buf " _" &
28842885
Print.print_buf pathstr &
28852886
Print.print_buf "_read_call_write(argv[1],argv[2]);\n return 0;\n}\n" &
28862887
Print.write_buf(filename)& Print.clear_buf() &

0 commit comments

Comments
 (0)