2000-06-13 06:34:41 +02:00
|
|
|
/*
|
|
|
|
* Main definitions and externals
|
|
|
|
*
|
|
|
|
* Copyright 2000 Bertho A. Stultiens (BS)
|
|
|
|
*
|
2002-03-10 00:29:33 +01:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2000-06-13 06:34:41 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WMC_WMC_H
|
|
|
|
#define __WMC_WMC_H
|
|
|
|
|
2021-10-06 10:16:59 +02:00
|
|
|
#include "../tools.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "wmctypes.h"
|
|
|
|
|
2000-06-13 06:34:41 +02:00
|
|
|
/*
|
|
|
|
* The default codepage setting is only to
|
|
|
|
* read and convert input which is non-message
|
|
|
|
* text. It doesn't really matter that much because
|
|
|
|
* all codepages map 0x00-0x7f to 0x0000-0x007f from
|
|
|
|
* char to unicode and all non-message text should
|
|
|
|
* be plain ASCII.
|
|
|
|
* However, we do implement iso-8859-1 for 1-to-1
|
|
|
|
* mapping for all other chars, so this is very close
|
|
|
|
* to what we really want.
|
|
|
|
*/
|
|
|
|
#define WMC_DEFAULT_CODEPAGE 28591
|
|
|
|
|
|
|
|
extern int pedantic;
|
|
|
|
extern int leave_case;
|
|
|
|
extern int byteorder;
|
|
|
|
extern int decimal;
|
|
|
|
extern int custombit;
|
|
|
|
extern int unicodein;
|
|
|
|
extern int rcinline;
|
|
|
|
|
|
|
|
extern char *output_name;
|
2021-10-05 11:52:21 +02:00
|
|
|
extern const char *input_name;
|
2000-06-13 06:34:41 +02:00
|
|
|
extern char *header_name;
|
2002-06-01 01:06:46 +02:00
|
|
|
extern char *cmdline;
|
2000-06-13 06:34:41 +02:00
|
|
|
|
2020-02-12 09:03:57 +01:00
|
|
|
extern const char *nlsdirs[];
|
|
|
|
|
2000-06-13 06:34:41 +02:00
|
|
|
extern int line_number;
|
|
|
|
extern int char_number;
|
|
|
|
|
2006-09-12 09:05:15 +02:00
|
|
|
int mcy_parse(void);
|
|
|
|
extern int mcy_debug;
|
2000-06-13 06:34:41 +02:00
|
|
|
extern int want_nl;
|
|
|
|
extern int want_line;
|
|
|
|
extern int want_file;
|
2021-10-26 09:17:08 +02:00
|
|
|
extern struct node *nodehead;
|
|
|
|
extern struct lan_blk *lanblockhead;
|
2000-06-13 06:34:41 +02:00
|
|
|
|
2006-09-12 09:05:15 +02:00
|
|
|
int mcy_lex(void);
|
2010-01-21 12:57:27 +01:00
|
|
|
extern FILE *yyin;
|
2000-06-13 06:34:41 +02:00
|
|
|
void set_codepage(int cp);
|
|
|
|
|
2021-10-26 09:17:08 +02:00
|
|
|
void add_token(enum tok_enum type, const WCHAR *name, int tok, int cp, const WCHAR *alias, int fix);
|
|
|
|
struct token *lookup_token(const WCHAR *s);
|
|
|
|
void get_tokentable(struct token **tab, int *len);
|
2000-06-13 06:34:41 +02:00
|
|
|
|
|
|
|
#endif
|