Skip to content
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

Exporting xkbcommon-keysyms #1

Open
fancycade opened this issue Dec 22, 2020 · 0 comments
Open

Exporting xkbcommon-keysyms #1

fancycade opened this issue Dec 22, 2020 · 0 comments

Comments

@fancycade
Copy link

Hello there!

When trying out tinywl I ran into the issue of having to manually add the xkbcommon-keysyms.scm file to the directory. Which isn't great...

So I found a work around, but I wanted to get your input to see if I was missing something.

There is a way to export all the symbols without manually having to specify it, that is to replace begin with this:

(module
 xkbcommon-keysyms
 * ;; The splat exports all symbols
 (import (chicken base) scheme)

However, this doesn't quite work because the symbol's don't actually export...

After, trying to manually export one of the symbols the compiler threw the error that constant's can't be exported.

So the next step was to simply turn all the define-constant into just define, and then it worked fine.

My question is there a technical reason to not go this route? The compile time and file size don't seem out of the ordinary so I think this should be okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant