J’ai vu passer ceci :

https://thephd.dev/to-save-c-we-must-save-abi-fixing-c-function-abi

C’est la première fois que j’entends ce son de cloche vis-à-vis de realloc, comme un échec de standardisation.

Mais pour avoir croisé la route de GnuTLS récemment, la solution indiquée me semble un peu tirée par les cheveux non ? Il suffit de garder les vieilles fonctions et de rajouter un numéro de la honte derrière, comme nom_de_fonction2 (). J’ai loupé un truc ?

#c #abi #gcc #realloc #gnutls

To Save C, We Must Save ABI

After that first Firebrand of an article on Application Binary Interface (ABI) Stability, I’m not sure anyone expected this to be the title of the next one, huh? It seems especially bad,

The Pasture
if we pass NULL to Realloc, the lock will be obtained once by the #Realloc function, and a second time (#recursively) when Alloc is called.
if we pass NULL to Realloc, the lock will be obtained once by the #Realloc function, and a second time (#recursively) when Alloc is called.