Share

FreeBASIC Compiler

Code

Programming Languages: Visual Basic, BASIC, C, Assembly

License: GNU Library or Lesser General Public License (LGPL), GNU General Public License (GPL)

Repositories

browse code, statistics, last commit on 2009-11-02 svn co https://fbc.svn.sourceforge.net/svnroot/fbc fbc

Show:

What's happening?

  • Leaking suffixed dynamic strings

    bug: http://sourceforge.net/tracker/?func=detail&aid=2870564&group_id=122342&atid=693196 FB_SYMBATTRIB_SUFFIXED has the same value as FB_SYMBATTRIB_FUNCRESULT, so symb-var.bas::symbGetVarHasC/Dtor will return FALSE for every suffixed var, which is bad for varlen strings... Look at the end of FB_SYMBATTRIB_* enum in symb.bi (with the "reuse - take care" comment). The patch simply gives...

    2009-11-20 20:53:10 UTC by dkls

  • Comment: Can't declare string arrays with negative upper bound

    The bug can also be seen in this example: ------------------------------- sub s(a() as integer) end sub dim as integer a(-2 to -1) s(a()) -------------------------------------- The array is treated as if ellipsis were used (as in "a(-2 to ...)"), because the upper bound is -1, which is also the internal "temporary" value to designate ellipsis in the array declaration. Since the array is seen...

    2009-11-20 01:32:44 UTC by dkls

  • Patch for bad procedure name mangling after EXTERN block

    The bug: https://sourceforge.net/tracker/index.php?func=detail&aid=2776255&group_id=122342&atid=693196 Next to the parser's compound stack parser.stmt.stk there is another mechanism in place, parser.stmt.id and parser.stmt.lastid. See parser-compound.bas, especially the functions cCompStmtPush and cCompStmtPop. parser.stmt.lastid is (only) used to go back to the previous compound id...

    2009-11-19 22:55:53 UTC by dkls

  • Comment: extern, type and overload bug?

    I've just run into this bug as well - it seems to happen when you try to include SDL.bi and then use overloading. The workaround is to declare your overloaded function before including SDL.bi/whatever The bug is that for some reason fbc fails to mangle the function name. Here is a simpler testcase: --------------------------------- extern "c" type bar foo as integer end type end extern sub...

    2009-11-19 13:51:13 UTC by teeemcee

  • Can't declare string arrays with negative upper bound

    This is a bug that does not appear in FB 0.20.0. I am using: FreeBASIC Compiler - Version 0.21.0 (07-27-2009) for win32 (target:win32) (by the way, may I suggest printing the SVN revision number?) The following source: DIM bar(-2 TO -1) AS string causes the compile error: error 55: Type mismatch, at parameter 1 DIM bar(-2 TO -1) AS string The declaration works if the upper...

    2009-11-16 15:42:02 UTC by teeemcee

  • Comment: ulongint<->double conversion issues

    This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).

    2009-11-15 02:20:18 UTC by sf-robot

  • FreeBASIC Compiler

    counting_pine committed revision 5273 to the FreeBASIC Compiler SVN repository, changing 3 files.

    2009-11-02 07:44:54 UTC by counting_pine

  • FreeBASIC Compiler

    counting_pine committed revision 5272 to the FreeBASIC Compiler SVN repository, changing 1 files.

    2009-11-02 06:52:34 UTC by counting_pine

  • Comment: ulongint<->double conversion issues

    OK, hopefully that's everything now: http://fbc.svn.sourceforge.net/viewvc/fbc?view=rev&revision=5268 http://fbc.svn.sourceforge.net/viewvc/fbc?view=rev&revision=5269 http://fbc.svn.sourceforge.net/viewvc/fbc?view=rev&revision=5270 http://fbc.svn.sourceforge.net/viewvc/fbc?view=rev&revision=5271 I've tried to explain things in the commit logs. I'm slightly out of my depth with this, but...

    2009-10-31 16:06:03 UTC by counting_pine

  • FreeBASIC Compiler

    counting_pine committed revision 5271 to the FreeBASIC Compiler SVN repository, changing 3 files.

    2009-10-31 15:52:05 UTC by counting_pine