diff options
author | 2014-11-28 18:09:01 +0000 | |
---|---|---|
committer | 2014-11-28 18:09:01 +0000 | |
commit | f65d8fa10a5663d103fcbcfb782054aac63efd23 (patch) | |
tree | edfb7eff7656cb754387a9a45043417bf3e4465c /arch.c | |
parent | 376b2469fc1e1a7592a0cc6613fa7707fca855d0 (diff) | |
download | mandoc-f65d8fa10a5663d103fcbcfb782054aac63efd23.tar.gz mandoc-f65d8fa10a5663d103fcbcfb782054aac63efd23.tar.zst mandoc-f65d8fa10a5663d103fcbcfb782054aac63efd23.zip |
Drop useless architecture table. Validating architecture names
is a job for makewhatis(8)/mandoc.db(5), not for the parser.
Removes 150 lines from source files and 4k (1%) from the binary.
Bloat found by deraadt@.
Diffstat (limited to 'arch.c')
-rw-r--r-- | arch.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/arch.c b/arch.c deleted file mode 100644 index 3771c1b8..00000000 --- a/arch.c +++ /dev/null @@ -1,37 +0,0 @@ -/* $Id: arch.c,v 1.12 2014/08/10 23:54:41 schwarze Exp $ */ -/* - * Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv> - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ -#include "config.h" - -#include <sys/types.h> - -#include <string.h> - -#include "mdoc.h" -#include "libmdoc.h" - -#define LINE(x, y) \ - if (0 == strcmp(p, x)) return(y); - - -const char * -mdoc_a2arch(const char *p) -{ - -#include "arch.in" - - return(NULL); -} |