Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Changed from an MSL based on 3.2 to 3.2.1
- Should not break the testsuite
- Will break the testsuite


git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@12772 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Sep 4, 2012
1 parent 745d973 commit b1c77aa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Compiler/runtime/systemimpl.c
Expand Up @@ -1515,7 +1515,9 @@ int SystemImpl__getLoadModelPath(const char *name, void *prios, void *mps, const
/* Check if this file has higher priority than the last found match */
while (RML_NILHDR != RML_GETHDR(priosWork)) {
if (prio > outPrio) break;
const char *cverPrio = RML_STRINGDATA(RML_CAR(priosWork));
void *cverCar = RML_CAR(priosWork);
const char *cverPrio = RML_STRINGDATA(cverCar);
int cverLength = RML_HDRSTRLEN(RML_GETHDR(cverCar));
priosWork = RML_CDR(priosWork);
/* fprintf(stderr, "'%s' '%s' %d\n", cverPrio, version, versionLen); */
if (0 == strcmp("default",cverPrio)) {
Expand All @@ -1542,8 +1544,14 @@ int SystemImpl__getLoadModelPath(const char *name, void *prios, void *mps, const
if (*outName) free(*outName);
*outName = strdup(ent->d_name);
*isDir = cIsDir;
} else if (version && 0 == strncmp(version,cverPrio,cverLength) && outPrio > prio) {
outPrio = prio+1;
*outDir = mp;
if (*outName) free(*outName);
*outName = strdup(ent->d_name);
*isDir = cIsDir;
}
prio++;
prio+=2;
} /* prios loop */
} /* strcmp */
} /* readdir loop */
Expand Down

0 comments on commit b1c77aa

Please sign in to comment.