-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Match the rest of runtime and libc (#183)
* Match the rest of libc * Use ifndef __MWERKS__
- Loading branch information
Showing
17 changed files
with
2,023 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef _ANSI_FP | ||
#define _ANSI_FP | ||
|
||
#define SIGDIGLEN 36 | ||
|
||
typedef struct decimal { | ||
char sign; | ||
char unk1; | ||
short exp; | ||
struct { | ||
unsigned char length; | ||
unsigned char text[36]; | ||
unsigned char unk41; | ||
} sig; | ||
} decimal; | ||
|
||
typedef struct decform { | ||
char style; | ||
char unk1; | ||
short digits; | ||
} decform; | ||
|
||
void __num2dec(const decform* f, double x, decimal* d); | ||
|
||
#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
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,15 +1,20 @@ | ||
#ifndef _STRING_H_ | ||
#define _STRING_H_ | ||
|
||
#include "mem_funcs.h" | ||
#include "stddef.h" | ||
|
||
char* strcpy(char* dst, const char* src); | ||
char* strncpy(char* dst, const char* src, size_t num); | ||
char* strncat(char* dest, const char* src, size_t n); | ||
size_t strlen(const char* s); | ||
char* strcpy(char* dest, const char* src); | ||
char* strncpy(char* dest, const char* src, size_t num); | ||
int strcmp(const char* s1, const char* s2); | ||
int strncmp(const char* s1, const char* s2, size_t n); | ||
char* strncat(char* dest, const char* src, size_t n); | ||
char* strchr(const char* str, int chr); | ||
|
||
void* memchr(const void* p, int val, size_t n); | ||
int memcmp(const void* p1, const void* p2, size_t n); | ||
void* memset(void* dst, int val, size_t n); | ||
void* memcpy(void* dst, const void* src, size_t n); | ||
void* memmove(void* dst, const void* src, size_t n); | ||
|
||
#endif |
Oops, something went wrong.