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

GitHub noreply at github.com
Thu Jan 9 21:51:29 PST 2014


  Branch: refs/heads/dmd-1.x
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 12e147d51e7ace103ce3472567b2babcb248bac3
      https://github.com/D-Programming-Language/dmd/commit/12e147d51e7ace103ce3472567b2babcb248bac3
  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: b7d8497559c65443870f54e465ed181c62a3b4ab
      https://github.com/D-Programming-Language/dmd/commit/b7d8497559c65443870f54e465ed181c62a3b4ab
  Author: Leandro Lucarella <leandro.lucarella at sociomantic.com>
  Date:   2014-01-09 (Thu, 09 Jan 2014)

  Changed paths:
    R docs/man/man1/dmd.conf.5
    A docs/man/man1/dmd1.conf.5

  Log Message:
  -----------
  man: Update man to talk about dmd1.conf

Instead of talking about dmd.conf that is conflictive when you want for
both dmd1 and dmd2 to co-exist. The use of dmd.conf for dmd1 is said to
be deprecated.


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

  Changed paths:
    R docs/man/man1/dmd1.conf.5
    A docs/man/man5/dmd1.conf.5

  Log Message:
  -----------
  man: Move dmd1.conf to docs/man/man5


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

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

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


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

  Changed paths:
    M docs/man/man5/dmd1.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: c2f9271748195e9f897c317dedb882e896e6d7df
      https://github.com/D-Programming-Language/dmd/commit/c2f9271748195e9f897c317dedb882e896e6d7df
  Author: Walter Bright <walter at walterbright.com>
  Date:   2014-01-09 (Thu, 09 Jan 2014)

  Changed paths:
    R docs/man/man1/dmd.conf.5
    A docs/man/man5/dmd1.conf.5
    M src/inifile.c

  Log Message:
  -----------
  Merge pull request #3075 from leandro-lucarella-sociomantic/cond-conf-vars

ini: Add support to define undefined variables


Compare: https://github.com/D-Programming-Language/dmd/compare/1fb186a9d3c4...c2f927174819


More information about the dmd-internals mailing list