pub struct Preinclude {
pub name: String,
pub macros_only: bool,
}Expand description
A file -imacros or -include named, read before the source file.
Design: spec/04-driver-and-cli.md section 4.4.
The flag a build reaches for when a whole tree has to see a definition that is not in any of
its files. The kernel builds every object with -include of its own configuration header, and
a configure script that has produced a config.h gets it into a third party source tree the
same way, without a patch.
Fields§
§name: StringThe name as it was written, which is looked for the way a quoted include is looked for.
macros_only: boolWhether only the definitions it makes are wanted, which is what -imacros asks for.
The text of an -imacros file is read and thrown away, so a header full of declarations
contributes its macros and nothing else. That is what makes it usable on a file that has
already been included by the source: the definitions arrive early and the declarations do
not arrive twice.
Trait Implementations§
Source§impl Clone for Preinclude
impl Clone for Preinclude
Source§fn clone(&self) -> Preinclude
fn clone(&self) -> Preinclude
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more