13e747e6dSmrg/*****************************************************************************/ 23e747e6dSmrg/* 33e747e6dSmrg 43e747e6dSmrgCopyright 1989, 1998 The Open Group 53e747e6dSmrg 63e747e6dSmrgPermission to use, copy, modify, distribute, and sell this software and its 73e747e6dSmrgdocumentation for any purpose is hereby granted without fee, provided that 83e747e6dSmrgthe above copyright notice appear in all copies and that both that 93e747e6dSmrgcopyright notice and this permission notice appear in supporting 103e747e6dSmrgdocumentation. 113e747e6dSmrg 123e747e6dSmrgThe above copyright notice and this permission notice shall be included in 133e747e6dSmrgall copies or substantial portions of the Software. 143e747e6dSmrg 153e747e6dSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 163e747e6dSmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 173e747e6dSmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 183e747e6dSmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 193e747e6dSmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 203e747e6dSmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 213e747e6dSmrg 223e747e6dSmrgExcept as contained in this notice, the name of The Open Group shall not be 233e747e6dSmrgused in advertising or otherwise to promote the sale, use or other dealings 243e747e6dSmrgin this Software without prior written authorization from The Open Group. 253e747e6dSmrg 263e747e6dSmrg*/ 273e747e6dSmrg/** Copyright 1988 by Evans & Sutherland Computer Corporation, **/ 283e747e6dSmrg/** Salt Lake City, Utah **/ 293e747e6dSmrg/** Cambridge, Massachusetts **/ 303e747e6dSmrg/** **/ 313e747e6dSmrg/** All Rights Reserved **/ 323e747e6dSmrg/** **/ 333e747e6dSmrg/** Permission to use, copy, modify, and distribute this software and **/ 343e747e6dSmrg/** its documentation for any purpose and without fee is hereby **/ 353e747e6dSmrg/** granted, provided that the above copyright notice appear in all **/ 363e747e6dSmrg/** copies and that both that copyright notice and this permis- **/ 373e747e6dSmrg/** sion notice appear in supporting documentation, and that the **/ 383e747e6dSmrg/** name of Evans & Sutherland not be used in advertising **/ 393e747e6dSmrg/** in publicity pertaining to distribution of the software without **/ 403e747e6dSmrg/** specific, written prior permission. **/ 413e747e6dSmrg/** **/ 423e747e6dSmrg/** EVANS & SUTHERLAND DISCLAIMs ALL WARRANTIES WITH REGARD **/ 433e747e6dSmrg/** TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT- **/ 443e747e6dSmrg/** ABILITY AND FITNESS, IN NO EVENT SHALL EVANS & SUTHERLAND **/ 453e747e6dSmrg/** BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAM- **/ 463e747e6dSmrg/** AGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA **/ 473e747e6dSmrg/** OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER **/ 483e747e6dSmrg/** TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE **/ 493e747e6dSmrg/** OR PERFORMANCE OF THIS SOFTWARE. **/ 503e747e6dSmrg/*****************************************************************************/ 513e747e6dSmrg 523e747e6dSmrg/********************************************************************** 533e747e6dSmrg * 543e747e6dSmrg * .twmrc parsing externs 553e747e6dSmrg * 563e747e6dSmrg * 8-Apr-88 Tom LaStrange Initial Version. 573e747e6dSmrg * 583e747e6dSmrg **********************************************************************/ 593e747e6dSmrg 606d8e82c3Smrg#ifndef PARSE_H 616d8e82c3Smrg#define PARSE_H 623e747e6dSmrg 633e747e6dSmrg#include "list.h" 646d8e82c3Smrg#include "gram.h" 656d8e82c3Smrg 666d8e82c3Smrg/* 676d8e82c3Smrg * POSIX does not say where yyparse() is declared. bison puts it in its 686d8e82c3Smrg * generated header, while byacc does not. This chunk helps with portability. 696d8e82c3Smrg */ 706d8e82c3Smrg#if !(defined(YYDEBUG) && defined(YY_YY_GRAM_H_INCLUDED)) && !defined(YYBYACC) 716d8e82c3Smrgextern int yyparse(void); 726d8e82c3Smrg#endif 736d8e82c3Smrg 746d8e82c3Smrg/* 756d8e82c3Smrg * Some versions of byacc and flex declare yylex(). This chunk fixes that. 766d8e82c3Smrg */ 776d8e82c3Smrg#if !(defined(YYBYACC) || defined(YYLEX_DECL)) 786d8e82c3Smrg#define YY_DECL int yylex (void) 796d8e82c3SmrgYY_DECL; 806d8e82c3Smrg#endif 813e747e6dSmrg 82f66df612Smrgextern void assign_var_savecolor(void); 83f66df612Smrgextern int do_single_keyword(int keyword); 84f66df612Smrgextern int do_string_keyword(int keyword, char *s); 85f66df612Smrgextern int do_number_keyword(int keyword, int num); 86f66df612Smrgextern name_list **do_colorlist_keyword(int keyword, int colormode, char *s); 87f66df612Smrgextern int do_color_keyword(int keyword, int colormode, char *s); 88f66df612Smrgextern void do_string_savecolor(int colormode, char *s); 89f66df612Smrgextern void do_var_savecolor(int key); 90f66df612Smrgextern int ParseTwmrc(char *filename); 91f66df612Smrgextern int parse_keyword(char *s, int *nump); 92f66df612Smrgextern void TwmOutput(int c); 93f66df612Smrgextern void twmUnput(int c); 94f66df612Smrgextern void do_squeeze_entry(name_list ** list, char *name, int justify, 95f66df612Smrg int num, int denom); 96f66df612Smrg 97f66df612Smrgextern int (*twmInputFunc) (void); 983e747e6dSmrgextern int ConstrainedMoveTime; 993e747e6dSmrgextern unsigned char *defTwmrc[]; 1003e747e6dSmrgextern int mods; 1013e747e6dSmrg 102f66df612Smrg#define F_NOP 0 103f66df612Smrg#define F_BEEP 1 104f66df612Smrg#define F_RESTART 2 105f66df612Smrg#define F_QUIT 3 106f66df612Smrg#define F_FOCUS 4 107f66df612Smrg#define F_REFRESH 5 108f66df612Smrg#define F_WINREFRESH 6 109f66df612Smrg#define F_DELTASTOP 7 110f66df612Smrg#define F_MOVE 8 111f66df612Smrg#define F_POPUP 9 112f66df612Smrg#define F_FORCEMOVE 10 113f66df612Smrg#define F_AUTORAISE 11 114f66df612Smrg#define F_IDENTIFY 12 115f66df612Smrg#define F_ICONIFY 13 116f66df612Smrg#define F_DEICONIFY 14 117f66df612Smrg#define F_UNFOCUS 15 118f66df612Smrg#define F_RESIZE 16 119f66df612Smrg#define F_ZOOM 17 120f66df612Smrg#define F_LEFTZOOM 18 121f66df612Smrg#define F_RIGHTZOOM 19 122f66df612Smrg#define F_TOPZOOM 20 123f66df612Smrg#define F_BOTTOMZOOM 21 124f66df612Smrg#define F_HORIZOOM 22 125f66df612Smrg#define F_FULLZOOM 23 126f66df612Smrg#define F_RAISE 24 127f66df612Smrg#define F_RAISELOWER 25 128f66df612Smrg#define F_LOWER 26 129f66df612Smrg#define F_DESTROY 27 130f66df612Smrg#define F_DELETE 28 131f66df612Smrg#define F_SAVEYOURSELF 29 132f66df612Smrg#define F_VERSION 30 133f66df612Smrg#define F_TITLE 31 134f66df612Smrg#define F_RIGHTICONMGR 32 135f66df612Smrg#define F_LEFTICONMGR 33 136f66df612Smrg#define F_UPICONMGR 34 137f66df612Smrg#define F_DOWNICONMGR 35 138f66df612Smrg#define F_FORWICONMGR 36 139f66df612Smrg#define F_BACKICONMGR 37 140f66df612Smrg#define F_NEXTICONMGR 38 141f66df612Smrg#define F_PREVICONMGR 39 142f66df612Smrg#define F_SORTICONMGR 40 143f66df612Smrg#define F_CIRCLEUP 41 144f66df612Smrg#define F_CIRCLEDOWN 42 145f66df612Smrg#define F_CUTFILE 43 146f66df612Smrg#define F_SHOWLIST 44 147f66df612Smrg#define F_HIDELIST 45 148f66df612Smrg 149f66df612Smrg#define F_MENU 101 /* string */ 150f66df612Smrg#define F_WARPNEXT 112 /* string */ 151f66df612Smrg#define F_WARPPREV 113 /* string */ 152f66df612Smrg#define F_WARPTO 102 /* string */ 153f66df612Smrg#define F_WARPTOICONMGR 103 /* string */ 154f66df612Smrg#define F_WARPRING 104 /* string */ 155f66df612Smrg#define F_FILE 105 /* string */ 156f66df612Smrg#define F_EXEC 106 /* string */ 157f66df612Smrg#define F_CUT 107 /* string */ 158f66df612Smrg#define F_FUNCTION 108 /* string */ 159f66df612Smrg#define F_WARPTOSCREEN 109 /* string */ 160f66df612Smrg#define F_COLORMAP 110 /* string */ 161f66df612Smrg#define F_PRIORITY 111 /* string */ 162f66df612Smrg#define F_STARTWM 114 /* string */ 163f66df612Smrg 164f66df612Smrg#define D_NORTH 1 165f66df612Smrg#define D_SOUTH 2 166f66df612Smrg#define D_EAST 3 167f66df612Smrg#define D_WEST 4 168f66df612Smrg 1696d8e82c3Smrg#endif /* PARSE_H */ 170