Page MenuHomeFreeBSD

arch-handbook: rewrite MAC chapter K&R C prototypes
ClosedPublic

Authored by emaste on Jul 27 2024, 9:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 23 2025, 3:46 AM
Unknown Object (File)
Nov 20 2025, 8:49 PM
Unknown Object (File)
Nov 20 2025, 8:45 PM
Unknown Object (File)
Nov 20 2025, 8:45 PM
Unknown Object (File)
Nov 20 2025, 8:40 PM
Unknown Object (File)
Oct 31 2025, 2:15 AM
Unknown Object (File)
Oct 27 2025, 1:16 AM
Unknown Object (File)
Oct 22 2025, 11:13 PM
Subscribers

Details

Summary

K&R C has been deprecated for decades and is no longer valid C.

Reported by: https://101010.pl/@nabijaczleweli/112860058280711119

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste created this revision.
lwhsu added a subscriber: lwhsu.

Just be curious, do you create this change by hand or some tool available? I feed the patch to ChatGPT (after splitting into small chunks as it is lazy to read a large code), and tested with some injected errors. It verified the conversion is good.

This revision is now accepted and ready to land.Jul 28 2024, 7:45 PM

Just be curious, do you create this change by hand or some tool available?

By hand. There's likely some existing tooling out there but this was a relatively small amount to deal with, and there's likely few to no remaining examples we'll have to deal with so I didn't bother with tooling.