[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] nano fails to build cleanly with -pedantic

From: Chris Allegretta
Subject: Re: [Nano-devel] nano fails to build cleanly with -pedantic
Date: Tue, 13 Jan 2009 14:27:16 -0500

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.

On Sun, Dec 28, 2008 at 9:57 PM, Eitan Adler <address@hidden> wrote:
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?

Eitan Adler
"Security is increased by designing for the way humans actually behave."
-Jakob Nielsen

Nano-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]