LCDproc development and user support list

Text archives Help


[Lcdproc] configfile.c breaks on Mac OS X due to nested function


Chronological Thread 
  • From: bsdfan at nurfuerspam.de (Markus Dolze)
  • Subject: [Lcdproc] configfile.c breaks on Mac OS X due to nested function
  • Date: Tue, 24 Feb 2009 09:18:27 +0100

Hi,

OK, I checked the source and the mentioned function is still there but
wrapped with #ifdef since version 0.5.2. The user doesn't state which version
he is using and he is not reachable by mail.

Regards,
Markus

-------- Original-Nachricht --------
> Datum: Mon, 23 Feb 2009 19:38:21 -0800
> Von: Eric Pooch <epooch at cox.net>
> An: Markus Dolze <bsdfan at nurfuerspam.de>
> CC: LCDproc Mailing List <lcdproc at lists.omnipotent.net>
> Betreff: Re: [Lcdproc] configfile.c breaks on Mac OS X due to nested
> function

> I am pretty sure this has been a non-issue for almost a year. I am
> pretty sure the nested functions were removed a while ago.
>
> --Eric
>
> On Feb 23, 2009, at 9:32 AM, Markus Dolze wrote:
>
> > Erik Hansen reported this as a SF tracker event:
> >
> > --- quote begin ---
> >
> > Nested functions have been disabled by Mac OS X Developer tools -- gcc
> > 4.0.1. As a result, compilation of configfile.c fails due to the
> > following
> > code:
> >
> > int config_read_string(const char *sectionname, const char *str)
> > /* All the config parameters are placed in the given section in
> > memory.*/
> > {
> > int pos = 0;
> > section *s;
> >
> > /* We use a nested fuction to transfer the characters from buffer
> > to parser*/
> > char get_next_char() {
> > return str[pos++];
> > }
> >
> > if ((s = find_section(sectionname)) == NULL)
> > s = add_section(sectionname);
> >
> > return process_config(&s, get_next_char, "command line", NULL);
> > }
> >
> > --- quote end ---
> >
> > Any suggestions how to deal with this? Does it work for other MacOS
> > X users?
> >




Archive powered by MHonArc 2.6.18.

Top of page