-
Notifications
You must be signed in to change notification settings - Fork 32
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
add optional libXfont2 support #14
base: master
Are you sure you want to change the base?
add optional libXfont2 support #14
Conversation
using the header, the diff is much cleaner now, except that you suddenly changed the fpe type so now we have . vs -> accessing the field, which makes it a bit of a mess again. |
@rofl0r The reason I did that is because of how libXfont2 handles the fpe functions. I based this libXfont2 port on Xorg code, specifically this patch: https://lists.freedesktop.org/archives/xorg-devel/2016-May/049769.html I tried to see if I can somehow make fpe_functions a regular pointer instead of an indirect pointer, but I couldn't. If you see some way to do that that I missed, let me know an I'll try to update my patch. I changed all the accesses to indirect accesses so that I don't have ifdef's for libXfont1 direct accesses vs libXfont2 indirect accesses. I am pretty sure the compiler optimizes out the indirect accesses in the libXfont1 case, but I could use |
172e802
to
3e2238f
Compare
@Rofl0l Fixed the 2 things you pointed out and added the const I mentioned in my above comment. I can get rid of one more ifdef in dix/main.c with something like '#define ResetFontPrivateIndex(...)', an empty function define to remove a call that doesn't happen with libXfont2. Should I do that too? |
i'm just providing some advice on how i would do things to make them less awful :) |
3e2238f
to
4f0c87f
Compare
@rofl0r I added the empty function define too. Btw, are you not a tinyx or tinycorelinux dev? I assumed you were since I saw you comment in various issues and PR's. |
nope, @sabotage-linux dev here. |
@clbr |
Sorry, can't review right now.
|
Same PR as #13 ,but everything squashed in one single commit.