diff options
author | rodri <rgl@antares-labs.eu> | 2023-12-30 15:16:58 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-12-30 15:16:58 +0000 |
commit | fa3f3d5395f9bf04b3df4f695a43dbfb0655c577 (patch) | |
tree | e59f4a01c421b8f9b6ec4cb786a60ed4d8f8af32 | |
parent | 82e650b577a5c7eea32fcff32d85b3fbcdfc6f0a (diff) | |
download | libobj-fa3f3d5395f9bf04b3df4f695a43dbfb0655c577.tar.gz libobj-fa3f3d5395f9bf04b3df4f695a43dbfb0655c577.tar.bz2 libobj-fa3f3d5395f9bf04b3df4f695a43dbfb0655c577.zip |
allow object names to have '.' and '_'.
-rw-r--r-- | obj.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -280,7 +280,7 @@ objparse(char *file) } do{ *p++ = c; - }while(c = Bgetc(bin), isalnum(c) && p-buf < sizeof(buf)-1); + }while(c = Bgetc(bin), (isalnum(c) || c == '.' || c == '_') && p-buf < sizeof(buf)-1); *p = 0; o = geto(obj, buf); if(o == nil){ |