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)
Sun, Sep 27, 6:21 PM
Unknown Object (File)
Sun, Sep 27, 1:13 AM
Unknown Object (File)
Thu, Sep 24, 8:54 PM
Unknown Object (File)
Wed, Sep 23, 9:43 PM
Unknown Object (File)
Wed, Sep 23, 5:58 AM
Unknown Object (File)
Wed, Sep 16, 4:26 AM
Unknown Object (File)
Sun, Sep 13, 7:45 PM
Unknown Object (File)
Fri, Sep 11, 12:28 AM
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.