HomeFreeBSD

config: make changes to allow some parts to build as C++

Description

config: make changes to allow some parts to build as C++

Highlights:

  • Avoid keywords (this, not) as variable names
  • Move yyparse into config.h with other declarations
  • All declarations in config.h are assumed guilty until proven innocent
  • Some const-correctness
  • Casting malloc/calloc returns

Note that we're not building any C++ here yet, this will be introduced
in other commits to replace some of the lib dependencies. Reducing the
number of FreeBSD-specific dependencies we have reduces some friction
for building our bootstrap tools independently in other environments.

Reviewed by: imp
Sponsored by: Klara, Inc.
Sponsored by: NetApp, Inc.
Differential Revision: https://reviews.freebsd.org/D38274

Details

Provenance
kevansAuthored on Feb 8 2023, 6:02 AM
Reviewer
imp
Differential Revision
D38274: config: make changes to allow some parts to build as C++
Parents
rG2e9d05fd6848: asmc: Add support for 10 byte light sensor payloads; MacBookAir6,1
Branches
Unknown
Tags
Unknown