Skip to content

Commit

Permalink
Fixed bug with linking
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1450 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Peter Aronsson committed Feb 1, 2005
1 parent 4fb6b8f commit b734529
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions flat_modelica_parser/src/flat_modelica_lexer.g
@@ -1,14 +1,4 @@
header {
#include <string>
#include <iostream>
std::string & replaceAll(std::string & str, const char *src, const char* dst)
{
size_t pos;
while((pos = str.find(".")) < str.size()-1) {
str.replace(pos,1,"_");
}
return str;
}

}

Expand Down Expand Up @@ -103,8 +93,16 @@ tokens {
WITH = "with";
WITHTYPE = "withtype";
}


{
std::string & replaceAll(std::string & str, const char *src, const char* dst)
{
size_t pos;
while((pos = str.find(".")) < str.size()-1) {
str.replace(pos,1,"_");
}
return str;
}
}
// ---------
// Operators
// ---------
Expand Down

0 comments on commit b734529

Please sign in to comment.