-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Showing
160 changed files
with
5,157 additions
and
3,395 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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.gdb_history | ||
app/lua/.std | ||
app/lua53/.std | ||
sdk/ | ||
cache/ | ||
.ccache/ | ||
|
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
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
Submodule c99-snprintf
added at
27b59a
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,58 @@ | ||
/* | ||
* Wrapper around https://github.com/weiss/c99-snprintf | ||
*/ | ||
|
||
#define HAVE_CONFIG_H 0 | ||
#define TEST_SNPRINTF 0 | ||
#define HAVE_SNPRINTF 0 | ||
#define HAVE_VSNPRINTF 0 | ||
#define HAVE_ASPRINTF 0 | ||
#define HAVE_VASPRINTF 0 | ||
|
||
#define HAVE_STDARG_H 1 | ||
#define HAVE_STDLIB_H 1 | ||
|
||
#define HAVE_VA_COPY 0 | ||
#define HAVE___VA_COPY 0 | ||
#define HAVE_FLOAT_H 1 | ||
#define HAVE_INTTYPES_H 1 | ||
#define HAVE_LOCALE_H 0 | ||
#define HAVE_STDDEF_H 1 | ||
#define HAVE_STDINT_H 1 | ||
#define HAVE_UNSIGNED_LONG_LONG_INT 1 | ||
#define HAVE_UINTMAX_T 1 | ||
#define HAVE_LONG_DOUBLE 0 | ||
#define HAVE_LONG_LONG_INT 1 | ||
#define HAVE_INTMAX_T 1 | ||
#define HAVE_UINTPTR_T 1 | ||
#define HAVE_PTRDIFF_T 1 | ||
|
||
#define HAVE_LOCALECONV 0 | ||
#define HAVE_LCONV_DECIMAL_POINT 0 | ||
#define HAVE_LCONV_THOUSANDS_SEP 0 | ||
#define LDOUBLE_MIN_10_EXP DBL_MIN_10_EXP | ||
#define LDOUBLE_MAX_10_EXP DBL_MAX_10_EXP | ||
|
||
#define rpl_snprintf snprintf | ||
#define rpl_vsnprintf vsnprintf | ||
#define rpl_vasprintf vasprintf | ||
#define rpl_asprintf asprintf | ||
|
||
#include "c99-snprintf/snprintf.c" | ||
|
||
int sprintf(char *s, const char *fmt, ...) | ||
{ | ||
int n; | ||
va_list arg; | ||
va_start(arg, fmt); | ||
n = vsnprintf(s, 1024, fmt, arg); | ||
va_end(arg); | ||
return n; | ||
} | ||
|
||
int vsprintf (char *d, const char *s, va_list ap) | ||
{ | ||
return vsnprintf(d, 1024, s, ap); | ||
} | ||
|
||
|
Oops, something went wrong.