Search found 2887 matches

by marcov
May 04, 2020 10:26
Forum: Linux
Topic: Multi-call binary in FreeBasic
Replies: 3
Views: 210

Re: Multi-call binary in FreeBasic

The kernel communicates it to libc that way, so while argv is easier under *nix, that difference probably doesn't matter. Note that the moving is a problem if you self open (for debuginfo (for traceback), resources etc). The problem with network drives is that some network and other non native FS dr...
by marcov
May 03, 2020 22:37
Forum: Community Discussion
Topic: invitation to an open source community discord server
Replies: 6
Views: 189

Re: invitation to an open source community discord server

I month or two back I joined Discord because of some other forum, and within two days it wouldn't continue without giving a telephone number for "security" reasons, and no way around it. Exit discord, back to IRC. Yes, I had the same problems. Maybe because I trash all cookies each day or...
by marcov
May 03, 2020 21:26
Forum: Community Discussion
Topic: invitation to an open source community discord server
Replies: 6
Views: 189

Re: invitation to an open source community discord server

I month or two back I joined Discord because of some other forum, and within two days it wouldn't continue without giving a telephone number for "security" reasons, and no way around it. Exit discord, back to IRC.
by marcov
May 03, 2020 21:25
Forum: Community Discussion
Topic: Why did you choose FreeBASIC?
Replies: 34
Views: 1636

Re: Why did you choose FreeBASIC?

I always liked that in most cases just

fpc <mainprogramname>


is enough.
by marcov
May 02, 2020 20:28
Forum: General
Topic: How to translate C headers contain gcc __attribute__?
Replies: 45
Views: 899

Re: How to translate C headers contain gcc __attribute__?

systemctl wrote:
marcov wrote:
If you don't understand a post, please don't judge.


Stop being a parrot and repeat and repeat these boring words again and again. I understand, but I don't like it. Problem?


I don't like taxes either. Doesn't make them anything less real.
by marcov
May 02, 2020 18:15
Forum: General
Topic: How to translate C headers contain gcc __attribute__?
Replies: 45
Views: 899

Re: How to translate C headers contain gcc __attribute__?

Headers are per definition not 100% translatable. Any #define can contain arbitrary partial C code. What you said only true for Free Pascal, where macros not as powerful as FreeBASIC. On Free Pascal, macro support even not turned on by default. If you could help, please help. If you can't, please d...
by marcov
May 02, 2020 13:13
Forum: General
Topic: How to translate C headers contain gcc __attribute__?
Replies: 45
Views: 899

Re: How to translate C headers contain gcc __attribute__?

Headers are per definition not 100% translatable. Any #define can contain arbitrary partial C code.
by marcov
May 01, 2020 8:14
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 3182

Re: What do you use FreeBASIC for?

Still learning on this, but it seems to me that using external libraries is both a strong and a weak point of freebasic. Strong because a lot of C-libraries can be used with freebasic without too much work. Weak because it is complicated for the average programmer to get them working. Pretty much a...
by marcov
Apr 30, 2020 20:30
Forum: General
Topic: How to translate C headers contain gcc __attribute__?
Replies: 45
Views: 899

Re: How to translate C headers contain gcc __attribute__?

I have nothing to hide that I'm translating the GNUTLS headers. I need to use functions from GNUTLS. I found it weirded that FreeBASIC doesn't already include openssl headers. Anyway, I choose to go with GNUTLS. If you know how to translate it to FreeBASIC, please help. I think I can only remove al...
by marcov
Apr 30, 2020 17:44
Forum: Linux
Topic: Multi-call binary in FreeBasic
Replies: 3
Views: 210

Re: Multi-call binary in FreeBasic

The question is however, how reliable is command(0)? Binaries might be moved right after modification, filesystems might not support the functionality (e.g. what if the binary is on a filesystem with a special driver, like samba or NFS drives). For busybox, that is less of a problem, since it is onl...
by marcov
Apr 27, 2020 20:33
Forum: Beginners
Topic: GTK +freebasic with xml or not ?
Replies: 4
Views: 198

Re: GTK +freebasic with xml or not ?

(form resourcefiles also have a function in translation, they can be overlaid with translated resources that also can change coordinates of widgets etc slightly. This is useful if the UI was designed with a language with relatively short descriptions)
by marcov
Apr 27, 2020 16:43
Forum: General
Topic: How to translate C headers contain gcc __attribute__?
Replies: 45
Views: 899

Re: How to translate C headers contain gcc __attribute__?

Anyone could help? I also want to ask how to deal with C header use inline. As I know, FreeBASIC doesn't support inlining. So could I just remove the inline keyword? Yes. Same with pure and the rest, probably not supported by at least the GAS backends since it is a bit more advanced functionality. ...
by marcov
Apr 27, 2020 15:21
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 3182

Re: What do you use FreeBASIC for?

And I found one fact: people usually whine about brackets are from non English speaking countries, mostly from Germany and Netherlands and so on, with their own weirded keyboard and weirded mother languages. Good job guessing my nationality from my name (though of course I could be a South African ...
by marcov
Apr 27, 2020 15:10
Forum: General
Topic: How to translate C headers contain gcc __attribute__?
Replies: 45
Views: 899

Re: How to translate C headers contain gcc __attribute__?

(general attribute lists: Many compiler often reduce modifiers to lists. IOW instead of having a special "stdcall" modifier, you say __attribute[stdcall]. If the procedure is also inline you go __attribute[stdcall,inline]. Etc etc. The advantage is that other (non compiler, think documenta...
by marcov
Apr 27, 2020 11:22
Forum: Community Discussion
Topic: What do you use FreeBASIC for?
Replies: 91
Views: 3182

Re: What do you use FreeBASIC for?

@munair: your quote needs editing, JJ said that, not me. @basiccoder2: is there a point there somewhere? What are you replying to, and what is your actual argument? jj2007: One shouldn't forget the reason why interpreters were so heavy on goto and gosub: old style interpreters were often quite tight...

Go to advanced search