Remove unused files (msvcrt version is used instead)
authorGé van Geldorp <ge@gse.nl>
Thu, 24 Jul 2003 15:59:46 +0000 (15:59 +0000)
committerGé van Geldorp <ge@gse.nl>
Thu, 24 Jul 2003 15:59:46 +0000 (15:59 +0000)
svn path=/trunk/; revision=5243

reactos/lib/crtdll/locale/.cvsignore [deleted file]
reactos/lib/crtdll/locale/locale.c [deleted file]
reactos/lib/crtdll/makefile

diff --git a/reactos/lib/crtdll/locale/.cvsignore b/reactos/lib/crtdll/locale/.cvsignore
deleted file mode 100644 (file)
index bd0e3df..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-*.d
-*.o
-*.sym
diff --git a/reactos/lib/crtdll/locale/locale.c b/reactos/lib/crtdll/locale/locale.c
deleted file mode 100644 (file)
index 7eb5c67..0000000
+++ /dev/null
@@ -1,147 +0,0 @@
-#include <msvcrt/stdio.h>
-#include <msvcrt/locale.h>
-#include <msvcrt/string.h>
-#include <limits.h>
-
-
-int _current_category; /* used by setlocale */
-const char *_current_locale;
-
-int parse_locale(char *locale, char *lang, char *country, char *code_page);
-
-/*
- * @implemented
- */
-char *setlocale(int category, const char *locale)
-{
-       char lang[100];
-       char country[100];
-       char code_page[100];
-       parse_locale((char *)locale,lang,country,code_page);    
-
-       //printf("%s %s %s %s\n",locale,lang,country,code_page);
-
-
-       switch ( category )
-       {
-               case LC_COLLATE:
-               break;
-               case LC_CTYPE:
-               break;
-               case LC_MONETARY:
-               break;
-               case LC_NUMERIC:
-               break;
-               case LC_TIME:
-               break;
-               case LC_ALL:
-               break;
-               default:
-               break;
-       }
-
-       return "C";
-
-}
-
-/*
-
-locale  "lang[_country[.code_page]]"
-            | ".code_page"
-            | ""
-            | NULL
-            
-*/
-int parse_locale(char *locale, char *lang, char *country, char *code_page)
-{
-       while ( *locale != 0 && *locale != '.' && *locale != '_' )
-       {
-               *lang = *locale;
-               lang++;
-               locale++;
-       }
-       *lang = 0;
-       if ( *locale == '_' ) {
-               locale++;
-               while ( *locale != 0 && *locale != '.' )
-               {
-                       *country = *locale;
-                       country++;
-                       locale++;
-               }
-       }
-       *country = 0;
-       
-       
-       if ( *locale == '.' ) {
-               locale++;
-               while ( *locale != 0 && *locale != '.' )
-               {
-                       *code_page = *locale;
-                       code_page++;
-                       locale++;
-               }
-       }
-       
-       *code_page = 0;
-       return 0;       
-}
-
-const struct map_lcid2str {
-        short            langid;
-        const char      *langname;
-       const char      *country;
-} languages[]={
-        {0x0409,"English", "United States"},
-        {0x0809,"English", "United Kingdom"},
-        {0x0000,"Unknown", "Unknown"}
-    
-};
-
-const struct map_cntr {
-       const char *abrev;
-       const char  *country;
-} abrev[] = {
-       {"britain", "united kingdom"},
-       {"england", "united kingdom"},
-       {"gbr", "united kingdom"},
-       {"great britain", "united kingdom"},
-       {"uk", "united kingdom"},
-       {"united kingdom", "united kingdom"},
-       {"united-kingdom", "united kingdom"},
-       {"america", "united states" },
-       {"united states", "united states"},
-       {"united-states", "united states"},
-       {"us", "united states"},
-       {"usa" "united states"}
-};
-
-
-struct lconv _lconv =  {        
-".",   // decimal_point 
-",",   // thousands_sep
-"",    // grouping;     
-"DOL", // int_curr_symbol       
-"$",   // currency_symbol
-".",   // mon_decimal_point     
-",",   // mon_thousands_sep     
-"",    // mon_grouping;
-"+",   // positive_sign 
-"-",   // negative_sign 
-127,     // int_frac_digits
-127,     // frac_digits 
-127,     // p_cs_precedes       
-127,     // p_sep_by_space
-127,     // n_cs_precedes       
-127,     // n_sep_by_space      
-127,     // p_sign_posn;
-127      // n_sign_posn;        
-};
-
-/*
- * @implemented
- */
-struct lconv *localeconv(void)
-{
-  return (struct lconv *) &_lconv;
-}
index 1c17a23..a0d6716 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: makefile,v 1.59 2003/07/16 22:09:07 royce Exp $
+# $Id: makefile,v 1.60 2003/07/24 15:59:46 gvg Exp $
 
 PATH_TO_TOP = ../..
 
@@ -29,7 +29,6 @@ TARGET_CLEAN = \
        float/*.o \
        io/*.o \
        libc/*.o \
-       locale/*.o \
        malloc/*.o \
        math/*.o \
        mbstring/*.o \