]> git.sur5r.net Git - cc65/blobdiff - libsrc/common/locale.c
The spans do now contain the size of a span, no longer the end offset.
[cc65] / libsrc / common / locale.c
index ad5fe1c23acb025d99a8d2f097ad3f04ea0eaab1..f03a68e6fcd3427df391392ed6c5d170c6d8204c 100644 (file)
 
 
 
-/* Data in this module is read-only, put it into the RODATA segment */
-#pragma dataseg ("RODATA");
-
 /* For memory efficiency use a separate empty string */
-static const char EmptyString [] = "";
+static char EmptyString [] = "";
 
 static struct lconv lc = {
     EmptyString,       /* currency_symbol */
@@ -44,9 +41,6 @@ static struct lconv lc = {
     CHAR_MAX,          /* p_sign_posn */
 };
 
-/* Restore the old data segment name */
-#pragma dataseg ("DATA");
-
 
 
 /*****************************************************************************/
@@ -62,7 +56,7 @@ struct lconv* localeconv (void)
 
 
 
-char* setlocale (int, const char* locale)
+char* __fastcall__ setlocale (int, const char* locale)
 {
     if (locale == 0 || (locale [0] == 'C' && locale [1] == '\0') || locale [0] == '\0') {
        /* No change, or value already set, our locale is the "C" locale */
@@ -75,4 +69,4 @@ char* setlocale (int, const char* locale)
 
 
 
-                 
+