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 using
a local clone.
ddmd.dinifile
Compiler implementation of the
D programming language.
Authors:
License:
Distributed under the Boost Software License, Version 1.0.
http: //www.boost.org/LICENSE_1_0.txt
Source:
https: //github.com/dlang/dmd/blob/master/src/ddmd/dinifile.d
- const(char)*
findConfFile(const(char)*argv0, const(char)*inifile); - Find the config fileParameters:
const(char)* argv0program name (argv[0]) const(char)* inifile.ini file name Returns:file path of the config file or NULLNote: this is a memory leak
- const(char)*
readFromEnv(StringTable*environment, const(char)*name); - Read from
environment, looking for cached value first.Parameters:StringTable* environmentcached copy of the environmentconst(char)* namenameto look forReturns:environmentvalue corresponding toname - void
updateRealEnvironment(StringTable*environment); - Update real
environmentwith our copy.Parameters:StringTable* environmentour copy of the environment - void
parseConfFile(StringTable*environment, const(char)*filename, const(char)*path, size_tlength, ubyte*buffer, Strings*sections); - Read and analyze .ini file. Write the entries into
environmentas well as any entries in one of the specified section(s).Parameters:StringTable* environmentour own cache of the program environmentconst(char)* filenamename of the file being parsed const(char)* pathwhat @P will expand to buffer[len] = contents of configuration filesections[] = section names
Copyright © 1999-2017 by the D Language Foundation | Page generated by
Ddoc on Wed Jul 19 22:16:39 2017