Skip to content

Commit

Permalink
Add snprintf and remove our sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsg authored and marcelstoer committed Nov 7, 2020
1 parent a6beec9 commit 60f0150
Show file tree
Hide file tree
Showing 5 changed files with 2,152 additions and 1,074 deletions.
2 changes: 1 addition & 1 deletion app/libc/Makefile
Expand Up @@ -22,7 +22,7 @@ endif
# makefile at its root level - these are then overridden
# for a subtree within the makefile rooted therein
#
#DEFINES +=
DEFINES += -DHAVE_CONFIG_H

#############################################################
# Recursion Magic - Don't touch this!!
Expand Down
39 changes: 39 additions & 0 deletions app/libc/snp_config.h
@@ -0,0 +1,39 @@
#ifndef SNP_CONFIG_H
#define SNP_CONFIG_H

#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

#endif /* SNP_CONFIG_H */

0 comments on commit 60f0150

Please sign in to comment.