Page MenuHomeFreeBSD

m4: Stop abbreviating builtin names
ClosedPublic

Authored by des on Tue, Mar 10, 11:15 AM.
Tags
None
Referenced Files
F151382587: D55793.id174251.diff
Wed, Apr 8, 1:07 AM
Unknown Object (File)
Mon, Apr 6, 4:23 PM
Unknown Object (File)
Sun, Apr 5, 12:53 PM
Unknown Object (File)
Sun, Apr 5, 3:31 AM
Unknown Object (File)
Tue, Mar 31, 2:28 PM
Unknown Object (File)
Tue, Mar 31, 9:21 AM
Unknown Object (File)
Thu, Mar 19, 5:52 PM
Unknown Object (File)
Wed, Mar 18, 4:16 AM
Subscribers

Details

Summary
  • Stop abbreviating macro names half-randomly to 8 chars, this is no longer 1990.
  • Likewise for function names (in particular use doindex for a function that is notably different from the classic index function).
  • Rename a few things for more fidelity: eval is the builtin name, not expr and your maketemp/mkstemp conform to mkstemp semantics for better security.
  • Rewrap a few comments that were ludicrously short.

No functional changes except improved accuracy of some error messages.

MFC after: 1 week

Diff Detail

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

Event Timeline

des requested review of this revision.Tue, Mar 10, 11:15 AM

remove unrelated whitespace changes

fuz added inline comments.
usr.bin/m4/main.c
114

It would be better for this to stay as EXPRTYPE. The rename seems unmotivated.

usr.bin/m4/mdef.h
44–87

Could this be changed to an enum?

usr.bin/m4/main.c
114

The proper name of this builtin is eval; expr is a non-standard alias.

usr.bin/m4/mdef.h
44–87

Yes, it could.

This revision was not accepted when it landed; it landed in state Needs Review.Wed, Mar 25, 12:42 AM
This revision was automatically updated to reflect the committed changes.