Skip to content

Comments

XREF variants -> REF (sed)#1357

Merged
CyberShadow merged 1 commit intodlang:masterfrom
aG0aep6G:kill-xref-uses
Jun 8, 2016
Merged

XREF variants -> REF (sed)#1357
CyberShadow merged 1 commit intodlang:masterfrom
aG0aep6G:kill-xref-uses

Conversation

@aG0aep6G
Copy link
Contributor

@aG0aep6G aG0aep6G commented Jun 8, 2016

With this, dlang.org doesn't use any macros of the XREF variety anymore.

The definitions stay in place, because the stable docs still use them. Thanks @wilzbach for noticing this. There's a separate pull request to remove the definitions: #1355. It should be possible to pull that after the 2.072 release.

(FULL_)XREF -> REF:

arg='\s*([^(),]*)'
from='\$\((FULL_)?XREF\s'$arg','$arg'\)'
to='$(REF \3, std,\2)'
sed -i -r "s/$from/$to/g" *.dd **/*.dd

XREF_PACK -> REF:

arg='\s*([^(),]*)'
from='\$\(XREF_PACK\s'$arg','$arg','$arg'\)'
to='$(REF \3, std,\1,\2)'
sed -i -r "s/$from/$to/g" *.dd **/*.dd
@aG0aep6G aG0aep6G mentioned this pull request Jun 8, 2016
@CyberShadow CyberShadow merged commit 71ce095 into dlang:master Jun 8, 2016
@aG0aep6G aG0aep6G deleted the kill-xref-uses branch June 8, 2016 21:29
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.

2 participants