This repository has been archived by the owner on Oct 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e9bad6
commit a3622ca
Showing
7 changed files
with
346 additions
and
262 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
namespace test; | ||
namespace core; | ||
|
||
// private foreign func malloc(size #u64) #void*; | ||
// private foreign func realloc(ptr #void*, size #u64) #void*; | ||
// private foreign func free(pointer #void*) #void; | ||
private foreign func malloc(size #u64) #void*; | ||
private foreign func realloc(ptr #void*, size #u64) #void*; | ||
private foreign func free(pointer #void*) #void; | ||
|
||
// private foreign func printf(text #char*, ~~) #i32; | ||
// private foreign func sprintf(destination #char*, format #char*, ~~) #i32; | ||
// private foreign func fflush(stream #FILE*) #i32; | ||
// private foreign func fputs(string #char*, stream #FILE*) #i32; | ||
// private foreign func fgets(str #char*, n #i32, stream #FILE*) #char*; | ||
// private foreign func fgetc(file #FILE*) #i32; | ||
// private foreign func fopen(path #char*, mode #char*) #FILE*; | ||
// private foreign func strcpy(destination #char*, source #char*) #char*; | ||
private foreign func printf(text #char*, ~~) #i32; | ||
private foreign func sprintf(destination #char*, format #char*, ~~) #i32; | ||
private foreign func fflush(stream #FILE*) #i32; | ||
private foreign func fputs(string #char*, stream #FILE*) #i32; | ||
private foreign func fgets(str #char*, n #i32, stream #FILE*) #char*; | ||
private foreign func fgetc(file #FILE*) #i32; | ||
private foreign func fopen(path #char*, mode #char*) #FILE*; | ||
private foreign func strcpy(destination #char*, source #char*) #char*; | ||
|
||
// private foreign struct FILE; | ||
private foreign struct FILE; | ||
|
||
// // @TargetOS("windows") | ||
// // @CallingConvention("cdecl") | ||
// // private foreign func __acrt_iob_func(n #u32) #FILE*; | ||
// @TargetOS("windows") | ||
// @CallingConvention("cdecl") | ||
// private foreign func __acrt_iob_func(n #u32) #FILE*; | ||
|
||
// @TargetOS("linux") | ||
// private foreign stdin #FILE*; | ||
@TargetOS("linux") | ||
private foreign stdin #FILE*; | ||
|
||
// @TargetOS("linux") | ||
// private foreign stdout #FILE*; | ||
@TargetOS("linux") | ||
private foreign stdout #FILE*; | ||
|
||
// @TargetOS("linux") | ||
// private foreign stderr #FILE*; | ||
@TargetOS("linux") | ||
private foreign stderr #FILE*; |
Oops, something went wrong.