Recent

Author Topic: H2Pas can't handle EXP CALL from C header  (Read 2052 times)

Zvoni

  • Hero Member
  • *****
  • Posts: 2821
Re: H2Pas can't handle EXP CALL from C header
« Reply #15 on: January 16, 2025, 10:28:37 am »
the EXP in this case is an IFDEF-ed Symbol for Win32-Platform depending on the Symbol _LIBRYZENADJ_INTERNAL
#define EXP __declspec(dllexport) if _LIBRYZENADJ_INTERNAL is defined, otherwise --declspec(dllimport)

For Non-Windows it depends on the Symbol _LIBRYZENADJ_INTERNAL
If Yes, then EXP = __attribte__((visibility("default"))), if No then it's empty

CALL the same: __stdcall for Windows otherwise empty
« Last Edit: January 16, 2025, 10:36:49 am by Zvoni »
One System to rule them all, One Code to find them,
One IDE to bring them all, and to the Framework bind them,
in the Land of Redmond, where the Windows lie
---------------------------------------------------------------------
Code is like a joke: If you have to explain it, it's bad

PascalDragon

  • Hero Member
  • *****
  • Posts: 5851
  • Compiler Developer
Re: H2Pas can't handle EXP CALL from C header
« Reply #16 on: January 16, 2025, 08:52:21 pm »
uint32_t should be in the unit ctypes but isn't.
Almost all *_t types seem misssing.
replace with cuintXX and cintXX. There are still missing such as size_t and offset_t though size_t can be found in unix, baseunix or unixtypes while offset_t seems mia.

So, you don't like csize_t? 🤔

TRon

  • Hero Member
  • *****
  • Posts: 3928
Re: H2Pas can't handle EXP CALL from C header
« Reply #17 on: January 16, 2025, 11:46:56 pm »
So, you don't like csize_t? 🤔
That is a big oops at my side  :-[

My apologies, I missed that so stand corrected. Thx.
I do not have to remember anything anymore thanks to total-recall.

 

TinyPortal © 2005-2018