Search found 1911 matches

by srvaldez
Jun 21, 2019 16:55
Forum: Community Discussion
Topic: fb 1.07 tests
Replies: 12
Views: 528

Re: fb 1.07 tests

Are there any plans already whether or on which platforms to make ENABLE_STRIPALL=1 default? https://www.freebasic.net/forum/viewtopic.php?p=261458#p261458 wiki is most up to date docs for current development version: see Compiler Option: -strip see Compiler Option: -nostrip Correct, "--strip-...
by srvaldez
Jun 21, 2019 16:27
Forum: General
Topic: Squares
Replies: 6658
Views: 376746

Re: Squares

by srvaldez
Jun 21, 2019 13:02
Forum: General
Topic: Squares
Replies: 6658
Views: 376746

Re: Squares

ahh, ice-cold beer :-)
by srvaldez
Jun 21, 2019 12:59
Forum: Community Discussion
Topic: Pulsar2D
Replies: 6
Views: 199

Re: Pulsar2D

your main OS is Windows right? are you using the standalone FreeBasic or the mingw-tools integrated version? either way, there are 17 dll's in the win32 bin distribution, too many dependencies for my taste. but for a quick and dirty test, copy the *.bi files to Pulsar2D-Distribution\Examples\BASIC c...
by srvaldez
Jun 20, 2019 15:54
Forum: General
Topic: smart code formatter
Replies: 7
Views: 204

Re: smart code formatter

@RockTheSchock
thank you
by srvaldez
Jun 20, 2019 11:35
Forum: General
Topic: smart code formatter
Replies: 7
Views: 204

Re: smart code formatter

@jj2007
I don't want to post code here, no need to give people a headache, thanks for the offer though, in the meantime, several iterations of search&replace does the job.
offtopic, I found that it's easy to call the mingw sscanf and sprintf to input/output 80-bit reals.
by srvaldez
Jun 19, 2019 20:08
Forum: General
Topic: smart code formatter
Replies: 7
Views: 204

Re: smart code formatter

there are about 2100 lines of code including spacers between functions/subs, it's a mix of FB code and inline asm.
by srvaldez
Jun 19, 2019 19:00
Forum: General
Topic: smart code formatter
Replies: 7
Views: 204

smart code formatter

somehow, after editing a file on different OS's, I wound up with mixed spaces and tabs, does anyone know of a smart code reformatter that will replace spaces with tabs? note that in some areas there are 3 spaces and at others 4 or 5 spaces. I tried search and replace, but it will take me forever to ...
by srvaldez
Jun 19, 2019 14:29
Forum: General
Topic: Bit strings ? ( "Bit string datatype" )
Replies: 7
Views: 249

Re: Bit strings ?

@ppf
what are you trying to accomplish with bit-strings?
perhaps there's a better way.
by srvaldez
Jun 18, 2019 22:35
Forum: Linux
Topic: using long double in FB
Replies: 19
Views: 784

Re: using long double in FB

hello fxm
I think that it would be a good addition.
by srvaldez
Jun 18, 2019 20:05
Forum: Linux
Topic: using long double in FB
Replies: 19
Views: 784

Re: using long double in FB

thanks MrSwiss and fxm, it's clear now.
by srvaldez
Jun 18, 2019 18:29
Forum: Linux
Topic: using long double in FB
Replies: 19
Views: 784

Re: using long double in FB

thanks fxm, it din't occur to me that Callocate was needed, it's probably obvious to you, but how do I determine whether Allocate or Callocate is appropriate ?
by srvaldez
Jun 18, 2019 17:15
Forum: Linux
Topic: using long double in FB
Replies: 19
Views: 784

Re: using long double in FB

an observation, the sub Sub sprint_ Naked Cdecl(Byval buf As Zstring Ptr, Byval frmt As Zstring Ptr, Byref x As clongdouble) I tried calling the sub using Zstring ptr's, like this Dim As clongdouble x Dim As Zstring Ptr buf=Allocate(256) Dim As Zstring Ptr frmt=Allocate(16) *frmt="%.20Lg" ...
by srvaldez
Jun 18, 2019 17:01
Forum: Linux
Topic: using long double in FB
Replies: 19
Views: 784

Re: using long double in FB

very simple test #include "clongdouble-intel-32.bi" Dim As clongdouble x, y, z x="3.14159265358979323846" Print "x = ";x Print "Frac(x) = ";Frac(x) y=3 Print "y = ";y Print "x+y = ";x+y Print "x-y = ";x-y Print "x/y = ";...
by srvaldez
Jun 18, 2019 16:58
Forum: Linux
Topic: using long double in FB
Replies: 19
Views: 784

Re: using long double in FB

for linux-x86 using -asm intel, tested on Ubuntu x86 and Scientific-Linux x86 clongdouble-intel-32.bi Type clongdouble As Ulong ldfp(0 to 2) Declare Constructor () Declare Destructor () Declare Constructor( Byref rhs As clongdouble ) Declare Constructor( Byref rhs As String ="0" ) Declare ...

Go to advanced search