Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put numbering at start of line, since that's where it's numbered from… #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 34 additions & 38 deletions ccan/base64/base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,42 +213,38 @@ ssize_t base64_decode_using_maps(const base64_maps_t *maps,
static const base64_maps_t base64_maps_rfc4648 = {
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",

"\xff\xff\xff\xff\xff" /* 0 */ \
"\xff\xff\xff\xff\xff" /* 5 */ \
"\xff\xff\xff\xff\xff" /* 10 */ \
"\xff\xff\xff\xff\xff" /* 15 */ \
"\xff\xff\xff\xff\xff" /* 20 */ \
"\xff\xff\xff\xff\xff" /* 25 */ \
"\xff\xff\xff\xff\xff" /* 30 */ \
"\xff\xff\xff\xff\xff" /* 35 */ \
"\xff\xff\xff\x3e\xff" /* 40 */ \
"\xff\xff\x3f\x34\x35" /* 45 */ \
"\x36\x37\x38\x39\x3a" /* 50 */ \
"\x3b\x3c\x3d\xff\xff" /* 55 */ \
"\xff\xff\xff\xff\xff" /* 60 */ \
"\x00\x01\x02\x03\x04" /* 65 A */ \
"\x05\x06\x07\x08\x09" /* 70 */ \
"\x0a\x0b\x0c\x0d\x0e" /* 75 */ \
"\x0f\x10\x11\x12\x13" /* 80 */ \
"\x14\x15\x16\x17\x18" /* 85 */ \
"\x19\xff\xff\xff\xff" /* 90 */ \
"\xff\xff\x1a\x1b\x1c" /* 95 */ \
"\x1d\x1e\x1f\x20\x21" /* 100 */ \
"\x22\x23\x24\x25\x26" /* 105 */ \
"\x27\x28\x29\x2a\x2b" /* 110 */ \
"\x2c\x2d\x2e\x2f\x30" /* 115 */ \
"\x31\x32\x33\xff\xff" /* 120 */ \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" /* 125 */ \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" /* 155 */ \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" /* 185 */ \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" /* 215 */ \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
"\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" /* 245 */
/* 0 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 10 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 20 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 30 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 40 */ "\xff\xff\xff\x3e\xff" \
/* 45 */ "\xff\xff\x3f\x34\x35" \
/* 50 */ "\x36\x37\x38\x39\x3a" \
/* 55 */ "\x3b\x3c\x3d\xff\xff" \
/* 60 */ "\xff\xff\xff\xff\xff" \
/* 65 */ "\x00\x01\x02\x03\x04" /* A */ \
/* 70 */ "\x05\x06\x07\x08\x09" \
/* 75 */ "\x0a\x0b\x0c\x0d\x0e" \
/* 80 */ "\x0f\x10\x11\x12\x13" \
/* 85 */ "\x14\x15\x16\x17\x18" \
/* 90 */ "\x19\xff\xff\xff\xff" \
/* 95 */ "\xff\xff\x1a\x1b\x1c" \
/* 100 */ "\x1d\x1e\x1f\x20\x21" \
/* 105 */ "\x22\x23\x24\x25\x26" \
/* 110 */ "\x27\x28\x29\x2a\x2b" \
/* 115 */ "\x2c\x2d\x2e\x2f\x30" \
/* 120 */ "\x31\x32\x33\xff\xff" \
/* 125 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 135 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 145 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 155 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 165 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 175 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 185 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 195 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 205 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 215 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 225 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 235 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff" \
/* 245 */ "\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff"
};