Skip to content

Commit

Permalink
Make ParModelica String variables an error
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund authored and OpenModelica-Hudson committed Jan 12, 2017
1 parent bbc489c commit 5e1589a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions Compiler/Template/CodegenCFunctions.tpl
Expand Up @@ -1948,17 +1948,7 @@ match var
* before set_memory_state. Strings are not known, so we copy them, etc...
*/
case var as VARIABLE(ty = T_STRING(__)) then
if not acceptMetaModelicaGrammar() then
// We need to strdup() all strings, then allocate them on the memory pool again, then free the temporary string
let &varCopy += 'String Variables not Allowed in ParModelica.'
let &varAssign +=
<<
String Variables not Allowed in ParModelica.
>>
""
else
let &varAssign += 'How did you get here??'
""
error(sourceInfo(), "String Variables not Allowed in ParModelica.")

case var as VARIABLE(parallelism = PARGLOBAL(__)) then
let instDimsInit = (instDims |> exp =>
Expand Down

0 comments on commit 5e1589a

Please sign in to comment.