summaryrefslogtreecommitdiff
path: root/localedata
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-28 08:44:07 +0000
committerRoland McGrath <roland@gnu.org>2002-08-28 08:44:07 +0000
commitf6056d40d84a5bfba515d69ed95a6c46be4c565d (patch)
tree7f6ad3b4ec98aa451eb669ec39916d5f9a490259 /localedata
parentc096ab2534deffc2668b90fc86798d7fdaa70f55 (diff)
downloadglibc-f6056d40d84a5bfba515d69ed95a6c46be4c565d.tar.gz
2002-08-28 Roland McGrath <roland@redhat.com>
* tst-xlocale1.c (main): Remove __ from function names. * tst-xlocale2.c: Likewise.
Diffstat (limited to 'localedata')
-rw-r--r--localedata/tst-xlocale1.c6
-rw-r--r--localedata/tst-xlocale2.c22
2 files changed, 14 insertions, 14 deletions
diff --git a/localedata/tst-xlocale1.c b/localedata/tst-xlocale1.c
index bfe978f485..6dcbccefdf 100644
--- a/localedata/tst-xlocale1.c
+++ b/localedata/tst-xlocale1.c
@@ -25,7 +25,7 @@ main (void)
{
int cnt;
int result = 0;
- __locale_t loc = __newlocale (1 << LC_ALL, "C", NULL);
+ locale_t loc = newlocale (1 << LC_ALL, "C", NULL);
for (cnt = 0; cnt < ntests; ++cnt)
{
@@ -38,10 +38,10 @@ main (void)
continue;
}
- printf ("\n__strcasecmp_l (\"%s\", \"%s\", loc)\n",
+ printf ("\nstrcasecmp_l (\"%s\", \"%s\", loc)\n",
tests[cnt].str1, tests[cnt].str2);
- r = __strcasecmp_l (tests[cnt].str1, tests[cnt].str2, loc);
+ r = strcasecmp_l (tests[cnt].str1, tests[cnt].str2, loc);
if (tests[cnt].result == 0)
{
if (r != 0)
diff --git a/localedata/tst-xlocale2.c b/localedata/tst-xlocale2.c
index 224cccb12f..8d73d340ce 100644
--- a/localedata/tst-xlocale2.c
+++ b/localedata/tst-xlocale2.c
@@ -9,26 +9,26 @@ static int do_test (__locale_t l);
int
main (void)
{
- __locale_t l;
- __locale_t l2;
+ locale_t l;
+ locale_t l2;
int result;
- l = __newlocale (1 << LC_ALL, "de_DE.ISO-8859-1", NULL);
+ l = newlocale (1 << LC_ALL, "de_DE.ISO-8859-1", NULL);
if (l == NULL)
{
- printf ("__newlocale failed: %m\n");
+ printf ("newlocale failed: %m\n");
exit (EXIT_FAILURE);
}
puts ("Running tests of created locale");
result = do_test (l);
- l2 = __duplocale (l);
+ l2 = duplocale (l);
if (l2 == NULL)
{
- printf ("__duplocale failed: %m\n");
+ printf ("duplocale failed: %m\n");
exit (EXIT_FAILURE);
}
- __freelocale (l);
+ freelocale (l);
puts ("Running tests of duplicated locale");
result |= do_test (l2);
@@ -43,7 +43,7 @@ static const char exx[] = "11111111111111110111111000000000000000000000000000";
static int
-do_test (__locale_t l)
+do_test (locale_t l)
{
int result = 0;
int n;
@@ -56,9 +56,9 @@ do_test (__locale_t l)
result = 1; \
}
- DO_TEST (__isdigit_l, exd);
- DO_TEST (__isalpha_l, exa);
- DO_TEST (__isxdigit_l, exx);
+ DO_TEST (isdigit_l, exd);
+ DO_TEST (isalpha_l, exa);
+ DO_TEST (isxdigit_l, exx);
return result;
}