source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Grrr, patch(1) merged the new function to the wrong place in
@ 2014-10-26 18:12 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2014-10-26 18:12 UTC (permalink / raw)
  To: source

Log Message:
-----------
Grrr, patch(1) merged the new function to the wrong place in this file.
Resync with OpenBSD.  No code change.

Modified Files:
--------------
    mdocml:
        term_ascii.c

Revision Data
-------------
Index: term_ascii.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/term_ascii.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -Lterm_ascii.c -Lterm_ascii.c -u -p -r1.35 -r1.36
--- term_ascii.c
+++ term_ascii.c
@@ -166,83 +166,6 @@ ascii_setwidth(struct termp *p, int iop,
 	p->rmargin = p->maxrmargin = p->defrmargin;
 }
 
-const char *
-ascii_uc2str(int uc)
-{
-	static const char nbrsp[2] = { ASCII_NBRSP, '\0' };
-	static const char *tab[] = {
-	"<NUL>","<SOH>","<STX>","<ETX>","<EOT>","<ENQ>","<ACK>","<BEL>",
-	"<BS>",	"\t",	"<LF>",	"<VT>",	"<FF>",	"<CR>",	"<SO>",	"<SI>",
-	"<DLE>","<DC1>","<DC2>","<DC3>","<DC4>","<NAK>","<SYN>","<ETB>",
-	"<CAN>","<EM>",	"<SUB>","<ESC>","<FS>",	"<GS>",	"<RS>",	"<US>",
-	" ",	"!",	"\"",	"#",	"$",	"%",	"&",	"'",
-	"(",	")",	"*",	"+",	",",	"-",	".",	"/",
-	"0",	"1",	"2",	"3",	"4",	"5",	"6",	"7",
-	"8",	"9",	":",	";",	"<",	"=",	">",	"?",
-	"@",	"A",	"B",	"C",	"D",	"E",	"F",	"G",
-	"H",	"I",	"J",	"K",	"L",	"M",	"N",	"O",
-	"P",	"Q",	"R",	"S",	"T",	"U",	"V",	"W",
-	"X",	"Y",	"Z",	"[",	"\\",	"]",	"^",	"_",
-	"`",	"a",	"b",	"c",	"d",	"e",	"f",	"g",
-	"h",	"i",	"j",	"k",	"l",	"m",	"n",	"o",
-	"p",	"q",	"r",	"s",	"t",	"u",	"v",	"w",
-	"x",	"y",	"z",	"{",	"|",	"}",	"~",	"<DEL>",
-	"<80>",	"<81>",	"<82>",	"<83>",	"<84>",	"<85>",	"<86>",	"<87>",
-	"<88>",	"<89>",	"<8A>",	"<8B>",	"<8C>",	"<8D>",	"<8E>",	"<8F>",
-	"<90>",	"<91>",	"<92>",	"<93>",	"<94>",	"<95>",	"<96>",	"<97>",
-	"<99>",	"<99>",	"<9A>",	"<9B>",	"<9C>",	"<9D>",	"<9E>",	"<9F>",
-	nbrsp,	"!",	"c",	"GBP",	"$?",	"Y=",	"|",	"<sec>",
-	"\"",	"(C)",	"a.",	"<<",	"<not>","",	"(R)",	"-",
-	"<deg>","+-",	"^2",	"^3",	"'",	"<my>",	"<par>","*",
-	",",	"^1",	"o.",	">>",	"1/4",	"1/2",	"3/4",	"?",
-	"A",	"A",	"A",	"A",	"Ae",	"Aa",	"AE",	"C",
-	"E",	"E",	"E",	"E",	"I",	"I",	"I",	"I",
-	"D",	"N",	"O",	"O",	"O",	"O",	"Oe",	"*",
-	"Oe",	"U",	"U",	"U",	"Ue",	"Y",	"Th",	"ss",
-	"a",	"a",	"a",	"a",	"ae",	"aa",	"ae",	"c",
-	"e",	"e",	"e",	"e",	"i",	"i",	"i",	"i",
-	"d",	"n",	"o",	"o",	"o",	"o",	"oe",	"/",
-	"oe",	"u",	"u",	"u",	"ue",	"y",	"th",	"y",
-	"A",	"a",	"A",	"a",	"A",	"a",	"C",	"c",
-	"C",	"c",	"C",	"c",	"C",	"c",	"D",	"d",
-	"D",	"d",	"E",	"e",	"E",	"e",	"E",	"e",
-	"E",	"e",	"E",	"e",	"G",	"g",	"G",	"g",
-	"G",	"g",	"G",	"g",	"H",	"h",	"H",	"h",
-	"I",	"i",	"I",	"i",	"I",	"i",	"I",	"i",
-	"I",	"i",	"IJ",	"ij",	"J",	"j",	"K",	"k",
-	"q",	"L",	"l",	"L",	"l",	"L",	"l",	"L",
-	"l",	"L",	"l",	"N",	"n",	"N",	"n",	"N",
-	"n",	"'n",	"Ng",	"ng",	"O",	"o",	"O",	"o",
-	"O",	"o",	"OE",	"oe",	"R",	"r",	"R",	"r",
-	"R",	"r",	"S",	"s",	"S",	"s",	"S",	"s",
-	"S",	"s",	"T",	"t",	"T",	"t",	"T",	"t",
-	"U",	"u",	"U",	"u",	"U",	"u",	"U",	"u",
-	"U",	"u",	"U",	"u",	"W",	"w",	"Y",	"y",
-	"Y",	"Z",	"z",	"Z",	"z",	"Z",	"z",	"s",
-	"b",	"B",	"B",	"b",	"6",	"6",	"O",	"C",
-	"c",	"D",	"D",	"D",	"d",	"d",	"3",	"@",
-	"E",	"F",	"f",	"G",	"G",	"hv",	"I",	"I",
-	"K",	"k",	"l",	"l",	"W",	"N",	"n",	"O",
-	"O",	"o",	"OI",	"oi",	"P",	"p",	"YR",	"2",
-	"2",	"SH",	"sh",	"t",	"T",	"t",	"T",	"U",
-	"u",	"Y",	"V",	"Y",	"y",	"Z",	"z",	"ZH",
-	"ZH",	"zh",	"zh",	"2",	"5",	"5",	"ts",	"w",
-	"|",	"||",	"|=",	"!",	"DZ",	"Dz",	"dz",	"LJ",
-	"Lj",	"lj",	"NJ",	"Nj",	"nj",	"A",	"a",	"I",
-	"i",	"O",	"o",	"U",	"u",	"U",	"u",	"U",
-	"u",	"U",	"u",	"U",	"u",	"@",	"A",	"a",
-	"A",	"a",	"AE",	"ae",	"G",	"g",	"G",	"g",
-	"K",	"k",	"O",	"o",	"O",	"o",	"ZH",	"zh",
-	"j",	"DZ",	"D",	"dz",	"G",	"g",	"HV",	"W",
-	"N",	"n",	"A",	"a",	"AE",	"ae",	"O",	"o"};
-
-	if (uc < 0)
-		return("<?>");
-	if ((size_t)uc < sizeof(tab)/sizeof(tab[0]))
-		return(tab[uc]);
-	return(mchars_uc2str(uc));
-}
-
 static size_t
 ascii_width(const struct termp *p, int c)
 {
@@ -340,6 +263,83 @@ ascii_hspan(const struct termp *p, const
 	}
 
 	return(r);
+}
+
+const char *
+ascii_uc2str(int uc)
+{
+	static const char nbrsp[2] = { ASCII_NBRSP, '\0' };
+	static const char *tab[] = {
+	"<NUL>","<SOH>","<STX>","<ETX>","<EOT>","<ENQ>","<ACK>","<BEL>",
+	"<BS>",	"\t",	"<LF>",	"<VT>",	"<FF>",	"<CR>",	"<SO>",	"<SI>",
+	"<DLE>","<DC1>","<DC2>","<DC3>","<DC4>","<NAK>","<SYN>","<ETB>",
+	"<CAN>","<EM>",	"<SUB>","<ESC>","<FS>",	"<GS>",	"<RS>",	"<US>",
+	" ",	"!",	"\"",	"#",	"$",	"%",	"&",	"'",
+	"(",	")",	"*",	"+",	",",	"-",	".",	"/",
+	"0",	"1",	"2",	"3",	"4",	"5",	"6",	"7",
+	"8",	"9",	":",	";",	"<",	"=",	">",	"?",
+	"@",	"A",	"B",	"C",	"D",	"E",	"F",	"G",
+	"H",	"I",	"J",	"K",	"L",	"M",	"N",	"O",
+	"P",	"Q",	"R",	"S",	"T",	"U",	"V",	"W",
+	"X",	"Y",	"Z",	"[",	"\\",	"]",	"^",	"_",
+	"`",	"a",	"b",	"c",	"d",	"e",	"f",	"g",
+	"h",	"i",	"j",	"k",	"l",	"m",	"n",	"o",
+	"p",	"q",	"r",	"s",	"t",	"u",	"v",	"w",
+	"x",	"y",	"z",	"{",	"|",	"}",	"~",	"<DEL>",
+	"<80>",	"<81>",	"<82>",	"<83>",	"<84>",	"<85>",	"<86>",	"<87>",
+	"<88>",	"<89>",	"<8A>",	"<8B>",	"<8C>",	"<8D>",	"<8E>",	"<8F>",
+	"<90>",	"<91>",	"<92>",	"<93>",	"<94>",	"<95>",	"<96>",	"<97>",
+	"<99>",	"<99>",	"<9A>",	"<9B>",	"<9C>",	"<9D>",	"<9E>",	"<9F>",
+	nbrsp,	"!",	"c",	"GBP",	"$?",	"Y=",	"|",	"<sec>",
+	"\"",	"(C)",	"a.",	"<<",	"<not>","",	"(R)",	"-",
+	"<deg>","+-",	"^2",	"^3",	"'",	"<my>",	"<par>","*",
+	",",	"^1",	"o.",	">>",	"1/4",	"1/2",	"3/4",	"?",
+	"A",	"A",	"A",	"A",	"Ae",	"Aa",	"AE",	"C",
+	"E",	"E",	"E",	"E",	"I",	"I",	"I",	"I",
+	"D",	"N",	"O",	"O",	"O",	"O",	"Oe",	"*",
+	"Oe",	"U",	"U",	"U",	"Ue",	"Y",	"Th",	"ss",
+	"a",	"a",	"a",	"a",	"ae",	"aa",	"ae",	"c",
+	"e",	"e",	"e",	"e",	"i",	"i",	"i",	"i",
+	"d",	"n",	"o",	"o",	"o",	"o",	"oe",	"/",
+	"oe",	"u",	"u",	"u",	"ue",	"y",	"th",	"y",
+	"A",	"a",	"A",	"a",	"A",	"a",	"C",	"c",
+	"C",	"c",	"C",	"c",	"C",	"c",	"D",	"d",
+	"D",	"d",	"E",	"e",	"E",	"e",	"E",	"e",
+	"E",	"e",	"E",	"e",	"G",	"g",	"G",	"g",
+	"G",	"g",	"G",	"g",	"H",	"h",	"H",	"h",
+	"I",	"i",	"I",	"i",	"I",	"i",	"I",	"i",
+	"I",	"i",	"IJ",	"ij",	"J",	"j",	"K",	"k",
+	"q",	"L",	"l",	"L",	"l",	"L",	"l",	"L",
+	"l",	"L",	"l",	"N",	"n",	"N",	"n",	"N",
+	"n",	"'n",	"Ng",	"ng",	"O",	"o",	"O",	"o",
+	"O",	"o",	"OE",	"oe",	"R",	"r",	"R",	"r",
+	"R",	"r",	"S",	"s",	"S",	"s",	"S",	"s",
+	"S",	"s",	"T",	"t",	"T",	"t",	"T",	"t",
+	"U",	"u",	"U",	"u",	"U",	"u",	"U",	"u",
+	"U",	"u",	"U",	"u",	"W",	"w",	"Y",	"y",
+	"Y",	"Z",	"z",	"Z",	"z",	"Z",	"z",	"s",
+	"b",	"B",	"B",	"b",	"6",	"6",	"O",	"C",
+	"c",	"D",	"D",	"D",	"d",	"d",	"3",	"@",
+	"E",	"F",	"f",	"G",	"G",	"hv",	"I",	"I",
+	"K",	"k",	"l",	"l",	"W",	"N",	"n",	"O",
+	"O",	"o",	"OI",	"oi",	"P",	"p",	"YR",	"2",
+	"2",	"SH",	"sh",	"t",	"T",	"t",	"T",	"U",
+	"u",	"Y",	"V",	"Y",	"y",	"Z",	"z",	"ZH",
+	"ZH",	"zh",	"zh",	"2",	"5",	"5",	"ts",	"w",
+	"|",	"||",	"|=",	"!",	"DZ",	"Dz",	"dz",	"LJ",
+	"Lj",	"lj",	"NJ",	"Nj",	"nj",	"A",	"a",	"I",
+	"i",	"O",	"o",	"U",	"u",	"U",	"u",	"U",
+	"u",	"U",	"u",	"U",	"u",	"@",	"A",	"a",
+	"A",	"a",	"AE",	"ae",	"G",	"g",	"G",	"g",
+	"K",	"k",	"O",	"o",	"O",	"o",	"ZH",	"zh",
+	"j",	"DZ",	"D",	"dz",	"G",	"g",	"HV",	"W",
+	"N",	"n",	"A",	"a",	"AE",	"ae",	"O",	"o"};
+
+	if (uc < 0)
+		return("<?>");
+	if ((size_t)uc < sizeof(tab)/sizeof(tab[0]))
+		return(tab[uc]);
+	return(mchars_uc2str(uc));
 }
 
 #if HAVE_WCHAR
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-26 18:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-26 18:12 mdocml: Grrr, patch(1) merged the new function to the wrong place in schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).