Skip to content

Conversation

@WalterBright
Copy link
Member

The doc.d code should not be fiddling with the environment. That should all get set up beforehand.

This also picked up some tabs.

Some of the parameters should be out to clarify where they get initialized.

Note that this may require some adjustment to gdc and ldc, but it will be for the best. @kinke @ibuclaw

@RazvanN7 this may affect dmd as library, but I kinda doubt it as the environment from where DDOCFILE was drawn was also set in main.d. This PR should make the behavior consistent.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#15503"

}
}

files.reserve(arguments.length - 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an unnecessary and unrelated addition

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It comes from line 671 in main.d above.

* Params:
* m = Module
* ddocfiles = array of .ddoc files to read for macro definitions
* eSink = send error messages to eSink
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

autotester fails because of missing datetime parameter in this section

@dlang-bot dlang-bot merged commit 6f8b764 into dlang:master Aug 7, 2023
@WalterBright WalterBright deleted the docGetenv branch August 7, 2023 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants