-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Preference for toggling preprocessor prototype generation #2324
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
Conversation
…eneration of function prototypes (also done some cleanup) - Issues: 2304, 992 and 386 (workaround)
Thanks, this is something we should indeed make optional. The code looks good to me. Regarding the commit structure, you're really mixing up three changes in a single commit - removing prototypeCount, replacing List with ArrayList (why is this needed?) and adding the config entry. It would be better to split those out. Also, the commit message is not formatted according to git common practice: You should have a single short summary line (<= 70 characters preferably), then an empty line and then more details. Note that you can update this pullrequest by (force) pushing to your branch, no need to open a new one. I'm wondering if it wouldn't be better to have a per-sketch preference for this, since globally enabling or disabling this probably is not the best approach (sketches will then come to rely on a specific setting, breaking if it's different). We don't currently have any plumbing in place for this yet, so this would require some further discussion (and having a global default still makes sense, even if we have a per-sketch setting) |
Never really used GitHub before (or git) so I mostly have no idea what I'm doing. :D prototypeCount just wasn't needed (it was only used in writePrefix). |
Then it's probably best to drop the List -> ArrayList change, I think most of the code prefers using the interface type for variables instead of the implementation type (makes it easier to change the implementation later). I'll try to talk you through updating your pullrequest. There's a few ways to go about this, but I propose you:
|
Uhhh; I think I done something wrong cause this isn't looking quite right, not sure how to fix it either. =/ |
It seems nothing changed in the pullrequest, so I guess something went wrong at your end locally? Can't really help you without more info, though :-) If you have IRC, feel free to poke me in #arduino on Freenode (I should be available for some time tonight or otherwise tomorrow). |
I've been idling there for the last couple weeks as Bobbo. |
Can one of the admins verify this patch? |
Closing as wontfix. Preprocessing has much improved since the introduction of https://github.com/arduino/arduino-builder, available with the latest hourly build http://www.arduino.cc/en/Main/Software#hourly |
Added preproc.generate.prototypes preference setting to disable the generation of function prototypes (also done some cleanup) - Issues: #2304, #992 and #386 (workaround)