-
-
Notifications
You must be signed in to change notification settings - Fork 664
move DDOCFILE from doc.d to main.d #15503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for your pull request, @WalterBright! Bugzilla referencesYour 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 locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#15503" |
3829eff to
0400ab2
Compare
| } | ||
| } | ||
|
|
||
| files.reserve(arguments.length - 1); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
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
outto 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.