FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 03-21-2011, 06:04 PM
Chris Lumens
 
Default mkctype.c is no longer used. Remove it.

---
loader/Makefile.am | 15 +---------
loader/mkctype.c | 76 ----------------------------------------------------
2 files changed, 2 insertions(+), 89 deletions(-)
delete mode 100644 loader/mkctype.c

diff --git a/loader/Makefile.am b/loader/Makefile.am
index dc6f5fe..ebcc5f7 100644
--- a/loader/Makefile.am
+++ b/loader/Makefile.am
@@ -23,8 +23,7 @@ shareddir = $(datadir)/$(PACKAGE_NAME)
boot_PROGRAMS = loader
shared_DATA = loader.tr
dist_shared_DATA = unicode-linedraw-chars.txt
-noinst_PROGRAMS = mkctype dirbrowser
-noinst_DATA = ctype.c
+noinst_PROGRAMS = dirbrowser
noinst_HEADERS = *.h

if IS_S390
@@ -65,16 +64,13 @@ init_SOURCES = init.c undomounts.c shutdown.c copy.c modules.c
shutdown_CFLAGS = $(COMMON_CFLAGS) -DAS_SHUTDOWN=1
shutdown_SOURCES = shutdown.c undomounts.c

-mkctype_CFLAGS = $(COMMON_CFLAGS)
-mkctype_SOURCES = mkctype.c
-
dirbrowser_CFLAGS = $(COMMON_CFLAGS) -DSTANDALONE
dirbrowser_LDADD = $(NEWT_LIBS)
dirbrowser_SOURCES = dirbrowser.c

EXTRA_DIST = simplemot keymaps-*

-CLEANFILES = keymaps-override-$(ARCH) ctype.c tr/*.tr
+CLEANFILES = keymaps-override-$(ARCH) tr/*.tr

MAINTAINERCLEANFILES = Makefile.in

@@ -86,10 +82,6 @@ cp_verbose = $(cp_verbose_$(V))
cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
cp_verbose_0 = @echo " CP "$@;

-mkctype_verbose = $(mkctype_verbose_$(V))
-mkctype_verbose_ = $(mkctype_verbose_$(AM_DEFAULT_VERBOSITY))
-mkctype_verbose_0 = @echo " MAKE "$@;
-
msgmerge_verbose = $(msgmerge_verbose_$(V))
msgmerge_verbose_ = $(msgmerge_verbose_$(AM_DEFAULT_VERBOSITY))
msgmerge_verbose_0 = echo " MERGE "$${lang}.po;
@@ -101,9 +93,6 @@ xgettext_verbose_0 = @echo " GETTXT "$@;
keymaps-override-$(ARCH): keymaps-$(ARCH)
$(cp_verbose)cp -p $< $@

-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
 
Old 03-21-2011, 07:12 PM
David Lehman
 
Default mkctype.c is no longer used. Remove it.

On Mon, 2011-03-21 at 15:04 -0400, Chris Lumens wrote:
> ---
> loader/Makefile.am | 15 +---------
> loader/mkctype.c | 76 ----------------------------------------------------
> 2 files changed, 2 insertions(+), 89 deletions(-)
> delete mode 100644 loader/mkctype.c

Ack.

>
> diff --git a/loader/Makefile.am b/loader/Makefile.am
> index dc6f5fe..ebcc5f7 100644
> --- a/loader/Makefile.am
> +++ b/loader/Makefile.am
> @@ -23,8 +23,7 @@ shareddir = $(datadir)/$(PACKAGE_NAME)
> boot_PROGRAMS = loader
> shared_DATA = loader.tr
> dist_shared_DATA = unicode-linedraw-chars.txt
> -noinst_PROGRAMS = mkctype dirbrowser
> -noinst_DATA = ctype.c
> +noinst_PROGRAMS = dirbrowser
> noinst_HEADERS = *.h
>
> if IS_S390
> @@ -65,16 +64,13 @@ init_SOURCES = init.c undomounts.c shutdown.c copy.c modules.c
> shutdown_CFLAGS = $(COMMON_CFLAGS) -DAS_SHUTDOWN=1
> shutdown_SOURCES = shutdown.c undomounts.c
>
> -mkctype_CFLAGS = $(COMMON_CFLAGS)
> -mkctype_SOURCES = mkctype.c
> -
> dirbrowser_CFLAGS = $(COMMON_CFLAGS) -DSTANDALONE
> dirbrowser_LDADD = $(NEWT_LIBS)
> dirbrowser_SOURCES = dirbrowser.c
>
> EXTRA_DIST = simplemot keymaps-*
>
> -CLEANFILES = keymaps-override-$(ARCH) ctype.c tr/*.tr
> +CLEANFILES = keymaps-override-$(ARCH) tr/*.tr
>
> MAINTAINERCLEANFILES = Makefile.in
>
> @@ -86,10 +82,6 @@ cp_verbose = $(cp_verbose_$(V))
> cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
> cp_verbose_0 = @echo " CP "$@;
>
> -mkctype_verbose = $(mkctype_verbose_$(V))
> -mkctype_verbose_ = $(mkctype_verbose_$(AM_DEFAULT_VERBOSITY))
> -mkctype_verbose_0 = @echo " MAKE "$@;
> -
> msgmerge_verbose = $(msgmerge_verbose_$(V))
> msgmerge_verbose_ = $(msgmerge_verbose_$(AM_DEFAULT_VERBOSITY))
> msgmerge_verbose_0 = echo " MERGE "$${lang}.po;
> @@ -101,9 +93,6 @@ xgettext_verbose_0 = @echo " GETTXT "$@;
> keymaps-override-$(ARCH): keymaps-$(ARCH)
> $(cp_verbose)cp -p $< $@
>
> -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;
> -};


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 08:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org