Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug in 0.12b if "_" and "'" is used
#1
The compiler runs forever if a comment comes after _

This compiles:
Code:
hWndMain = CreateWindowEx ( dwExStyle,    _
                                 szClassName,  _
                                 lpWindowName, _
                                 dwStyle,      _
                                 x,            _
                                 y,            _
                                 nWidth,       _
                                 nHeight,      _
                                 hWndParent,   _
                                 hMenu,        _
                                 hInstance,    _
                                 lpParam       _
                               )
This not:
Code:
hWndMain = CreateWindowEx ( dwExStyle,    _ 'extended window style
                                szClassName,  _ 'pointer to registered class name
                                lpWindowName, _ 'pointer to window name
                                dwStyle,      _ 'window style
                                x,            _ 'horizontal position of window
                                y,            _ 'vertical position of window
                                nWidth,       _ 'window width
                                nHeight,      _ 'window height
                                hWndParent,   _ 'handle to parent or owner window
                                hMenu,        _ 'handle to menu, or child-window identifier
                                hInstance,    _ 'handle to application instance
                                lpParam       _ 'pointer to window-creation data
                               )
it compiled fine with previous versions.
Reply
#2
yep noticed that too -remove last comment and/or first one and strangely it could compile...
url]http://fbide.sourceforge.net/[/url]
Reply
#3
Symbols can start with underscores now, so i broke line-continuation when anything but white-spaces were used after it.

Fixed, changes are on CVS (sf shows how to access the CVS at http://sourceforge.net/cvs/?group_id=122342), you can download the sources and recompile the compiler -- the GNU maker for Mingw is needed.
Reply
#4
Will download the sources.
Thanks
Reply
#5
Quote:Will download the sources.
Thanks
The bug is still there Cry
Reply
#6
That compiled as:

Code:
lea eax, [_LPPARAMf]
push eax
push dword ptr [_HINSTANCEf]
push dword ptr [_HMENUf]
push dword ptr [_HWNDPARENTf]
push dword ptr [_NHEIGHTf]
push dword ptr [_NWIDTHf]
push dword ptr [_Yf]
push dword ptr [_Xf]
push dword ptr [_DWSTYLEf]
push dword ptr [_LPWINDOWNAMEf]
push dword ptr [_SZCLASSNAMEf]
push dword ptr [_DWEXSTYLEf]
call _CreateWindowExA@48
mov dword ptr [_HWNDMAINf], eax

With the new sources, you probably didn't get the lastest, SF takes up to 5 hours to update the files on CVS for anonymous access.
Reply
#7
Quote:With the new sources, you probably didn't get the lastest, SF takes up to 5 hours to update the files on CVS for anonymous access.
Thanks, didn't know that.
Will download again.

Vic, keep up the good work, it's truly appreciated Big Grin
Reply
#8
All fine now :bounce:

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)