Commit Graph

10 Commits

Author SHA1 Message Date
practicalswift
6d1ae2a39c [gardening] 2016 → 2017 2017-01-06 16:41:22 +01:00
practicalswift
797b80765f [gardening] Use the correct base URL (https://swift.org) in references to the Swift website
Remove all references to the old non-TLS enabled base URL (http://swift.org)
2016-11-20 17:36:03 +01:00
Saleem Abdulrasool
4ce4157037 stdlib: remove unnecessary externs in definitions
The definition may be tagged with `extern`, however, this does nothing.  In the
header, it may be used to indicate to other TUs that the definition is external
to the TU.  Remove the unnecessary modifier.  NFC.
2016-07-27 21:16:15 -07:00
Saleem Abdulrasool
1689363786 stdlib: shim errno access
errno is implemented as a macro in many environments.  The accessor hidden
behind the macro is not a standard function, so we ended up with an
implementation specific handling across all the targets.  Shim the function in C
where it can be hidden behind the CPP.  This simplifies the implementation on
the swift side.
2016-07-15 22:16:27 -07:00
Saleem Abdulrasool
a05fd17b64 Platform: port to msvcrt, add msvcrt module
This adds the swiftMSVCRT module which is similar in spirit to swiftGlibc and
swiftDarwin, exposing the Microsoft C Runtime library to swift.  Furthermore,
disable pieces of the standard library which are not immediately trivially
portable to Windows.  A lot of this functionality can still be implemented and
exposed to the user, however, this is the quickest means to a PoC for native
windows support.

As a temporary solution, add a -DCYGWIN flag to indicate that we are building
for the cygwin windows target.  This allows us to continue supporting the cygwin
environment whilst making the windows port work natively against the windows
environment (msvc).  Eventually, that will hopefully be replaced with an
environment check in swift.
2016-07-12 17:31:06 -07:00
Umberto Raimondi
fe6007efae Exported ioctl() 2016-06-09 08:45:05 +02:00
John McCall
50d58b2732 Add a lot of calling-convention annotations to the standard library / runtime.
The general rule here is that something needs to be SWIFT_CC(swift)
if it's just declared in Swift code using _silgen_name, as opposed to
importing something via a header.

Of course, SWIFT_CC(swift) expands to nothing by default for now, and
I haven't made an effort yet to add the indirect-result / context
parameter ABI attributes.  This is just a best-effort first pass.

I also took the opportunity to shift a few files to just implement
their shims header and to demote a few things to be private stdlib
interfaces.
2016-05-04 10:31:23 -07:00
danra
c3423529f9 Cosmetic fixes (NFC)
- Fix includes order
- Add  comments after endifs to indicate what they end
2016-04-02 16:49:43 +03:00
rintaro ishizaki
9ce1387ee3 [stdlib] Merged Glibc code to Platform directory. 2016-03-23 00:51:37 +09:00
rintaro ishizaki
eecfb6e41d [stdlib] Renamed cross-platform C helper functions in Darwin so that we can share them with Glibc. 2016-03-22 16:07:48 +09:00