[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Cvs-cvs] ccvs/lib ChangeLog base64.c
From: |
Mark D. Baushke |
Subject: |
[Cvs-cvs] ccvs/lib ChangeLog base64.c |
Date: |
Mon, 26 Jun 2006 23:28:00 +0000 |
CVSROOT: /cvsroot/cvs
Module name: ccvs
Changes by: Mark D. Baushke <mdb> 06/06/26 23:28:00
Modified files:
lib : ChangeLog base64.c
Log message:
* base64.c: Update from gnulib. This file is no longer forked.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/ccvs/lib/ChangeLog?cvsroot=cvs&r1=1.520&r2=1.521
http://cvs.savannah.gnu.org/viewcvs/ccvs/lib/base64.c?cvsroot=cvs&r1=1.4&r2=1.5
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/cvs/ccvs/lib/ChangeLog,v
retrieving revision 1.520
retrieving revision 1.521
diff -u -b -r1.520 -r1.521
--- ChangeLog 26 Jun 2006 22:58:31 -0000 1.520
+++ ChangeLog 26 Jun 2006 23:28:00 -0000 1.521
@@ -1,5 +1,7 @@
2006-06-26 Mark D. Baushke <address@hidden>
+ * base64.c: Update from gnulib. This file is no longer forked.
+
* Makefile.gnulib, stdint_.h: Update from gnulib.
* Makefile.am: Update from Makefile.gnulib.
* Makefile.in: Regenerated.
Index: base64.c
===================================================================
RCS file: /cvsroot/cvs/ccvs/lib/base64.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- base64.c 23 Jun 2006 14:28:20 -0000 1.4
+++ base64.c 26 Jun 2006 23:28:00 -0000 1.5
@@ -149,72 +149,75 @@
Base64 alphabet (A-Za-z0-9+/) are encoded in 0..255. POSIX
1003.1-2001 require that char and unsigned char are 8-bit
quantities, though, taking care of that problem. But this may be a
- potential problem on non-POSIX C99 platforms. */
-#define B64(xx) \
- ((xx) == 'A' ? 0 \
- : (xx) == 'B' ? 1 \
- : (xx) == 'C' ? 2 \
- : (xx) == 'D' ? 3 \
- : (xx) == 'E' ? 4 \
- : (xx) == 'F' ? 5 \
- : (xx) == 'G' ? 6 \
- : (xx) == 'H' ? 7 \
- : (xx) == 'I' ? 8 \
- : (xx) == 'J' ? 9 \
- : (xx) == 'K' ? 10 \
- : (xx) == 'L' ? 11 \
- : (xx) == 'M' ? 12 \
- : (xx) == 'N' ? 13 \
- : (xx) == 'O' ? 14 \
- : (xx) == 'P' ? 15 \
- : (xx) == 'Q' ? 16 \
- : (xx) == 'R' ? 17 \
- : (xx) == 'S' ? 18 \
- : (xx) == 'T' ? 19 \
- : (xx) == 'U' ? 20 \
- : (xx) == 'V' ? 21 \
- : (xx) == 'W' ? 22 \
- : (xx) == 'X' ? 23 \
- : (xx) == 'Y' ? 24 \
- : (xx) == 'Z' ? 25 \
- : (xx) == 'a' ? 26 \
- : (xx) == 'b' ? 27 \
- : (xx) == 'c' ? 28 \
- : (xx) == 'd' ? 29 \
- : (xx) == 'e' ? 30 \
- : (xx) == 'f' ? 31 \
- : (xx) == 'g' ? 32 \
- : (xx) == 'h' ? 33 \
- : (xx) == 'i' ? 34 \
- : (xx) == 'j' ? 35 \
- : (xx) == 'k' ? 36 \
- : (xx) == 'l' ? 37 \
- : (xx) == 'm' ? 38 \
- : (xx) == 'n' ? 39 \
- : (xx) == 'o' ? 40 \
- : (xx) == 'p' ? 41 \
- : (xx) == 'q' ? 42 \
- : (xx) == 'r' ? 43 \
- : (xx) == 's' ? 44 \
- : (xx) == 't' ? 45 \
- : (xx) == 'u' ? 46 \
- : (xx) == 'v' ? 47 \
- : (xx) == 'w' ? 48 \
- : (xx) == 'x' ? 49 \
- : (xx) == 'y' ? 50 \
- : (xx) == 'z' ? 51 \
- : (xx) == '0' ? 52 \
- : (xx) == '1' ? 53 \
- : (xx) == '2' ? 54 \
- : (xx) == '3' ? 55 \
- : (xx) == '4' ? 56 \
- : (xx) == '5' ? 57 \
- : (xx) == '6' ? 58 \
- : (xx) == '7' ? 59 \
- : (xx) == '8' ? 60 \
- : (xx) == '9' ? 61 \
- : (xx) == '+' ? 62 \
- : (xx) == '/' ? 63 \
+ potential problem on non-POSIX C99 platforms.
+
+ IBM C V6 for AIX mishandles "#define B64(x) ...'x'...", so use "_"
+ as the formal parameter rather than "x". */
+#define B64(_) \
+ ((_) == 'A' ? 0 \
+ : (_) == 'B' ? 1 \
+ : (_) == 'C' ? 2 \
+ : (_) == 'D' ? 3 \
+ : (_) == 'E' ? 4 \
+ : (_) == 'F' ? 5 \
+ : (_) == 'G' ? 6 \
+ : (_) == 'H' ? 7 \
+ : (_) == 'I' ? 8 \
+ : (_) == 'J' ? 9 \
+ : (_) == 'K' ? 10 \
+ : (_) == 'L' ? 11 \
+ : (_) == 'M' ? 12 \
+ : (_) == 'N' ? 13 \
+ : (_) == 'O' ? 14 \
+ : (_) == 'P' ? 15 \
+ : (_) == 'Q' ? 16 \
+ : (_) == 'R' ? 17 \
+ : (_) == 'S' ? 18 \
+ : (_) == 'T' ? 19 \
+ : (_) == 'U' ? 20 \
+ : (_) == 'V' ? 21 \
+ : (_) == 'W' ? 22 \
+ : (_) == 'X' ? 23 \
+ : (_) == 'Y' ? 24 \
+ : (_) == 'Z' ? 25 \
+ : (_) == 'a' ? 26 \
+ : (_) == 'b' ? 27 \
+ : (_) == 'c' ? 28 \
+ : (_) == 'd' ? 29 \
+ : (_) == 'e' ? 30 \
+ : (_) == 'f' ? 31 \
+ : (_) == 'g' ? 32 \
+ : (_) == 'h' ? 33 \
+ : (_) == 'i' ? 34 \
+ : (_) == 'j' ? 35 \
+ : (_) == 'k' ? 36 \
+ : (_) == 'l' ? 37 \
+ : (_) == 'm' ? 38 \
+ : (_) == 'n' ? 39 \
+ : (_) == 'o' ? 40 \
+ : (_) == 'p' ? 41 \
+ : (_) == 'q' ? 42 \
+ : (_) == 'r' ? 43 \
+ : (_) == 's' ? 44 \
+ : (_) == 't' ? 45 \
+ : (_) == 'u' ? 46 \
+ : (_) == 'v' ? 47 \
+ : (_) == 'w' ? 48 \
+ : (_) == 'x' ? 49 \
+ : (_) == 'y' ? 50 \
+ : (_) == 'z' ? 51 \
+ : (_) == '0' ? 52 \
+ : (_) == '1' ? 53 \
+ : (_) == '2' ? 54 \
+ : (_) == '3' ? 55 \
+ : (_) == '4' ? 56 \
+ : (_) == '5' ? 57 \
+ : (_) == '6' ? 58 \
+ : (_) == '7' ? 59 \
+ : (_) == '8' ? 60 \
+ : (_) == '9' ? 61 \
+ : (_) == '+' ? 62 \
+ : (_) == '/' ? 63 \
: -1)
static const signed char b64[0x100] = {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Cvs-cvs] ccvs/lib ChangeLog base64.c,
Mark D. Baushke <=