Page MenuHomeFreeBSD

unifdef: Handle redefined symbols correctly.
ClosedPublic

Authored by des on Sep 6 2023, 5:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 6, 8:46 AM
Unknown Object (File)
Wed, Nov 6, 8:46 AM
Unknown Object (File)
Wed, Nov 6, 8:46 AM
Unknown Object (File)
Wed, Nov 6, 8:45 AM
Unknown Object (File)
Mon, Nov 4, 12:10 PM
Unknown Object (File)
Sep 27 2024, 3:10 PM
Unknown Object (File)
Sep 27 2024, 8:25 AM
Unknown Object (File)
Sep 27 2024, 8:25 AM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 53472
Build 50363: arc lint + arc unit

Event Timeline

des requested review of this revision.Sep 6 2023, 5:44 AM
kevans added inline comments.
contrib/unifdef/unifdef.c
1560

This seems reasonable... I kind of wish the manpage defined solid expectations for what to do with -D/-U/-i (even if that expectation is just "last one for a name wins").

Do we want the below debugsym to still output "addsym" for symbols, or do we want "updatesym" or some such to reflect that it's a multiply-listed option?

contrib/unifdef/unifdef.c
1560

"what to do with" -> "what to do with multiple occurrences of"

Oh, but what's here looks fine otherwise... the manpage is a punt-able problem

This revision is now accepted and ready to land.Sep 6 2023, 5:04 PM

say "updsym" instead of "addsym" when redefining

This revision now requires review to proceed.Sep 6 2023, 5:08 PM
des marked 2 inline comments as done.Sep 6 2023, 5:08 PM
This revision is now accepted and ready to land.Sep 6 2023, 5:10 PM
This revision was automatically updated to reflect the committed changes.