-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Name collisions for functions without prefix #754
Comments
They are not zoomed in the API so their visibility should be hidden, how are you using them? |
I ran into the same issue for qemacs, for the same reason... as the original author of these functions that Fabrice collected in cutils.[hc] and used in different projects. We should just scope them with a |
Just statically linking qjs and tcc within the same project. |
👍 would either of you mind sending a pr? |
Will do! back in business :) |
I already started changing some locally to make my project work
and pushed them in #755 |
There are several functions in
qjs
which 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.h
and 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.
The text was updated successfully, but these errors were encountered: