The sticks it in the .rodata section, allowing it to be placed in rom.
Signed-off-by: Keith Packard <keithp@keithp.com>
#include <_PDCLIB_int.h>
#endif
-char _PDCLIB_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
+const char _PDCLIB_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz";
/* For _PDCLIB/print.c only; obsolete with ctype.h */
-char _PDCLIB_Xdigits[] = "0123456789ABCDEF";
+const char _PDCLIB_Xdigits[] = "0123456789ABCDEF";
#ifdef TEST
#include <_PDCLIB_test.h>
};
/* This is strictly internal, and visible here for technical reasons only. */
-extern struct lconv _PDCLIB_lconv;
+extern const struct lconv _PDCLIB_lconv;
/* First arguments to setlocale().
TODO: Beware, values might change before v0.6 is released.
_PDCLIB_uintmax_t _PDCLIB_strtox_main( const char ** p, unsigned int base, _PDCLIB_uintmax_t error, _PDCLIB_uintmax_t limval, int limdigit, char * sign );
/* Digits arrays used by various integer conversion functions */
-extern char _PDCLIB_digits[];
-extern char _PDCLIB_Xdigits[];
+extern const char _PDCLIB_digits[];
+extern const char _PDCLIB_Xdigits[];
/* The worker for all printf() type of functions. The pointer spec should point
to the introducing '%' of a conversion specifier. The status structure is to