Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Windows console omf startup description #3478

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WalterBright
Copy link
Member

No description provided.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

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.

---
$(P The `main` function in it, because it is marked as `extern(C)`, is the entry point of a
C console program. The executable starts up as a C executable, with the C runtime library
initializing and then the C main() function is called.)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
initializing and then the C main() function is called.)
initialization and then the C main() function is called.)

$(P The `main` function in it, because it is marked as `extern(C)`, is the entry point of a
C console program. The executable starts up as a C executable, with the C runtime library
initializing and then the C main() function is called.)
$(P The C runtime library will runs any D functions tagged with `pragma(crt_constructor)` as
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
$(P The C runtime library will runs any D functions tagged with `pragma(crt_constructor)` as
$(P The C runtime library runs any D functions tagged with `pragma(crt_constructor)` as

return _d_run_main(argc, argv, &_Dmain);
}

// Solaris, for unknown reasons, requires both a main() and an _main()
Copy link
Member

Choose a reason for hiding this comment

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

Has anyone tried asking Solaris?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants