Page MenuHomeFreeBSD

Fix build with NO_HISTORY set
ClosedPublic

Authored by bdrewery on Apr 17 2020, 12:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 16 2024, 4:26 AM
Unknown Object (File)
Sep 18 2024, 7:34 PM
Unknown Object (File)
Sep 8 2024, 1:25 AM
Unknown Object (File)
Sep 5 2024, 10:21 PM
Unknown Object (File)
Sep 5 2024, 10:17 PM
Unknown Object (File)
Aug 9 2024, 3:51 AM
Unknown Object (File)
Jul 30 2024, 3:25 PM
Unknown Object (File)
Jul 10 2024, 2:36 AM
Subscribers

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 30566
Build 28311: arc lint + arc unit

Event Timeline

jilles requested changes to this revision.Apr 17 2020, 11:46 AM

This solution looks inconsistent. Either fc and bind are always available (writing an error message if history is not compiled in), in which case mkbuiltins should not be omitting them, or they are not available if history is not compiled in, in which case the functions should not be defined at all if history is not compiled in.

The latter approach will produce the smallest binaries, so I think it is best.

This revision now requires changes to proceed.Apr 17 2020, 11:46 AM

builtins.h does define these prototypes

OK.

A follow-up is to delete -h from mkbuiltins and builtins.def.

This revision is now accepted and ready to land.Apr 18 2020, 9:20 PM

I have no opinions on how this should work. I was just trying to follow what was there. The presence of -h is definitely inconsistent now. If you want to pick this up and pick the right route that's fine with me.

Feel free to commit this revision as is. I will handle -h in mkbuiltins.

This revision was automatically updated to reflect the committed changes.