summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2020-06-29 19:22:09 +0000
committerIngo Schwarze <schwarze@openbsd.org>2020-06-29 19:22:09 +0000
commit2934826aea1d712e14577a2b412419e069f79903 (patch)
treee4355195a9e27f13892a35ba7dd700aacbc76642
parent3b2f1345839e24cb35e90c943cced4ea712c3e9a (diff)
downloadmandoc-2934826aea1d712e14577a2b412419e069f79903.tar.gz
Support the "powerpc64" architecture name.
The first file using it in .Dt was just committed by kettenis@.
-rw-r--r--arch.c4
-rw-r--r--cgi.c9
2 files changed, 7 insertions, 6 deletions
diff --git a/arch.c b/arch.c
index 162560fb..3240a6ea 100644
--- a/arch.c
+++ b/arch.c
@@ -1,4 +1,4 @@
-/* $Id$ */
+/* $Id$ */
/*
* Copyright (c) 2017, 2019 Ingo Schwarze <schwarze@openbsd.org>
*
@@ -26,7 +26,7 @@ arch_valid(const char *arch, enum mandoc_os os)
const char *openbsd_arch[] = {
"alpha", "amd64", "arm64", "armv7", "hppa", "i386",
"landisk", "loongson", "luna88k", "macppc", "mips64",
- "octeon", "sgi", "sparc64", NULL
+ "octeon", "powerpc64", "sgi", "sparc64", NULL
};
const char *netbsd_arch[] = {
"acorn26", "acorn32", "algor", "alpha", "amiga",
diff --git a/cgi.c b/cgi.c
index cb8b5b28..bdd5acf9 100644
--- a/cgi.c
+++ b/cgi.c
@@ -122,10 +122,11 @@ static const char *const sec_names[] = {
static const int sec_MAX = sizeof(sec_names) / sizeof(char *);
static const char *const arch_names[] = {
- "amd64", "alpha", "armv7", "arm64",
- "hppa", "i386", "landisk",
- "loongson", "luna88k", "macppc", "mips64",
- "octeon", "sgi", "socppc", "sparc64",
+ "amd64", "alpha", "armv7", "arm64",
+ "hppa", "i386", "landisk", "loongson",
+ "luna88k", "macppc", "mips64", "octeon",
+ "powerpc64", "sgi", "socppc", "sparc64",
+
"amiga", "arc", "armish", "arm32",
"atari", "aviion", "beagle", "cats",
"hppa64", "hp300",