| 1 |
/* |
| 2 |
* ChkTeX, resource file reader. |
| 3 |
* Copyright (C) 1995-96 Jens T. Berger Thielemann |
| 4 |
* |
| 5 |
* This program is free software; you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation; either version 2 of the License, or |
| 8 |
* (at your option) any later version. |
| 9 |
* |
| 10 |
* This program is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
* GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this program; if not, write to the Free Software |
| 17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 18 |
* |
| 19 |
* Contact the author at: |
| 20 |
* Jens Berger |
| 21 |
* Spektrumvn. 4 |
| 22 |
* N-0666 Oslo |
| 23 |
* Norway |
| 24 |
* E-mail: <[email protected]> |
| 25 |
* |
| 26 |
* |
| 27 |
*/ |
| 28 |
|
| 29 |
#ifndef RESOURCE_H |
| 30 |
#define RESOURCE_H |
| 31 |
|
| 32 |
#include "ChkTeX.h" |
| 33 |
|
| 34 |
#define QUOTE '\"' /* Char used to quote text containing blanks */ |
| 35 |
#define ESCAPE '!' /* Char used to access special characters */ |
| 36 |
#define CMNT '#' /* Char used as comment */ |
| 37 |
|
| 38 |
/* We cannot put semicolons here as with OPTION_DEFAULTS, since |
| 39 |
* sometimes LIST etc. will be defined to be empty. Thus we must |
| 40 |
* never put a semicolon after RESOURCE_INFO where it's called since |
| 41 |
* such isolated semicolons can break certain compilers. This can |
| 42 |
* mess with indentation a bit, but we just have to deal with it. */ |
| 43 |
#define RESOURCE_INFO \ |
| 44 |
LCASE(Silent) LIST(Linker) LIST(IJAccent) LIST(Italic)\ |
| 45 |
LIST(ItalCmd) LIST(PostLink) LIST(WipeArg) LIST(VerbEnvir)\ |
| 46 |
LIST(MathEnvir) LIST(MathCmd) LIST(TextCmd) LIST(MathRoman)\ |
| 47 |
LIST(HyphDash) LIST(NumDash) LIST(WordDash) LIST(DashExcpt)\ |
| 48 |
LIST(CenterDots) LIST(LowDots) LIST(OutFormat)\ |
| 49 |
LIST(Primitives) LIST(NotPreSpaced) LIST(NonItalic) LIST(NoCharNext)\ |
| 50 |
LNEMPTY(CmdLine) LNEMPTY(TeXInputs)\ |
| 51 |
LCASE(Abbrev) LCASE(UserWarn) LIST(UserWarnRegex) LIST(TextEnvir)\ |
| 52 |
KEY(VerbClear, "|") KEY(QuoteStyle, "Traditional") KEY(TabSize, "8")\ |
| 53 |
KEY(CmdSpaceStyle, "Ignore") |
| 54 |
|
| 55 |
#define LIST(a) extern struct WordList a; |
| 56 |
#define LNEMPTY LIST |
| 57 |
#define LCASE(a) LIST(a) LIST(a ## Case) |
| 58 |
#define KEY(a,def) extern const char *a; |
| 59 |
|
| 60 |
RESOURCE_INFO |
| 61 |
#undef KEY |
| 62 |
#undef LCASE |
| 63 |
#undef LNEMPTY |
| 64 |
#undef LIST |
| 65 |
int ReadRC(const char *); |
| 66 |
int ReadRCFromCmdLine(const char *CmdLineArg); |
| 67 |
|
| 68 |
|
| 69 |
#endif /* RESOURCE */ |