[uClibc-cvs] uClibc/extra/locale gen_collate.c,1.1,1.2

Manuel Novoa III mjn3 at uclibc.org
Tue Jun 17 18:31:27 UTC 2003


Update of /var/cvs/uClibc/extra/locale
In directory winder:/tmp/cvs-serv10596

Modified Files:
	gen_collate.c 
Log Message:
Ok... pasting in DUMPn() is unnecessary and technically incorrect.


Index: gen_collate.c
===================================================================
RCS file: /var/cvs/uClibc/extra/locale/gen_collate.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- gen_collate.c	20 Dec 2002 19:26:15 -0000	1.1
+++ gen_collate.c	17 Jun 2003 18:31:23 -0000	1.2
@@ -3766,7 +3766,7 @@
 	return  (ruletable_len / MAX_COLLATION_WEIGHTS)-1;
 }
 
-#define DUMPn(X) fprintf(stderr, "%10d-%-.20s", base_locale_array[n]. ## X, #X);
+#define DUMPn(X) fprintf(stderr, "%10d-%-.20s", base_locale_array[n]. X, #X);
 
 static void dump_base_locale(int n)
 {
@@ -3802,7 +3802,7 @@
 }
 
 #undef DUMPn
-#define DUMPn(X) fprintf(stderr, "%10d-%s", der_locale_array[n]. ## X, #X);
+#define DUMPn(X) fprintf(stderr, "%10d-%s", der_locale_array[n]. X, #X);
 
 static void dump_der_locale(int n)
 {
@@ -3859,7 +3859,7 @@
 	OUT_U16C(ruletable_len, "number of ruletable elements");
 
 #undef DUMPn
-#define DUMPn(X) fprintf(fp, "\t%10d, /* %8lu %s */\n", base_locale_array[n]. ## X, collate_pos++, #X);
+#define DUMPn(X) fprintf(fp, "\t%10d, /* %8lu %s */\n", base_locale_array[n]. X, collate_pos++, #X);
 	for (n=0 ; n < base_locale_len ; n++) {
 		unsigned wcs2colidt_offset_low = base_locale_array[n].wcs2colidt_offset & 0xffffU;
 		unsigned wcs2colidt_offset_hi = base_locale_array[n].wcs2colidt_offset >> 16;
@@ -3890,7 +3890,7 @@
 
 
 	fprintf(fp, "#define COL_IDX_C     %5d\n", 0);
-#define DUMPn(X) fprintf(fp, "\t%10d, /* %8lu %s */\n", der_locale_array[n]. ## X, collate_pos++, #X);
+#define DUMPn(X) fprintf(fp, "\t%10d, /* %8lu %s */\n", der_locale_array[n]. X, collate_pos++, #X);
 	for (n=0 ; n < der_locale_len ; n++) {
 		fprintf(fp, "#define COL_IDX_%s %5d\n", der_locale_array[n].name, n+1);
 		fprintf(fp, "\t/* Derived Locale %4d: %s (%.12s) */\n",



More information about the uClibc-cvs mailing list