[dlang.org] [dlang/dlang.org] 0afdf4: modernize macros in intro-to-datetime

GitHub via dlang.org dlang.org at puremagic.com
Sat Jun 4 05:04:25 PDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/dlang/dlang.org
  Commit: 0afdf4a4510554ef91487c938ea962c3a8801e21
      https://github.com/dlang/dlang.org/commit/0afdf4a4510554ef91487c938ea962c3a8801e21
  Author: anonymous <aG0aep6G at users.noreply.github.com>
  Date:   2016-06-04 (Sat, 04 Jun 2016)

  Changed paths:
    M intro-to-datetime.dd

  Log Message:
  -----------
  modernize macros in intro-to-datetime

Replacing the custom macros XREF and CXREF with a custom REF_SHORT which
has the same syntax as REF and may prove useful generally.

The custom macro FULL_CXREF is replaced with REF.

Replacing raw HTML with MREF in definitions of CORE_TIME, STD_DATETIME, and
STD_FILE.

FULL_XREF does not have a custom definition here. It's going to be replaced
in a repository-wide purge.

sed commands:

XREF -> REF_SHORT:

arg='\s*([^(),]*)'
from='\$\(XREF\s'$arg','$arg'\)'
to='$(REF_SHORT \2, std,\1)'
sed -i -r "s/$from/$to/g" intro-to-datetime.dd

CXREF -> REF_SHORT:

arg='\s*([^(),]*)'
from='\$\(CXREF\s'$arg','$arg'\)'
to='$(REF_SHORT \2, core,\1)'
sed -i -r "s/$from/$to/g" intro-to-datetime.dd

FULL_CXREF -> REF:

arg='\s*([^(),]*)'
from='\$\(FULL_CXREF\s'$arg','$arg'\)'
to='$(REF \2, core,\1)'
sed -i -r "s/$from/$to/g" intro-to-datetime.dd


  Commit: 17797b4dea44aa614d391f41fead8a710a78378f
      https://github.com/dlang/dlang.org/commit/17797b4dea44aa614d391f41fead8a710a78378f
  Author: Vladimir Panteleev <github.private at thecybershadow.net>
  Date:   2016-06-04 (Sat, 04 Jun 2016)

  Changed paths:
    M intro-to-datetime.dd

  Log Message:
  -----------
  Merge pull request #1328 from aG0aep6G/intro-to-datetime-refs

modernize macros in intro-to-datetime


Compare: https://github.com/dlang/dlang.org/compare/49b6eaa52a74...17797b4dea44


More information about the dlang.org mailing list