/*1* Main definitions and externals2*3* Copyright 2000 Bertho A. Stultiens (BS)4*5* This library is free software; you can redistribute it and/or6* modify it under the terms of the GNU Lesser General Public7* License as published by the Free Software Foundation; either8* version 2.1 of the License, or (at your option) any later version.9*10* This library is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU13* Lesser General Public License for more details.14*15* You should have received a copy of the GNU Lesser General Public16* License along with this library; if not, write to the Free Software17* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA18*/1920#ifndef __WMC_WMC_H21#define __WMC_WMC_H2223#include "../tools.h"24#include "wmctypes.h"2526/*27* The default codepage setting is only to28* read and convert input which is non-message29* text. It doesn't really matter that much because30* all codepages map 0x00-0x7f to 0x0000-0x007f from31* char to unicode and all non-message text should32* be plain ASCII.33* However, we do implement iso-8859-1 for 1-to-134* mapping for all other chars, so this is very close35* to what we really want.36*/37#define WMC_DEFAULT_CODEPAGE 285913839extern int pedantic;40extern int leave_case;41extern int decimal;42extern int custombit;43extern int unicodein;44extern int rcinline;4546extern char *output_name;47extern const char *input_name;48extern char *header_name;49extern char *cmdline;5051extern const char *nlsdirs[];5253extern int line_number;54extern int char_number;5556int mcy_parse(void);57extern int mcy_debug;58extern int want_nl;59extern int want_line;60extern int want_file;61extern struct node *nodehead;62extern struct lan_blk *lanblockhead;6364int mcy_lex(void);65extern FILE *yyin;66void set_codepage(int cp);6768void add_token(enum tok_enum type, const WCHAR *name, int tok, int cp, const WCHAR *alias, int fix);69struct token *lookup_token(const WCHAR *s);70void get_tokentable(struct token **tab, int *len);7172#endif737475