Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inc/darwin: (WIP) Use linux versions of various crt headers; can incl…
…ude crt.bi now Only stdio.bi has been translated from the real thing.
- Loading branch information
1 parent
c707eef
commit 83852e9
Showing
6 changed files
with
101 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
'' | ||
'' | ||
'' stdio -- header translated with help of SWIG FB wrapper | ||
'' | ||
'' NOTICE: This file is part of the FreeBASIC Compiler package and can't | ||
'' be included in other distributions without authorization. | ||
'' | ||
'' | ||
#ifndef __crt_linux_stdio_bi__ | ||
#define __crt_linux_stdio_bi__ | ||
|
||
#define _IOFBF 0 | ||
#define _IOLBF 1 | ||
#define _IONBF 2 | ||
#define BUFSIZ 1024 | ||
#define FILENAME_MAX 1024 | ||
#define FOPEN_MAX 20 | ||
#define P_tmpdir "/var/tmp" | ||
#define L_tmpnam 1024 | ||
#define TMP_MAX 308915776 | ||
|
||
type FILE as _sFILE | ||
|
||
extern stdin alias "__stdinp" as FILE ptr | ||
extern stdout alias "__stdoutp" as FILE ptr | ||
extern stderr alias "__stderrp" as FILE ptr | ||
|
||
type fpos_t as longint | ||
|
||
extern "c" | ||
declare function snprintf (byval s as zstring ptr, byval n as size_t, byval format as zstring ptr, ...) as long | ||
declare function vsnprintf (byval s as zstring ptr, byval n as size_t, byval format as zstring ptr, byval arg as va_list) as long | ||
declare function popen (byval as zstring ptr, byval as zstring ptr) as FILE ptr | ||
declare function pclose (byval as FILE ptr) as long | ||
declare function getw (byval as FILE ptr) as long | ||
declare function putw (byval as long, byval as FILE ptr) as long | ||
end extern | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters