There are several functions in qjs which are too easy to collide as:
- they are not static
- they are not namespaced with a prefix.
There are two specific offenders I encountered, pstrcat & pstrcpy, both colliding with their equivalent implementations in tinycc. There are few more which have just too much of a generic name, like has_suffix.
All these "offenders" are declared in cutils.h and implemented in cutils.c.
My suggestion would be for these functions to be scoped with some prefix, as I don't think they are really meant to be used from outside qjs.
There are several functions in
qjswhich are too easy to collide as:There are two specific offenders I encountered,
pstrcat&pstrcpy, both colliding with their equivalent implementations intinycc. There are few more which have just too much of a generic name, likehas_suffix.All these "offenders" are declared in
cutils.hand implemented incutils.c.My suggestion would be for these functions to be scoped with some prefix, as I don't think they are really meant to be used from outside qjs.