[dmd-internals] [D-Programming-Language/dmd] 338b55: ini: Fix parsing of variable with spaces before th...

GitHub noreply at github.com
Thu Feb 6 18:04:25 PST 2014


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 338b5535a9a4b2aa55c4d034479921f5aa77a560
      https://github.com/D-Programming-Language/dmd/commit/338b5535a9a4b2aa55c4d034479921f5aa77a560
  Author: Leandro Lucarella <leandro.lucarella at sociomantic.com>
  Date:   2014-01-09 (Thu, 09 Jan 2014)

  Changed paths:
    M src/inifile.c

  Log Message:
  -----------
  ini: Fix parsing of variable with spaces before the =

At least from what the source code suggests, a variable declaration in
the config file as this should be supported:
DFLAGS = -I/usr/include/d

But in reality, if you live spaces like that, the variable value will
get uppercased.

This commit fixes this problem to properly parse the extra spaces.


  Commit: f506a3f5cdc9342fd35e3dd452aa8bbf84bbde25
      https://github.com/D-Programming-Language/dmd/commit/f506a3f5cdc9342fd35e3dd452aa8bbf84bbde25
  Author: Leandro Lucarella <leandro.lucarella at sociomantic.com>
  Date:   2014-01-09 (Thu, 09 Jan 2014)

  Changed paths:
    M docs/man/man5/dmd.conf.5

  Log Message:
  -----------
  man: Mention variable names are converted to uppercase


  Commit: ba95719f3a05476b1ec71528b27b5de627f5a478
      https://github.com/D-Programming-Language/dmd/commit/ba95719f3a05476b1ec71528b27b5de627f5a478
  Author: Leandro Lucarella <leandro.lucarella at sociomantic.com>
  Date:   2014-01-09 (Thu, 09 Jan 2014)

  Changed paths:
    M docs/man/man5/dmd.conf.5
    M src/inifile.c

  Log Message:
  -----------
  ini: Add support to define undefined variables

Similarly to Make files, the syntax `VAR ?= value` is added to define
variables only when they were previously undefined.

In this case, if the environment variable `VAR` was undefined, then it
will be defined with the value `value`, otherwise the previous content
of `VAR` will be preserved.

This is useful to define default flags in the config file that can be
easily overridden by using environment variables.


  Commit: 10b2e55bde998dede4e6d932ac9fc690d8719261
      https://github.com/D-Programming-Language/dmd/commit/10b2e55bde998dede4e6d932ac9fc690d8719261
  Author: Walter Bright <walter at walterbright.com>
  Date:   2014-02-06 (Thu, 06 Feb 2014)

  Changed paths:
    M docs/man/man5/dmd.conf.5
    M src/inifile.c

  Log Message:
  -----------
  Merge pull request #3076 from leandro-lucarella-sociomantic/cond-conf-vars2

ini: Add support to define undefined variables


Compare: https://github.com/D-Programming-Language/dmd/compare/f9e3f41f4744...10b2e55bde99


More information about the dmd-internals mailing list