Recent

Author Topic: C code works, same code in FreePascal does not  (Read 6969 times)

Thaddy

  • Hero Member
  • *****
  • Posts: 14359
  • Sensorship about opinions does not belong here.
Re: C code works, same code in FreePascal does not
« Reply #15 on: August 23, 2018, 03:22:43 pm »
Code: [Select]
uses baseunix, sysutils
  ,oldlinux; // this is needed for syscall_nr_open
To bad oldlinux has just been removed from trunk....
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11445
  • FPC developer.
Re: C code works, same code in FreePascal does not
« Reply #16 on: August 23, 2018, 03:25:15 pm »
It was already not compiled in 3.0.x anymore, requires getting the source and manually compiling it.

This thread reminded me that it was still staged to be phased out with the next major version.

p.s. unit libc is also not supported on non x86.
« Last Edit: August 23, 2018, 03:48:21 pm by marcov »

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: C code works, same code in FreePascal does not
« Reply #17 on: August 23, 2018, 03:33:28 pm »
To bad oldlinux has just been removed from trunk....
why?

PascalDragon

  • Hero Member
  • *****
  • Posts: 5462
  • Compiler Developer
Re: C code works, same code in FreePascal does not
« Reply #18 on: August 24, 2018, 09:39:24 am »
To bad oldlinux has just been removed from trunk....
why?
- it's been deprecated for more than 6 years
- it hasn't been automatically build in more than 11 years
- it's i386 only
No one has complained so far that it isn't part of the release, so good riddance!  >:D

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11445
  • FPC developer.
Re: C code works, same code in FreePascal does not
« Reply #19 on: August 24, 2018, 10:09:34 am »
- it's been deprecated for more than 6 years

While that is strictly true, it actually is quite a bit longer than that. (think Christmas holiday 2003 in trunk, and then definitively with FPC 2.0 in may 2005 when it was no longer needed for bootstrapping)

Quote
- it hasn't been automatically build in more than 11 years
- it's i386 only
No one has complained so far that it isn't part of the release, so good riddance!  >:D

- it was actually never verified that the port from 1.x to 2.x (fpcoldcall and all that) actually (still?) fully works. Most people since used it only in very limited ways
- and of course the main reason: I don't want to have this discussion around 3.4 again for what would be the (1.9,2.0,2.2,2.4,3.0,3.2,3.4) seventh time.
« Last Edit: August 24, 2018, 10:11:09 am by marcov »

Thaddy

  • Hero Member
  • *****
  • Posts: 14359
  • Sensorship about opinions does not belong here.
Re: C code works, same code in FreePascal does not
« Reply #20 on: August 24, 2018, 07:06:40 pm »
To me it was a rather amusing situation that the same unit (I can't remember using it, I probably did) was deprecated and on the same day mentioned in an example on the forum.... ::) :P :-X
Well that was - the use in an example - probably also at least a couple of years ago?  O:-)
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

 

TinyPortal © 2005-2018