Page MenuHomeFreeBSD

Move zstd malloc()/free()/calloc() macros to stdlib.h.
ClosedPublic

Authored by markj on Feb 13 2018, 3:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 4 2024, 7:56 PM
Unknown Object (File)
Oct 28 2024, 1:09 AM
Unknown Object (File)
Oct 7 2024, 12:16 AM
Unknown Object (File)
Oct 3 2024, 10:03 PM
Unknown Object (File)
Oct 3 2024, 10:17 AM
Unknown Object (File)
Oct 3 2024, 1:16 AM
Unknown Object (File)
Sep 27 2024, 8:58 AM
Unknown Object (File)
Sep 27 2024, 3:29 AM
Subscribers
None

Details

Summary

The issue with keeping them in the main compat header is that the macro
definitions leak into anything that includes zstd.h, which might include
native FreeBSD code.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Feb 13 2018, 4:33 PM

this looks fine, apart maybe from the copyright stuff...

But honestly, those few lines are likely not deserving of copyright protection...

sys/contrib/zstd/lib/freebsd/stdlib.h
2 ↗(On Diff #39255)

2015?

In D14352#300773, @imp wrote:

this looks fine, apart maybe from the copyright stuff...

But honestly, those few lines are likely not deserving of copyright protection...

I didn't really think so either, but it doesn't hurt to be conservative here.

sys/contrib/zstd/lib/freebsd/stdlib.h
2 ↗(On Diff #39255)

I just copied it from zstd_kfreebsd.h.

imp added inline comments.
sys/contrib/zstd/lib/freebsd/stdlib.h
2 ↗(On Diff #39255)

Fair enough.

This revision was automatically updated to reflect the committed changes.