-ctype.c: mkctype
- $(mkctype_verbose)./mkctype > ctype.c
-
loader.tr: $(top_srcdir)/data/lang-table loader.po
@LANGS="`cut -f 2 $(top_srcdir)/data/lang-table | egrep -v '(^en$$)'`" ;
if [ ! -d tr ]; then
diff --git a/loader/mkctype.c b/loader/mkctype.c
deleted file mode 100644
index 12eaba0..0000000
--- a/loader/mkctype.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * mkctype.c
- *
- * Copyright (C) 2007 Red Hat, Inc. All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include <ctype.h>
-#include <stdio.h>
-
-#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 2)
-# define __ctype_b (*__ctype_b_loc())
-# define __ctype_tolower (*__ctype_tolower_loc())
-# define __ctype_toupper (*__ctype_toupper_loc())
-#endif
-
-int main(int argc, char ** argv) {
- int i;
-
- printf("#include <sys/types.h>
");
-
- printf("static const unsigned short int __ctype_b_internal[] = {");
-
- for (i = -128; i < 256; i++) {
- if (!(i % 8)) {
- printf("
");
- }
-
- printf(" 0x%x,", __ctype_b[i]);
- }
-
- printf("
};
");
- printf("const unsigned short int * __ctype_b = __ctype_b_internal + 128;
");
-
- printf("const int __ctype_toupper_internal[] = {");
- for (i = -128; i < 256; i++) {
- if (!(i % 8)) {
- printf("
");
- }
-
- printf(" 0x%x,", __ctype_toupper[i]);
- }
-
- printf("
};
");
- printf("const int * __ctype_toupper = __ctype_toupper_internal + 128;
");
-
- printf("const int __ctype_tolower_internal[] = {");
- for (i = -128; i < 256; i++) {
- if (!(i % 8)) {
- printf("
");
- }
-
- printf(" 0x%x,", __ctype_tolower[i]);
- }
-
- printf("
};
");
- printf("const int * __ctype_tolower = __ctype_tolower_internal + 128;
");
-
- printf ("const unsigned short int **__ctype_b_loc (void) { return &__ctype_b; }
");
- printf ("const int **__ctype_toupper_loc (void) { return &__ctype_toupper; }
");
- printf ("const int **__ctype_tolower_loc (void) { return &__ctype_tolower; }
");
-
- return 0;
-};
--
1.7.4.1
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list