In IFC, fixed parser to avoid interpretation of '##' in string as identifiers
parent
6ca8423e24
commit
c797f16b0e
|
@ -493,9 +493,16 @@ STEP::LazyObject::LazyObject(DB& db, uint64_t id,uint64_t /*line*/, const char*
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skip_depth >= 1 && *a=='#') {
|
if (skip_depth >= 1 && *a=='#') {
|
||||||
|
if (*(a + 1) != '#')
|
||||||
|
{
|
||||||
const char* tmp;
|
const char* tmp;
|
||||||
const int64_t num = static_cast<int64_t>( strtoul10_64(a+1,&tmp) );
|
const int64_t num = static_cast<int64_t>(strtoul10_64(a + 1, &tmp));
|
||||||
db.MarkRef(num,id);
|
db.MarkRef(num, id);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
++a;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
++a;
|
++a;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue