1/* 2 3Copyright 1988, 1998 The Open Group 4 5Permission to use, copy, modify, distribute, and sell this software and its 6documentation for any purpose is hereby granted without fee, provided that 7the above copyright notice appear in all copies and that both that 8copyright notice and this permission notice appear in supporting 9documentation. 10 11The above copyright notice and this permission notice shall be included 12in all copies or substantial portions of the Software. 13 14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 15OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 17IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 18OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20OTHER DEALINGS IN THE SOFTWARE. 21 22Except as contained in this notice, the name of The Open Group shall 23not be used in advertising or otherwise to promote the sale, use or 24other dealings in this Software without prior written authorization 25from The Open Group. 26 27*/ 28 29#ifdef HAVE_CONFIG_H 30# include "config.h" 31#endif 32 33extern const char *ProgramName; 34extern Display *dpy; 35extern int min_keycode, max_keycode; 36extern Bool verbose; 37extern Bool dontExecute; 38extern const char *inputFilename; 39extern int lineno; 40extern int parse_errors; 41 42extern void initialize_map(void); 43extern void process_file(const char *filename); 44extern void process_line(const char *buffer); 45extern void handle_line(char *line, int len); 46extern void print_work_queue(void); 47extern int execute_work_queue(void); 48extern void print_modifier_map(void); 49extern void print_key_table(Bool exprs); 50extern void print_pointer_map(void); 51 52extern int UpdateModifierMapping(XModifierKeymap *map); 53extern int AddModifier(XModifierKeymap **mapp, KeyCode keycode, int modifier); 54extern int RemoveModifier(XModifierKeymap **mapp, KeyCode keycode, 55 int modifier); 56extern int ClearModifier(XModifierKeymap **mapp, int modifier); 57extern void PrintModifierMapping(XModifierKeymap *map, FILE *fp); 58extern void PrintKeyTable(Bool exprs, FILE *fp); 59extern void PrintPointerMap(FILE *fp); 60extern int SetPointerMap(unsigned char *map, int n); 61 62extern void _X_NORETURN Exit(int status); 63