1/*****************************************************************************/ 2/* 3 4Copyright 1989, 1998 The Open Group 5 6Permission to use, copy, modify, distribute, and sell this software and its 7documentation for any purpose is hereby granted without fee, provided that 8the above copyright notice appear in all copies and that both that 9copyright notice and this permission notice appear in supporting 10documentation. 11 12The above copyright notice and this permission notice shall be included in 13all copies or substantial portions of the Software. 14 15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 19AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 22Except as contained in this notice, the name of The Open Group shall not be 23used in advertising or otherwise to promote the sale, use or other dealings 24in this Software without prior written authorization from The Open Group. 25 26*/ 27/** Copyright 1988 by Evans & Sutherland Computer Corporation, **/ 28/** Salt Lake City, Utah **/ 29/** Cambridge, Massachusetts **/ 30/** **/ 31/** All Rights Reserved **/ 32/** **/ 33/** Permission to use, copy, modify, and distribute this software and **/ 34/** its documentation for any purpose and without fee is hereby **/ 35/** granted, provided that the above copyright notice appear in all **/ 36/** copies and that both that copyright notice and this permis- **/ 37/** sion notice appear in supporting documentation, and that the **/ 38/** name of Evans & Sutherland not be used in advertising **/ 39/** in publicity pertaining to distribution of the software without **/ 40/** specific, written prior permission. **/ 41/** **/ 42/** EVANS & SUTHERLAND DISCLAIMs ALL WARRANTIES WITH REGARD **/ 43/** TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT- **/ 44/** ABILITY AND FITNESS, IN NO EVENT SHALL EVANS & SUTHERLAND **/ 45/** BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAM- **/ 46/** AGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA **/ 47/** OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER **/ 48/** TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE **/ 49/** OR PERFORMANCE OF THIS SOFTWARE. **/ 50/*****************************************************************************/ 51 52/********************************************************************** 53 * 54 * .twmrc parsing externs 55 * 56 * 8-Apr-88 Tom LaStrange Initial Version. 57 * 58 **********************************************************************/ 59 60#ifndef PARSE_H 61#define PARSE_H 62 63#include "list.h" 64#include "gram.h" 65 66/* 67 * POSIX does not say where yyparse() is declared. bison puts it in its 68 * generated header, while byacc does not. This chunk helps with portability. 69 */ 70#if !(defined(YYDEBUG) && defined(YY_YY_GRAM_H_INCLUDED)) && !defined(YYBYACC) 71extern int yyparse(void); 72#endif 73 74/* 75 * Some versions of byacc and flex declare yylex(). This chunk fixes that. 76 */ 77#if !(defined(YYBYACC) || defined(YYLEX_DECL)) 78#define YY_DECL int yylex (void) 79YY_DECL; 80#endif 81 82extern void assign_var_savecolor(void); 83extern int do_single_keyword(int keyword); 84extern int do_string_keyword(int keyword, char *s); 85extern int do_number_keyword(int keyword, int num); 86extern name_list **do_colorlist_keyword(int keyword, int colormode, char *s); 87extern int do_color_keyword(int keyword, int colormode, char *s); 88extern void do_string_savecolor(int colormode, char *s); 89extern void do_var_savecolor(int key); 90extern int ParseTwmrc(char *filename); 91extern int parse_keyword(char *s, int *nump); 92extern void TwmOutput(int c); 93extern void twmUnput(int c); 94extern void do_squeeze_entry(name_list ** list, char *name, int justify, 95 int num, int denom); 96 97extern int (*twmInputFunc) (void); 98extern int ConstrainedMoveTime; 99extern unsigned char *defTwmrc[]; 100extern int mods; 101 102#define F_NOP 0 103#define F_BEEP 1 104#define F_RESTART 2 105#define F_QUIT 3 106#define F_FOCUS 4 107#define F_REFRESH 5 108#define F_WINREFRESH 6 109#define F_DELTASTOP 7 110#define F_MOVE 8 111#define F_POPUP 9 112#define F_FORCEMOVE 10 113#define F_AUTORAISE 11 114#define F_IDENTIFY 12 115#define F_ICONIFY 13 116#define F_DEICONIFY 14 117#define F_UNFOCUS 15 118#define F_RESIZE 16 119#define F_ZOOM 17 120#define F_LEFTZOOM 18 121#define F_RIGHTZOOM 19 122#define F_TOPZOOM 20 123#define F_BOTTOMZOOM 21 124#define F_HORIZOOM 22 125#define F_FULLZOOM 23 126#define F_RAISE 24 127#define F_RAISELOWER 25 128#define F_LOWER 26 129#define F_DESTROY 27 130#define F_DELETE 28 131#define F_SAVEYOURSELF 29 132#define F_VERSION 30 133#define F_TITLE 31 134#define F_RIGHTICONMGR 32 135#define F_LEFTICONMGR 33 136#define F_UPICONMGR 34 137#define F_DOWNICONMGR 35 138#define F_FORWICONMGR 36 139#define F_BACKICONMGR 37 140#define F_NEXTICONMGR 38 141#define F_PREVICONMGR 39 142#define F_SORTICONMGR 40 143#define F_CIRCLEUP 41 144#define F_CIRCLEDOWN 42 145#define F_CUTFILE 43 146#define F_SHOWLIST 44 147#define F_HIDELIST 45 148 149#define F_MENU 101 /* string */ 150#define F_WARPNEXT 112 /* string */ 151#define F_WARPPREV 113 /* string */ 152#define F_WARPTO 102 /* string */ 153#define F_WARPTOICONMGR 103 /* string */ 154#define F_WARPRING 104 /* string */ 155#define F_FILE 105 /* string */ 156#define F_EXEC 106 /* string */ 157#define F_CUT 107 /* string */ 158#define F_FUNCTION 108 /* string */ 159#define F_WARPTOSCREEN 109 /* string */ 160#define F_COLORMAP 110 /* string */ 161#define F_PRIORITY 111 /* string */ 162#define F_STARTWM 114 /* string */ 163 164#define D_NORTH 1 165#define D_SOUTH 2 166#define D_EAST 3 167#define D_WEST 4 168 169#endif /* PARSE_H */ 170