-
Notifications
You must be signed in to change notification settings - Fork 7
<c-void>, warning removal, external linkage for variables #12
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
base: master
Are you sure you want to change the base?
Conversation
first of all: big thanks. it would be even better if you could separate 1, 2 and 3 in separate commits (using git add --interactive). I actually do not completely understand 3 - the changes are that external is passed around in Or do I miss something? |
(somehow I've the feeling that the complexity |
…ariables" This reverts commit c3ab1cf.
Slots with required-init-keywords made constant; some unused slots commented out (may be used in future). The warning that remains is from parsergen processing of the input files.
Splitting in progress, or rather a series of blow-by-blow sessions with diff :( Should get it finished this evening. You're right that there's a lot of extra work involved with external, having to pass it as a parameter everywhere in sight, just to use it twice. Just about the only way around it is to assemble the The working/real code does the following (from memory):
|
Allow variables to be added into the interface definition. Add an external: #t/f clause for external linkage.
I've hand-merged parts of this in my next branch that is landing ... but not the "Add definition of c-variable ..." part yet. I don't like adding the |
For reference, my branch is here: https://github.com/waywardmonkeys/melange/commits/misc-improvements I'm hoping to do more stuff on it and land it within a couple of days. |
The |
Sorry, this is as one blob - slight issue of messing up the repository.
typedef void FILE
now produces a<c-void>
rather than<void>
which produces an error.external: #t
in the variable or include-file clause of the interface definition for external linkage.