parse.h revision c2535118
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 * 55 * .twmrc parsing externs 56 * 57 * 8-Apr-88 Tom LaStrange Initial Version. 58 * 59 **********************************************************************/ 60 61#ifndef _PARSE_ 62#define _PARSE_ 63 64#include "list.h" 65 66extern void assign_var_savecolor ( void ); 67extern int do_single_keyword ( int keyword ); 68extern int do_string_keyword ( int keyword, char *s ); 69extern int do_number_keyword ( int keyword, int num ); 70extern name_list **do_colorlist_keyword ( int keyword, int colormode, 71 char *s ); 72extern int do_color_keyword ( int keyword, int colormode, char *s ); 73extern void do_string_savecolor ( int colormode, char *s ); 74extern void do_var_savecolor ( int key ); 75extern int ParseTwmrc ( char *filename ); 76extern int parse_keyword ( char *s, int *nump ); 77extern void TwmOutput ( int c ); 78extern void twmUnput ( int c ); 79extern void do_squeeze_entry ( name_list **list, char *name, int justify, 80 int num, int denom ); 81 82 83extern int (*twmInputFunc)(void); 84extern int ConstrainedMoveTime; 85extern unsigned char *defTwmrc[]; 86extern int mods; 87 88#define F_NOP 0 89#define F_BEEP 1 90#define F_RESTART 2 91#define F_QUIT 3 92#define F_FOCUS 4 93#define F_REFRESH 5 94#define F_WINREFRESH 6 95#define F_DELTASTOP 7 96#define F_MOVE 8 97#define F_POPUP 9 98#define F_FORCEMOVE 10 99#define F_AUTORAISE 11 100#define F_IDENTIFY 12 101#define F_ICONIFY 13 102#define F_DEICONIFY 14 103#define F_UNFOCUS 15 104#define F_RESIZE 16 105#define F_ZOOM 17 106#define F_LEFTZOOM 18 107#define F_RIGHTZOOM 19 108#define F_TOPZOOM 20 109#define F_BOTTOMZOOM 21 110#define F_HORIZOOM 22 111#define F_FULLZOOM 23 112#define F_RAISE 24 113#define F_RAISELOWER 25 114#define F_LOWER 26 115#define F_DESTROY 27 116#define F_DELETE 28 117#define F_SAVEYOURSELF 29 118#define F_VERSION 30 119#define F_TITLE 31 120#define F_RIGHTICONMGR 32 121#define F_LEFTICONMGR 33 122#define F_UPICONMGR 34 123#define F_DOWNICONMGR 35 124#define F_FORWICONMGR 36 125#define F_BACKICONMGR 37 126#define F_NEXTICONMGR 38 127#define F_PREVICONMGR 39 128#define F_SORTICONMGR 40 129#define F_CIRCLEUP 41 130#define F_CIRCLEDOWN 42 131#define F_CUTFILE 43 132#define F_SHOWLIST 44 133#define F_HIDELIST 45 134 135#define F_MENU 101 /* string */ 136#define F_WARPNEXT 112 /* string */ 137#define F_WARPPREV 113 /* string */ 138#define F_WARPTO 102 /* string */ 139#define F_WARPTOICONMGR 103 /* string */ 140#define F_WARPRING 104 /* string */ 141#define F_FILE 105 /* string */ 142#define F_EXEC 106 /* string */ 143#define F_CUT 107 /* string */ 144#define F_FUNCTION 108 /* string */ 145#define F_WARPTOSCREEN 109 /* string */ 146#define F_COLORMAP 110 /* string */ 147#define F_PRIORITY 111 /* string */ 148#define F_STARTWM 114 /* string */ 149 150#define D_NORTH 1 151#define D_SOUTH 2 152#define D_EAST 3 153#define D_WEST 4 154 155#endif /* _PARSE_ */ 156