Deleted Added
full compact
unvis.c (244401) unvis.c (248302)
1/* $NetBSD: unvis.c,v 1.40 2012/12/14 21:31:01 christos Exp $ */
1/* $NetBSD: unvis.c,v 1.41 2012/12/15 04:29:53 matt Exp $ */
2
3/*-
4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 19 unchanged lines hidden (view full) ---

29 * SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
33#if defined(LIBC_SCCS) && !defined(lint)
34#if 0
35static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93";
36#else
2
3/*-
4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 19 unchanged lines hidden (view full) ---

29 * SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
33#if defined(LIBC_SCCS) && !defined(lint)
34#if 0
35static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93";
36#else
37__RCSID("$NetBSD: unvis.c,v 1.40 2012/12/14 21:31:01 christos Exp $");
37__RCSID("$NetBSD: unvis.c,v 1.41 2012/12/15 04:29:53 matt Exp $");
38#endif
39#endif /* LIBC_SCCS and not lint */
38#endif
39#endif /* LIBC_SCCS and not lint */
40__FBSDID("$FreeBSD: head/contrib/libc-vis/unvis.c 244401 2012-12-18 16:37:24Z brooks $");
40__FBSDID("$FreeBSD: head/contrib/libc-vis/unvis.c 248302 2013-03-14 23:51:47Z brooks $");
41
42#include "namespace.h"
43#include <sys/types.h>
44
45#include <assert.h>
46#include <ctype.h>
47#include <stdint.h>
48#include <stdio.h>

--- 36 unchanged lines hidden (view full) ---

85#define isoctal(c) (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7')
86#define xtod(c) (isdigit(c) ? (c - '0') : ((tolower(c) - 'a') + 10))
87#define XTOD(c) (isdigit(c) ? (c - '0') : ((c - 'A') + 10))
88
89/*
90 * RFC 1866
91 */
92static const struct nv {
41
42#include "namespace.h"
43#include <sys/types.h>
44
45#include <assert.h>
46#include <ctype.h>
47#include <stdint.h>
48#include <stdio.h>

--- 36 unchanged lines hidden (view full) ---

85#define isoctal(c) (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7')
86#define xtod(c) (isdigit(c) ? (c - '0') : ((tolower(c) - 'a') + 10))
87#define XTOD(c) (isdigit(c) ? (c - '0') : ((c - 'A') + 10))
88
89/*
90 * RFC 1866
91 */
92static const struct nv {
93 const char name[7];
93 char name[7];
94 uint8_t value;
95} nv[] = {
96 { "AElig", 198 }, /* capital AE diphthong (ligature) */
97 { "Aacute", 193 }, /* capital A, acute accent */
98 { "Acirc", 194 }, /* capital A, circumflex accent */
99 { "Agrave", 192 }, /* capital A, grave accent */
100 { "Aring", 197 }, /* capital A, ring */
101 { "Atilde", 195 }, /* capital A, tilde */

--- 461 unchanged lines hidden ---
94 uint8_t value;
95} nv[] = {
96 { "AElig", 198 }, /* capital AE diphthong (ligature) */
97 { "Aacute", 193 }, /* capital A, acute accent */
98 { "Acirc", 194 }, /* capital A, circumflex accent */
99 { "Agrave", 192 }, /* capital A, grave accent */
100 { "Aring", 197 }, /* capital A, ring */
101 { "Atilde", 195 }, /* capital A, tilde */

--- 461 unchanged lines hidden ---