[DGD] Comment/Preprocessor Bug
Blain
blain20 at gmail.com
Wed Apr 24 14:02:58 CEST 2013
Just to be thorough, I undef'd DEBUG_WRAP so you can see what happens in
that case.
408: #undef DEBUG_WRAP
409: #ifdef DEBUG_WRAP
410: } //rlimits
411: #endif /* DEBUG_WRAP */
Apr 24 19:01:28 ** [Error] Compile: 427 /sys/lib/xfun/terminal: missing
#endif
Apr 24 19:01:28 ** [Error] Compile: 23 /sys/svc/xfun: syntax error
--Blain
On Wed, Apr 24, 2013 at 6:58 PM, Blain <blain20 at gmail.com> wrote:
> ## Okay, I added:
>
> static void skip_alt_comment()
> {
> int c;
>
> do {
> c = gc();
> if (c == EOF) {
> return;
> }
> } while (c != LF);
> if (pp_level > 0) {
> uc(c);
> }
> }
>
> ## Did 'make clean && make install'. Move the binary into place. Started
> DGD...
> ## (The line numbers are off in the error messages)
>
> 409: #ifdef DEBUG_WRAP
> 410: } //rlimits
> 411: #endif /* DEBUG_WRAP */
>
> [Compile] /sys/lib/xfun/terminal[411]: illegal character: '#'
> [Compile] /sys/lib/xfun/terminal[413]: undeclared variable endif
> [Compile] /sys/lib/xfun/terminal[413]: syntax error
>
> ## The error is identical to both pre- and post- change drivers.
>
> ## And this still works of course
>
> #ifdef DEBUG_WRAP
> } /* rlimits */
> #endif /* DEBUG_WRAP */
>
>
> --Blain
>
>
>
> On Wed, Apr 24, 2013 at 6:41 PM, Blain <blain20 at gmail.com> wrote:
>
>> Cool. Thanks!
>>
>> --Blain
>>
>>
>> On Wed, Apr 24, 2013 at 5:24 PM, Felix A. Croes <felix at dworkin.nl> wrote:
>>
>>> Blain <blain20 at gmail.com> wrote:
>>>
>>> > I found a bug with the preprocessor and C++-style comments near them:
>>>
>>> This should be fixed in the latest repository commit.
>>>
>>> Regards,
>>> Felix Croes
>>> ____________________________________________
>>> https://mail.dworkin.nl/mailman/listinfo/dgd
>>>
>>
>>
>
More information about the DGD
mailing list