-
Notifications
You must be signed in to change notification settings - Fork 86
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
reserved identifier violation #45
Comments
@elfring if you want, you can fork it and fix the identifiers and send us a pull request with the fix. That would be a great help. |
Will a renaming of such identifiers affect also the application binary interface for this software? |
libmypaint is written in C, and loosely conforms to the C99 standard. Why are you asking for this? |
@elfring A bit more context would help us understand the issue you are having. What problems |
I imagine that more software release planning would be needed if you care for API/ABI stability around affected identifiers.
How do you think about to avoid that this software depends on undefined behaviour? |
Hit me with practical suggestions about how we can improve things, tell me what's actually going wrong, or (better still) make PRs to fix dud behaviour please. We can also consider automated tools as suggested in #46. |
Probably won't address #45 really, but I've seen a few related linkage errors from MyPaint.
Still no practical suggestions or error messages from the reporter. Our codebase seems to be merely doing this to avoid confusing Picking this up for the release for another look. There are structures which probably should go private just for the sake of cleaning up the interface. @elfring Tell me what problems this is causing you, or give me a concrete way of testing this. Compiler error messages, test cases, anything. Better still, send a PR. |
Would you really like to "test" undefined behaviour? ;-) |
@elfring Yes please. Suggestions for linters, compiler flags, or similar checks. |
|
As if I haven't already, you mean? Thanks for the link to the ubsan information on the RedHat blog. Looks as if it could be useful, but I note one of the comments on the post:
Dunno if our use of GLib or GI will be a problem there. |
For consistency with mypaint/libmypaint#45. Also use the proper header for defining that libmypaint symbol.
Addresses #45. I don't want to turn this on except for debug builds, just in case it has a performace hit.
Thanks for your source code improvement. |
I would like to point out that identifiers like "
_MyPaintSurface
" and "_OperationQueue
" do not fit to the expected naming convention of the C++ language standard.Would you like to adjust your selection for unique names?
The text was updated successfully, but these errors were encountered: