Thread overview | |||||
---|---|---|---|---|---|
|
November 18, 2004 BUG: dmd->gdc wrapper / compiling HTML sources | ||||
---|---|---|---|---|
| ||||
There seem to be a bug in the wrapper. Note: you have to apply at least the first patch I send earlier today to this list, otherwise other bugs will hide this one. Source file: http://svn.kuehne.cn/dstress/nocompile/html_entity_10.html correct: # > gdc -c html_entity_10.html ; echo $? # html_entity_10.html:3: HTML Error: invalid numeric character reference # 1 bug: # > dmd -c html_entity_10.html ; echo $? # 0 Thomas |
November 18, 2004 Re: BUG: dmd->gdc wrapper / compiling HTML sources | ||||
---|---|---|---|---|
| ||||
Posted in reply to Thomas Kuehne Attachments: | Thomas Kuehne wrote:
> There seem to be a bug in the wrapper.
>
> Note: you have to apply at least the first patch I send earlier today to this list, otherwise other bugs will hide this one.
>
> Source file: http://svn.kuehne.cn/dstress/nocompile/html_entity_10.html
>
> correct:
> # > gdc -c html_entity_10.html ; echo $?
> # html_entity_10.html:3: HTML Error: invalid numeric character reference
> # 1
>
> bug:
> # > dmd -c html_entity_10.html ; echo $?
> # 0
>
> Thomas
The wrapper did not recognize '.html' files as _source_ files. Patch for this and some other bugs is attached.
David
|
November 18, 2004 Re: BUG: dmd->gdc wrapper / compiling HTML sources | ||||
---|---|---|---|---|
| ||||
Posted in reply to David Friedman |
David Friedman schrieb am Thu, 18 Nov 2004 09:05:30 -0500:
>
> The wrapper did not recognize '.html' files as _source_ files. Patch for this and some other bugs is attached.
>
> David
Thanks David, it's working like a charm. But an other problem occurred:
dmd only returns 0(success) or 1(failure). Your patched script can "die" with a random return value.
# > dmd -version123 test.d ; echo $?
# unrecognized switch '-version123' at /tmp/svn.kuehne.cn/dstress/dmd line 95.
# 9
Thomas
|
Copyright © 1999-2021 by the D Language Foundation