-
Notifications
You must be signed in to change notification settings - Fork 281
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from TheBlueMatt/202-04-wasm
Re-support WASM via simple stub headers
- Loading branch information
Showing
10 changed files
with
132 additions
and
23 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
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,17 @@ | ||
#include <stddef.h> | ||
#define alignof(type) offsetof (struct { char c; type member; }, member) | ||
|
||
extern const unsigned char WASM32_INT_SIZE = sizeof(int); | ||
extern const unsigned char WASM32_INT_ALIGN = alignof(int); | ||
|
||
extern const unsigned char WASM32_UNSIGNED_INT_SIZE = sizeof(unsigned int); | ||
extern const unsigned char WASM32_UNSIGNED_INT_ALIGN = alignof(unsigned int); | ||
|
||
extern const unsigned char WASM32_SIZE_T_SIZE = sizeof(size_t); | ||
extern const unsigned char WASM32_SIZE_T_ALIGN = alignof(size_t); | ||
|
||
extern const unsigned char WASM32_UNSIGNED_CHAR_SIZE = sizeof(unsigned char); | ||
extern const unsigned char WASM32_UNSIGNED_CHAR_ALIGN = alignof(unsigned char); | ||
|
||
extern const unsigned char WASM32_PTR_SIZE = sizeof(void*); | ||
extern const unsigned char WASM32_PTR_ALIGN = alignof(void*); |
Empty file.
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,4 @@ | ||
#include <stddef.h> | ||
void *memset(void *s, int c, size_t n); | ||
void *memcpy(void *dest, const void *src, size_t n); | ||
int memcmp(const void *s1, const void *s2, size_t n); |
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