-
-
Notifications
You must be signed in to change notification settings - Fork 411
core.stdc.stdio - change stdout, etc., to enum for -betterC #1914
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. |
|
Doesn't this break |
Given the vagaries of how
This one is specific to the Digital Mars C runtime. Note that this change is necessary to make betterC code able to access |
schveiguy
left a comment
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.
I agree with Walter on this, the vagaries of how any C implementation defines the standard FILE * handles should be forwarded without any extra machinery. Portable code shouldn't make any assumptions about how it works, or depend on a druntime abstraction.
|
ping @CyberShadow any ideas on the doc build failure? They look internal to the build system itself, but I'm not 100% sure. |
I think this has been fixed one or two days ago. Unfortunately the only way to rekick DAutoTest is to rebase (unfortunately I can't help here as I'm without a computer atm). |
|
@schveiguy It's green now so I'm not sure what the error was, but judging from other build failures in the past few days, it was almost certainly due to code.dlang.org being down. |
This was the failed build: http://dtest.dlang.io/results/209be21a8f62782bb5b8f66edc7f9f8d62e1c439/2b5450cb012263aa23aad9c24f9528adefbba887/ |
Having
stdout, etc., be a variable means druntime needs to be linked in, meaning they do not work for-betterC. Switching to an enum makes it work.