[dmd-internals] [D-Programming-Language/dmd] 6839ad: Fix default protection in dependency file

GitHub noreply at github.com
Sun Oct 21 23:28:57 PDT 2012


  Branch: refs/heads/master
  Home:   https://github.com/D-Programming-Language/dmd
  Commit: 6839adaef2ef5591cc05f85c3ce0a2cd04ab5d07
      https://github.com/D-Programming-Language/dmd/commit/6839adaef2ef5591cc05f85c3ce0a2cd04ab5d07
  Author: Leandro Lucarella <luca at llucax.com.ar>
  Date:   2012-10-21 (Sun, 21 Oct 2012)

  Changed paths:
    M src/import.c
    A test/runnable/depsprot.sh
    A test/runnable/extra-files/depsprot.d
    A test/runnable/imports/depsprot_default.d
    A test/runnable/imports/depsprot_private.d
    A test/runnable/imports/depsprot_public.d

  Log Message:
  -----------
  Fix default protection in dependency file

Import without explicit protection attributes are printed as public
imports in the dependency file (-deps), which could lead to incorrect
dependencies calculations by programs using this option.

This patch makes it print default protection as private (or whatever the
compiler think it should be). Test case added.


  Commit: 0085d3243c50302f6a2a2cd0b01ec1ab7c904760
      https://github.com/D-Programming-Language/dmd/commit/0085d3243c50302f6a2a2cd0b01ec1ab7c904760
  Author: Walter Bright <walter at walterbright.com>
  Date:   2012-10-21 (Sun, 21 Oct 2012)

  Changed paths:
    M src/import.c
    A test/runnable/depsprot.sh
    A test/runnable/extra-files/depsprot.d
    A test/runnable/imports/depsprot_default.d
    A test/runnable/imports/depsprot_private.d
    A test/runnable/imports/depsprot_public.d

  Log Message:
  -----------
  Merge pull request #1173 from llucax/deps-protection

Fix default protection in dependency file


Compare: https://github.com/D-Programming-Language/dmd/compare/9bda33388554...0085d3243c50


More information about the dmd-internals mailing list