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)
Tue, Sep 24, 4:22 PM
Unknown Object (File)
Tue, Sep 24, 10:04 AM
Unknown Object (File)
Tue, Sep 24, 10:03 AM
Unknown Object (File)
Tue, Sep 24, 10:03 AM
Unknown Object (File)
Tue, Sep 24, 10:03 AM
Unknown Object (File)
Tue, Sep 24, 9:55 AM
Unknown Object (File)
Tue, Sep 24, 4:29 AM
Unknown Object (File)
Mon, Sep 16, 7:55 PM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.