[futurebasic] Re: [FB] FBtoC conditional compilation problem

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2007 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Fri, 23 Nov 2007 14:01:28 +1300
Detlev Lang wrote:

> Translating this :
> #if def _FBtoC
>  			// FBtoC sees this; FB does not
> #else
> mask = &00FFFFFF	// FB sees this; FBtoC sees this too <----------
> #endif
>
> results in :
> •• Bad number in line 4 of ....  : 00FFFFFF
>   4:  mask = &00FFFFFF// FB sees this; FBtoC sees this too <----------
>                                                                      ^
> •• '#if/#endif' structure error in line 7 of ....

This proves, interestingly, to be two separate bugs.
The first (numeric parse error in dead branch of #if) is fixed for the  
next version of FBtoC.

The second is that a tab character is mis-handled in some  
circumstances. In your demo, there is a tab between the last 'F' and  
the comment:
> mask = &00FFFFFF	// FB sees this; FBtoC sees this too <----------

I've entered this bug in FBtoC's bugs database, but can't promise a  
fix soon. A workaround is to delete the tab character manually.

Robert P.