On 03/24/11 18:12, Geof Sawaya wrote:
> Hi Bruce,
>
> I hope you've found a job.

Nope, still looking.  Thank you.

> Anyway, I have a problem with an auto-opts .def file.  I set a flag like this:
>
> flag = {
>      name = bound;
>      value = B;
>      descrip = "Enable bounded mixing";
>      //ifdef = CONFIG_BOUNDED_MIXING;
>      arg-type = number;
> };
>
> If I use the 'ifdef' clause of the flag definition I get the following 
> problem when compiling:
>
> sched-opt.c:375: error: expected unqualified-id before ‘__null’
>
> The code that corresponds to that message is:
>
>
> #ifdef CONFIG_BOUNDED_MIXING
>    extern tOptProc optionNumericVal;
> #else /* not CONFIG_BOUNDED_MIXING */
> # define optionNumericVal NULL
> #endif /* def/not CONFIG_BOUNDED_MIXING */
> extern tOptProc
>      optionBooleanVal,   optionNumericVal,   optionPagedUsage,    *******LINE 
> 375
>      optionPrintVersion;
>
> Is this a bug in auto-opts/autogen?

Yep.  As of December's release, I make sure I don't try to declare
optionNumericVal in the generated code.  It gets declared in
autoopts/options.h.  Oops.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Autogen-users mailing list
Autogen-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/autogen-users

Reply via email to