Skip to content

Comments

Check all files for undefined ddoc#2175

Merged
andralex merged 1 commit intodlang:masterfrom
wilzbach:undefined_ddoc
Feb 5, 2018
Merged

Check all files for undefined ddoc#2175
andralex merged 1 commit intodlang:masterfrom
wilzbach:undefined_ddoc

Conversation

@wilzbach
Copy link
Contributor

@wilzbach wilzbach commented Feb 5, 2018

Extends the undefined ddoc check for all files and fixes the violations.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @wilzbach!

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.

Copy link
Member

@andralex andralex left a comment

Choose a reason for hiding this comment

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

just a couple nits

dlang.org.ddoc Outdated
DBLOG_LATEST_LINK2=https://dlang.org/blog
DBLOG_LATEST_TITLE2=
DMDSRC=$(HTTPS github.com/dlang/dmd/blob/master/src/dmd/$0, $0)
DOLLAR=$
Copy link
Member

Choose a reason for hiding this comment

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

This should go in html.ddoc

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(done)

@@ -155,6 +155,7 @@ DBLOG_LATEST_DATE2=
DBLOG_LATEST_LINK2=https://dlang.org/blog
Copy link
Member

Choose a reason for hiding this comment

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

Pedantically this should be $(HTTPS dlang.org/blog). That way if the macro ever makes it in non-html documentation, there's no problem with it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not related to this PR and it's only used for the front page. The reason it's defined here, is that DAutoTest doesn't error with undefined macros as these are dynamically injected.

char s[8];
strcpy(s, "foo");
printf("string = '$(B %s)'\n", s);
printf("string = '%s'\n", s);
Copy link
Member

Choose a reason for hiding this comment

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

Custom escapes inside code are mightily difficult in latex, too. I'm very glad we're steering clear off them.

@andralex andralex merged commit a31a16c into dlang:master Feb 5, 2018
@wilzbach wilzbach deleted the undefined_ddoc branch July 18, 2018 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants