Re: nano fails to build cleanly with -pedantic
2009-01-13 19:27:16 GMT
I have been thinking about this on and off and have been browsing the web for a good answer to this issue. I emailed Aitan (forgetting to CC the list) to ask if anyone knew the way to pass around the address of a function in ISO C in order to execute different functions with a pointer, but I haven't been able to find anything which answers the question except for that apparently passing around function addresses is some sort of crime in ISO C, which considering what insane things C lets you do strikes me as strange place to draw the line.
Anyway, if anyone knows how this can be done given what we are trying to do in nano with key bindings, please let me know. Otherwise I can put on my list to create a series of compiler macros for each function to be bound (and change scfunc in struct sc to a short) and pass those around instead , but that will be a lower priority in the short term compared to getting the editor actually stable.
Hey I just wanted to point out that nano from revision 4347 (and
probably earlier) don't build cleanly with -pedantic. Is ISO compliance
a goal of this project?
"Security is increased by designing for the way humans actually behave."
Nano-devel mailing list
Nano-devel <at> gnu.org
_______________________________________________ Nano-devel mailing list Nano-devel <at> gnu.org http://lists.gnu.org/mailman/listinfo/nano-devel