Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.Requires a signed-in GitHub account. This works well for small changes.If you'd like to make larger changes you may want to consider usinga local clone.

dmd.dinifile

Parses compiler settings from a .ini file.
Authors:
Walter Bright
License:
Boost License 1.0

Sourcedinifile.d

Documentationhttps://dlang.org/phobos/dmd_dinifile.html

Coveragehttps://codecov.io/gh/dlang/dmd/src/master/compiler/src/dmd/dinifile.d

const(char)[]findConfFile(const(char)[]argv0, const(char)[]inifile);
Find the config file
Parameters:
const(char)[]argv0program name (argv[0])
const(char)[]inifile.ini file name
Returns:
file path of the config file or NULL

Notethis is a memory leak

const(char)*readFromEnv(ref const StringTable!(char*)environment, const(char)*name);
Read from environment, looking for cached value first.
Parameters:
StringTable!(char*)environmentcached copy of the environment
const(char)*namename to look for
Returns:
environment value corresponding to name
voidupdateRealEnvironment(ref StringTable!(char*)environment);
Update real environment with our copy.
Parameters:
StringTable!(char*)environmentour copy of the environment
boolparseConfFile(ref StringTable!(char*)environment, const(char)[]filename, const(char)[]path, const(ubyte)[]buffer, const(Strings)*sections);
Read and analyze .ini file. Write the entries into environment as well as any entries in one of the specified section(s).
Parameters:
StringTable!(char*)environmentour own cache of the program environment
const(char)[]filenamename of the file being parsed
const(char)[]pathwhat @P will expand to
const(ubyte)[]buffercontents of configuration file
const(Strings)*sectionssection names
Returns:
true on failure
Copyright © 1999-2026 by theD Language Foundation | Page generated byDdoc on Sat Feb 21 00:04:47 2026

[8]ページ先頭

©2009-2026 Movatter.jp