PageRenderTime 70ms CodeModel.GetById 29ms app.highlight 37ms RepoModel.GetById 1ms app.codeStats 1ms

/contrib/groff/src/libs/libgroff/invalid.cpp

https://bitbucket.org/freebsd/freebsd-head/
C++ | 62 lines | 38 code | 4 blank | 20 comment | 0 complexity | 042d52b868023bddac3bb88d8cb997d7 MD5 | raw file
 1/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
 2     Written by James Clark (jjc@jclark.com)
 3
 4This file is part of groff.
 5
 6groff is free software; you can redistribute it and/or modify it under
 7the terms of the GNU General Public License as published by the Free
 8Software Foundation; either version 2, or (at your option) any later
 9version.
10
11groff is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14for more details.
15
16You should have received a copy of the GNU General Public License along
17with groff; see the file COPYING.  If not, write to the Free Software
18Foundation, 51 Franklin St - Fifth Floor, Boston, MA 02110-1301, USA. */
19
20/* $FreeBSD$ */
21
22#include "lib.h"
23
24// Table of invalid input characters.
25
26char invalid_char_table[256]= {
27#ifndef IS_EBCDIC_HOST
28  1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1,
29  1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
30  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
31  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
32  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
33  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
34  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
35  0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
36  1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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