[comp.windows.x] Second posting of awm, Part02

jkh@ardent.UUCP (Jordan K. Hubbard) (06/16/88)

#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of archive 2 (of 17)."
# Contents:  awm/Beep.c awm/CircleUp.c awm/Error.c awm/Focus.c
#   awm/Imakefile awm/bitmaps/hilite.bm awm/bitmaps/twm.hilite.bm
#   awm/bitmaps/twm.iconify.bm awm/bitmaps/twm.pull.bm
#   awm/bitmaps/twm.resize.bm awm/bitmaps/twm.twm.bm awm/errHndlr.c
#   awm/lex.l awm/menus/rtlmnu.ext.h awm/menus/std_defs.h
# Wrapped by jkh@ardent on Thu Jun 16 00:44:04 1988
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f 'awm/Beep.c' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/Beep.c'\"
else
echo shar: Extracting \"'awm/Beep.c'\" \(2498 characters\)
sed "s/^X//" >'awm/Beep.c' <<'END_OF_FILE'
X#ident   "%W% %G%"
X
X#ifndef lint
static char *rcsid_Beep_c = "$Header: Beep.c,v 1.1 88/06/15 15:00:18 jkh Exp $";
X#endif	lint
X
X#include "X11/copyright.h"
X/*
X *
X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
X *
X * Copyright 1987 by Jordan Hubbard.
X *
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Ardent Computer
X * Corporation or Jordan Hubbard not be used in advertising or publicity
X * pertaining to distribution of the software without specific, written
X * prior permission.
X *
X */
X
X/*
X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Digital Equipment
X * Corporation not be used in advertising or publicity pertaining to
X * distribution of the software without specific, written prior permission.
X *
X *
X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
X * SOFTWARE.
X */
X
X
X
X/*
X * MODIFICATION HISTORY
X *
X * 000 -- M. Gancarz, DEC Ultrix Engineering Group
X */
X
X#ifndef lint
static char *sccsid = "@(#)Beep.c	3.8	1/24/86";
X#endif
X
X#include "awm.h"
X
Boolean Beep(window, mask, button, x, y)
Window window;                          /* Event window. */
int mask;                               /* Button/key mask. */
int button;                           /* Button event detail. */
int x, y;                               /* Event mouse position. */
X{
X    Entry("Beep")
X
X    XBell(dpy, VOLUME_PERCENTAGE(Volume));
X    Leave(FALSE)
X}
END_OF_FILE
if test 2498 -ne `wc -c <'awm/Beep.c'`; then
    echo shar: \"'awm/Beep.c'\" unpacked with wrong size!
fi
# end of 'awm/Beep.c'
fi
if test -f 'awm/CircleUp.c' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/CircleUp.c'\"
else
echo shar: Extracting \"'awm/CircleUp.c'\" \(2630 characters\)
sed "s/^X//" >'awm/CircleUp.c' <<'END_OF_FILE'
X#ident   "%W% %G%"
X
X#ifndef lint
static char *rcsid_CircleUp_c = "$Header: CircleUp.c,v 1.1 88/06/15 15:21:23 jkh Exp $";
X#endif	lint
X
X#include "X11/copyright.h"
X/*
X *
X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
X *
X * Copyright 1987 by Jordan Hubbard.
X *
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Ardent Computer
X * Corporation or Jordan Hubbard not be used in advertising or publicity
X * pertaining to distribution of the software without specific, written
X * prior permission.
X *
X */
X
X/*
X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Digital Equipment
X * Corporation not be used in advertising or publicity pertaining to
X * distribution of the software without specific, written prior permission.
X *
X *
X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
X * SOFTWARE.
X */
X
X
X
X/*
X * MODIFICATION HISTORY
X *
X * 000 -- M. Gancarz, DEC Ultrix Engineering Group
X * 001 -- Loretta Guarino Reid, DEC Ultrix Engineering Group,
X    Western Software Lab. Converted to X11.
X */
X
X#ifndef lint
static char *sccsid = "@(#)CircleUp.c	3.8	1/24/86";
X#endif
X
X#include "awm.h"
X
Boolean CircleUp(window, mask, button, x, y)
Window window;                          /* Event window. */
int mask;                               /* Button/key mask. */
int button;                           /* Button event detail. */
int x, y;                        	/* Event mouse position. */
X{
X    Entry("CircleUp")
X
X    XCirculateSubwindowsUp(dpy, RootWindow(dpy, scr));
X    Leave(FALSE)
X}
END_OF_FILE
if test 2630 -ne `wc -c <'awm/CircleUp.c'`; then
    echo shar: \"'awm/CircleUp.c'\" unpacked with wrong size!
fi
# end of 'awm/CircleUp.c'
fi
if test -f 'awm/Error.c' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/Error.c'\"
else
echo shar: Extracting \"'awm/Error.c'\" \(2496 characters\)
sed "s/^X//" >'awm/Error.c' <<'END_OF_FILE'
X#ident   "%W% %G%"
X
X#ifndef lint
static char *rcsid_Error_c = "$Header: Error.c,v 1.1 88/06/15 15:58:56 jkh Exp $";
X#endif	lint
X
X#include "X11/copyright.h"
X/*
X *
X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
X *
X * Copyright 1987 by Jordan Hubbard.
X *
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Ardent Computer
X * Corporation or Jordan Hubbard not be used in advertising or publicity
X * pertaining to distribution of the software without specific, written
X * prior permission.
X *
X */
X
X/*
X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Digital Equipment
X * Corporation not be used in advertising or publicity pertaining to
X * distribution of the software without specific, written prior permission.
X *
X *
X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
X * SOFTWARE.
X */
X
X
X
X/*
X * MODIFICATION HISTORY
X *
X * 000 -- M. Gancarz, DEC Ultrix Engineering Group
X */
X
X#ifndef lint
static char *sccsid = "@(#)Error.c	3.8	1/24/86";
X#endif
X
X#include "awm.h"
X/*
X * Default error reporting routine.  Called when a random awm error
X * is encountered.
X */
XError(s)
char *s;	/* Error description string */
X{
X    Entry("Error")
X
X    fprintf(stderr, "awm: %s\n", s);
X    Cleanup();
X    exit(1);
X}
X
void Warning(s)
char *s;	/* Error description string */
X{
X    Entry("Warning")
X
X    fprintf(stderr, "awm: warning: %s\n", s);
X    Leave_void
X}
END_OF_FILE
if test 2496 -ne `wc -c <'awm/Error.c'`; then
    echo shar: \"'awm/Error.c'\" unpacked with wrong size!
fi
# end of 'awm/Error.c'
fi
if test -f 'awm/Focus.c' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/Focus.c'\"
else
echo shar: Extracting \"'awm/Focus.c'\" \(2653 characters\)
sed "s/^X//" >'awm/Focus.c' <<'END_OF_FILE'
X#ident   "%W% %G%"
X
X#ifndef lint
static char *rcsid_Focus_c = "$Header: Focus.c,v 1.1 88/06/15 15:21:26 jkh Exp $";
X#endif	lint
X
X#include "X11/copyright.h"
X/*
X *
X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
X *
X * Copyright 1987 by Jordan Hubbard.
X *
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Ardent Computer
X * Corporation or Jordan Hubbard not be used in advertising or publicity
X * pertaining to distribution of the software without specific, written
X * prior permission.
X *
X */
X
X/*
X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Digital Equipment
X * Corporation not be used in advertising or publicity pertaining to
X * distribution of the software without specific, written prior permission.
X *
X *
X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
X * SOFTWARE.
X */
X
X
X
X/*
X * MODIFICATION HISTORY
X *
X * 000 -- M. Gancarz, DEC Ultrix Engineering Group
X * 001 -- Loretta Guarino Reid, DEC Ultrix Engineering Group,
X    Western Software Lab. Converted to X11.
X */
X
X#ifndef lint
static char *sccsid = "@(#)Focus.c	3.8	1/24/86";
X#endif
X
X#include "awm.h"
X
Boolean Focus(window, mask, button, x, y)
Window window;				/* Event window. */
int mask;				/* Button/key mask. */
int button;				/* Button event detail. */
int x, y;				/* Event mouse position. */
X{
X     AwmInfoPtr awi;
X
X     Entry("Focus");
X
X     awi = GetAwmInfo(window);
X     if (awi)
X	  window = awi->client;
X     XSetInputFocus(dpy, window, RevertToParent, CurrentTime);
X     FocusSetByUser = TRUE;
X     Leave(FALSE)
X}
END_OF_FILE
if test 2653 -ne `wc -c <'awm/Focus.c'`; then
    echo shar: \"'awm/Focus.c'\" unpacked with wrong size!
fi
# end of 'awm/Focus.c'
fi
if test -f 'awm/Imakefile' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/Imakefile'\"
else
echo shar: Extracting \"'awm/Imakefile'\" \(2570 characters\)
sed "s/^X//" >'awm/Imakefile' <<'END_OF_FILE'
X       MENU_LIB = menus
X      MENU_ARCH = $(MENU_LIB)/rtlmenu.a
X     NEATEN_LIB = /grgr/neaten
X    NEATEN_ARCH = $(NEATEN_LIB)/neaten.a
X  SYS_LIBRARIES = -ll
X      OTHERSRCS = gram.y lex.l
X         YFLAGS = -d
X         HFILES = awm.h neaten.def.h neaten.ext.h support.h
X
X# Use these macros if you want the RTL Neaten package.
X# Also make sure that NEATEN_LIB points to the right place. See the README
X# file for instructions (though you can just define this and give it a shot).
X#       DEFINES = -DSYSFILE=\"$(AWMDIR)$(PATHSEP)system.awmrc\" -DNEATEN
X#       LOCAL_LIBRARIES = $(NEATEN_ARCH) $(MENU_ARCH) $(XLIB)
X
X
X# Use these macros if you don't want the RTL Neaten package.
X        DEFINES = -DSYSFILE=\"$(AWMDIR)$(PATHSEP)system.awmrc\"
X        LOCAL_LIBRARIES = $(MENU_ARCH) $(XLIB)
X
X# Define this if you're compiling XReadBitmapFileData with awm, rather
X# than with Xlib. No guarantees that this will work with all source trees.
X# To be totally sure, compile it with Xlib.
X#XRDOBJ=XRdBitFD.o
X
X# Below is just for "make noident", remove it if you've moved XRdBitFD.c
X# someplace else.
XXRDSRC=XRdBitFD.c
X
X
SRCS=	globals.c Beep.c Bindings.c CircleDown.c CircleUp.c\
X	Cursors.c Focus.c GetButton.c  GridBox.c Iconify.c Icons.c Lower.c\
X	Menu.c Move.c MoveOpaque.c NewIconify.c Pause.c Push.c Error.c\
X	Raise.c Refresh.c Resize.c Restart.c RubberBand.c StoreBox.c \
X	StoreZap.c XError.c awm.c FocusChng.c Titlebar.c errHndlr.c \
X	Grab.c menu_sup.c Gadget.c support.c exp_path.c Neaten.c
X
OBJS=	gram.o lex.o globals.o Beep.o Bindings.o CircleDown.o CircleUp.o\
X	Cursors.o Focus.o GetButton.o GridBox.o Iconify.o Icons.o Lower.o\
X	Menu.o Move.o MoveOpaque.o NewIconify.o Pause.o Push.o Error.o\
X	Raise.o Refresh.o Resize.o Restart.o RubberBand.o StoreBox.o \
X	StoreZap.o XError.o awm.o FocusChng.o Titlebar.o errHndlr.o \
X	Grab.o menu_sup.o Gadget.o support.o exp_path.o Neaten.o $(XRDOBJ)
X
ComplexProgramTarget(awm)
X
InstallNonExec(def.awmrc, $(LIBDIR))
X
X$(MENU_ARCH)::
X	@echo Making menu package...
X	@(cd $(MENU_LIB); make)
X	@echo done.
X
X$(NEATEN_ARCH)::
X	cp Makefile.rtl $(NEATEN_LIB)/Makefile
X	@echo Making Neaten package
X	@(cd $(NEATEN_LIB); make -f Makefile)
X	@echo done.
X
clean::
X	@echo Cleaning menus...
X	@(cd $(MENU_LIB); make clean)
X	@echo done.
X	rm -f y.tab.h
X
noident::
X	@echo Removing ident lines from awm...
X	@for i in $(SRCS) $(OTHERSRCS) $(HFILES) $(XRDSRC); do \
X	sed -e '/#ident/D' < $$i > /tmp/x.$$i && \
X	mv /tmp/x.$$i $$i ; \
X	done
X	@(cd $(MENU_LIB); make noident)
X	@echo done.
X
XXRdBitFD.o:
X	$(CC) -c -I$(XLIBSRC) -I$(TOP) -I$(INCLUDESRC) XRdBitFD.c
END_OF_FILE
if test 2570 -ne `wc -c <'awm/Imakefile'`; then
    echo shar: \"'awm/Imakefile'\" unpacked with wrong size!
fi
# end of 'awm/Imakefile'
fi
if test -f 'awm/bitmaps/hilite.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/bitmaps/hilite.bm'\"
else
echo shar: Extracting \"'awm/bitmaps/hilite.bm'\" \(2202 characters\)
sed "s/^X//" >'awm/bitmaps/hilite.bm' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define hilite_width 16
X#define hilite_height 16
static char hilite_bits[] = {
X   0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
X   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
X   0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
END_OF_FILE
if test 2202 -ne `wc -c <'awm/bitmaps/hilite.bm'`; then
    echo shar: \"'awm/bitmaps/hilite.bm'\" unpacked with wrong size!
fi
# end of 'awm/bitmaps/hilite.bm'
fi
if test -f 'awm/bitmaps/twm.hilite.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/bitmaps/twm.hilite.bm'\"
else
echo shar: Extracting \"'awm/bitmaps/twm.hilite.bm'\" \(2202 characters\)
sed "s/^X//" >'awm/bitmaps/twm.hilite.bm' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define hilite_width 16
X#define hilite_height 16
static char hilite_bits[] = {
X   0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
X   0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00, 0xff, 0xff, 0x00, 0x00,
X   0xff, 0xff, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
END_OF_FILE
if test 2202 -ne `wc -c <'awm/bitmaps/twm.hilite.bm'`; then
    echo shar: \"'awm/bitmaps/twm.hilite.bm'\" unpacked with wrong size!
fi
# end of 'awm/bitmaps/twm.hilite.bm'
fi
if test -f 'awm/bitmaps/twm.iconify.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/bitmaps/twm.iconify.bm'\"
else
echo shar: Extracting \"'awm/bitmaps/twm.iconify.bm'\" \(2194 characters\)
sed "s/^X//" >'awm/bitmaps/twm.iconify.bm' <<'END_OF_FILE'
X
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define iconify_width 16
X#define iconify_height 15
static char iconify_bits[] = {
X   0xff, 0x7f, 0x01, 0x40, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f,
X   0x7d, 0x5f, 0x01, 0x40, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f, 0x7d, 0x5f,
X   0x7d, 0x5f, 0x01, 0x40, 0xff, 0x7f};
END_OF_FILE
if test 2194 -ne `wc -c <'awm/bitmaps/twm.iconify.bm'`; then
    echo shar: \"'awm/bitmaps/twm.iconify.bm'\" unpacked with wrong size!
fi
# end of 'awm/bitmaps/twm.iconify.bm'
fi
if test -f 'awm/bitmaps/twm.pull.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/bitmaps/twm.pull.bm'\"
else
echo shar: Extracting \"'awm/bitmaps/twm.pull.bm'\" \(2197 characters\)
sed "s/^X//" >'awm/bitmaps/twm.pull.bm' <<'END_OF_FILE'
X
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define pull_width 16
X#define pull_height 16
static char pull_bits[] = {
X   0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x00, 0x0c, 0x00, 0x1c, 0xff, 0x3f,
X   0xff, 0x7f, 0xff, 0xff, 0xff, 0x7f, 0xff, 0x3f, 0x00, 0x1c, 0x00, 0x0c,
X   0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
END_OF_FILE
if test 2197 -ne `wc -c <'awm/bitmaps/twm.pull.bm'`; then
    echo shar: \"'awm/bitmaps/twm.pull.bm'\" unpacked with wrong size!
fi
# end of 'awm/bitmaps/twm.pull.bm'
fi
if test -f 'awm/bitmaps/twm.resize.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/bitmaps/twm.resize.bm'\"
else
echo shar: Extracting \"'awm/bitmaps/twm.resize.bm'\" \(2191 characters\)
sed "s/^X//" >'awm/bitmaps/twm.resize.bm' <<'END_OF_FILE'
X
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define resize_width 16
X#define resize_height 15
static char resize_bits[] = {
X   0xff, 0x7f, 0x01, 0x40, 0x01, 0x40, 0x01, 0x40, 0xff, 0x47, 0x01, 0x44,
X   0x01, 0x44, 0x01, 0x44, 0x7f, 0x44, 0x41, 0x44, 0x41, 0x44, 0x41, 0x44,
X   0x41, 0x44, 0x41, 0x44, 0xff, 0x7f};
END_OF_FILE
if test 2191 -ne `wc -c <'awm/bitmaps/twm.resize.bm'`; then
    echo shar: \"'awm/bitmaps/twm.resize.bm'\" unpacked with wrong size!
fi
# end of 'awm/bitmaps/twm.resize.bm'
fi
if test -f 'awm/bitmaps/twm.twm.bm' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/bitmaps/twm.twm.bm'\"
else
echo shar: Extracting \"'awm/bitmaps/twm.twm.bm'\" \(2556 characters\)
sed "s/^X//" >'awm/bitmaps/twm.twm.bm' <<'END_OF_FILE'
X/*****************************************************************************/
X/**       Copyright 1988 by Evans & Sutherland Computer Corporation,        **/
X/**                          Salt Lake City, Utah                           **/
X/**                                                                         **/
X/**                           All Rights Reserved                           **/
X/**                                                                         **/
X/**    Permission to use, copy, modify, and distribute this software and    **/
X/**    its documentation  for  any  purpose  and  without  fee is hereby    **/
X/**    granted, provided that the above copyright notice appear  in  all    **/
X/**    copies and that both  that  copyright  notice  and  this  permis-    **/
X/**    sion  notice appear in supporting  documentation,  and  that  the    **/
X/**    name  of Evans & Sutherland  not be used in advertising or publi-    **/
X/**    city pertaining to distribution  of the software without  specif-    **/
X/**    ic, written prior permission.                                        **/
X/**                                                                         **/
X/**    EVANS  & SUTHERLAND  DISCLAIMS  ALL  WARRANTIES  WITH  REGARD  TO    **/
X/**    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILI-    **/
X/**    TY AND FITNESS, IN NO EVENT SHALL EVANS &  SUTHERLAND  BE  LIABLE    **/
X/**    FOR  ANY  SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY  DAM-    **/
X/**    AGES  WHATSOEVER RESULTING FROM  LOSS OF USE,  DATA  OR  PROFITS,    **/
X/**    WHETHER   IN  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS    **/
X/**    ACTION, ARISING OUT OF OR IN  CONNECTION  WITH  THE  USE  OR PER-    **/
X/**    FORMANCE OF THIS SOFTWARE.                                           **/
X/*****************************************************************************/
X
X#define twm_width 48
X#define twm_height 15
static char twm_bits[] = {
X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xfc, 0xff, 0xff, 0xff, 0xff, 0x0f,
X   0xfe, 0xff, 0xff, 0xff, 0xff, 0x1f, 0x80, 0x01, 0x00, 0x00, 0x00, 0x00,
X   0xc0, 0x0c, 0x0c, 0xcc, 0xc0, 0x00, 0xc0, 0x0c, 0x0c, 0xcc, 0xc0, 0x00,
X   0x60, 0x18, 0x1e, 0xe6, 0xe1, 0x01, 0x60, 0x18, 0x1e, 0xe6, 0xe1, 0x01,
X   0x30, 0x30, 0x33, 0x33, 0x33, 0x03, 0x30, 0x30, 0x33, 0x33, 0x33, 0x03,
X   0x18, 0xe0, 0xe1, 0x19, 0x1e, 0x06, 0x18, 0xe0, 0xe1, 0x19, 0x1e, 0x06,
X   0x0c, 0xc0, 0xc0, 0x0c, 0x0c, 0x0c, 0x0c, 0xc0, 0xc0, 0x0c, 0x0c, 0x0c,
X   0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
END_OF_FILE
if test 2556 -ne `wc -c <'awm/bitmaps/twm.twm.bm'`; then
    echo shar: \"'awm/bitmaps/twm.twm.bm'\" unpacked with wrong size!
fi
# end of 'awm/bitmaps/twm.twm.bm'
fi
if test -f 'awm/errHndlr.c' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/errHndlr.c'\"
else
echo shar: Extracting \"'awm/errHndlr.c'\" \(2606 characters\)
sed "s/^X//" >'awm/errHndlr.c' <<'END_OF_FILE'
X#ident   "%W% %G%"
X
X#ifndef lint
static char *rcsid_errHndlr_c = "$Header: errHndlr.c,v 1.1 88/06/15 15:26 :00 jkh Exp $";
X#endif  lint
X
X#include "X11/copyright.h"
X/*
X *
X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
X *
X * Copyright 1987 by Jordan Hubbard.
X *
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Ardent Computer
X * Corporation or Jordan Hubbard not be used in advertising or publicity
X * pertaining to distribution of the software without specific, written
X * prior permission.
X *
X */
X
X#include <stdio.h>
X#include "X11/Xlib.h"
X
int errorStatus = False;
X
X#ifdef DEBUG
void debug(s, x1, x2, x3, x4, x5, x6, x7, x8)
char *s;
long x1, x2, x3, x4, x5, x6, x7, x8;
X{
X	static FILE *con = 0;
X
X	if (!con)
X		con = fopen("/dev/console", "w");
X	fprintf(con, s, x1, x2, x3, x4, x5, x6, x7, x8);
X}
X#endif
X
int ErrorHandler (dpy, event)
X    Display *dpy;
X    XErrorEvent *event;
X{
X#ifdef DEBUG
X    char *buffer[BUFSIZ];
X    XGetErrorText(dpy, event->error_code, buffer, BUFSIZ);
X	(void) fprintf(stderr, "Hey!\n");
X    (void) fprintf(stderr, "X Error: %s\n", buffer);
X    (void) fprintf(stderr, "  Request Major code: %d\n", event->request_code);
X    (void) fprintf(stderr, "  Request Minor code: %d\n", event->minor_code);
X    (void) fprintf(stderr, "  ResourceId 0x%x\n", event->resourceid);
X    (void) fprintf(stderr, "  Error Serial #%d\n", event->serial);
X    (void) fprintf(stderr, "  Current Serial #%d\n", dpy->request);
X#endif
X    errorStatus = True;
X    return 0;
X}
X
static char *eventname[] = {
X	"zero",
X	"one",
X	"KeyPress",
X	"KeyRelease",
X	"ButtonPress",
X	"ButtonRelease",
X	"MotionNotify",
X	"EnterNotify",
X	"LeaveNotify",
X	"FocusIn",
X	"FocusOut",
X	"KeymapNotify",
X	"Expose",
X	"GraphicsExpose",
X	"NoExpose",
X	"VisibilityNotify",
X	"CreateNotify",
X	"DestroyNotify",
X	"UnmapNotify",
X	"MapNotify",
X	"MapRequest",
X	"ReparentNotify",
X	"ConfigureNotify",
X	"ConfigureRequest",
X	"GravityNotify",
X	"ResizeRequest",
X	"CirculateNotify",
X	"CirculateRequest",
X	"PropertyNotify",
X	"SelectionClear",
X	"SelectionRequest",
X	"SelectionNotify",
X	"ColormapNotify",
X	"ClientMessage",
X	"MappingNotify",
X};
X
void print_event_info(s, ev)
char *s;
XXEvent *ev;
X{
X	fprintf(stderr, "%s: EVENT %s(%d) on %x\n", s, eventname[ev->type],
X	  ev->type, ev->xany.window);
X}
END_OF_FILE
if test 2606 -ne `wc -c <'awm/errHndlr.c'`; then
    echo shar: \"'awm/errHndlr.c'\" unpacked with wrong size!
fi
# end of 'awm/errHndlr.c'
fi
if test -f 'awm/lex.l' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/lex.l'\"
else
echo shar: Extracting \"'awm/lex.l'\" \(2288 characters\)
sed "s/^X//" >'awm/lex.l' <<'END_OF_FILE'
X%{
X
X
X#include <X11/copyright.h>
X
X#ident   "%W% %G%"
X
X/*
X * Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Digital Equipment
X * Corporation not be used in advertising or publicity pertaining to
X * distribution of the software without specific, written prior permission.
X *
X *
X * DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
X * ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
X * DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
X * ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
X * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
X * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
X * SOFTWARE.
X */
X
X 
X
X
X/*
X * MODIFICATION HISTORY
X *
X * 000 -- M. Gancarz, DEC Ultrix Engineering Group
X * 001 -- Jordan Hubbard, Ardent Computer
X *  Handle comments differently.
X */
X
X#include "y.tab.h"
X#include "awm.h"
X
X#undef	YYLMAX
X
X#ifdef	LEXBUFSIZ
X#define YYLMAX	LEXBUFSIZ
X#else
X#define YYLMAX	1024
X#endif
X
char *dequote();
char *stash();
X
X%}
W	[ \t]+
X%%
X
X#.*\n				{ return(COMMENT); }	/* Comments. */
X\\\n				{ Lineno++; }		/* Continuation. */
X{W}				{ ; }	/* Whitespace. */
X[^ \"\t\n#=\^\!\|\(\)\[\]\{\}:;]+	{ yylval.sval=stash(yytext);return(STRING); }
X\"[^\"]*\"			{ yylval.sval=stash(dequote(yytext));
X				  return(STRING); }
X\n				{ return(NL); }
X.				{ return(*yytext); }
X
X%%
X
X/*
X * Remove the quotes enclosing a quoted string.
X */
char *
dequote(s)
char *s;
X{
X    char *p;
X
X    ++s;
X    p = rindex(s, '"');
X    *p = '\0';
X    return(s);
X}
X
X/*
X * Save string away in memory and return a pointer to it.  If
X * no space could be found, quit with a fatal error.
X */
char *stash(s)
char *s;
X{
X    char *ptr;
X    char *malloc();
X
X    ptr = malloc(strlen(s) + 1);
X    if (ptr == NULL) {
X        Error("out of space");
X    }
X    return(strcpy(ptr, s));
X}
END_OF_FILE
if test 2288 -ne `wc -c <'awm/lex.l'`; then
    echo shar: \"'awm/lex.l'\" unpacked with wrong size!
fi
# end of 'awm/lex.l'
fi
if test -f 'awm/menus/rtlmnu.ext.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/menus/rtlmnu.ext.h'\"
else
echo shar: Extracting \"'awm/menus/rtlmnu.ext.h'\" \(2319 characters\)
sed "s/^X//" >'awm/menus/rtlmnu.ext.h' <<'END_OF_FILE'
X#ident   "%W% %G%"
X
X/*
X#ifndef lint
static char sccs_id[] = "@(#)rtlmenu.extern.h	2.1 12/16/87  Siemens Corporate Research and Support, Inc.";
X#endif
X*/
X
X
X/* 
X  RTL Menu Package Version 1.0
X  by Joe Camaratta and Mike Berman, Siemens RTL, Princeton NJ, 1987
X
X  rtlmenu.extern.h: external definitions for rtlmenu user
X*/
X
X/*
X *
X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
X *
X * Copyright 1987 by Jordan Hubbard.
X *
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Ardent Computer
X * Corporation or Jordan Hubbard not be used in advertising or publicity
X * pertaining to distribution of the software without specific, written
X * prior permission.
X *
X */
X
X/*
Copyright 1987 by
X	Siemens Corporate Research and Support, Inc., Princeton, New Jersey
X
Permission to use, copy, modify, and distribute this software
and its documentation for any purpose and without fee is
hereby granted, provided that the above copyright notice
appear in all copies and that both that copyright notice and
this permission notice appear in supporting documentation, and
that the name of Siemens not be used in advertising or
publicity pertaining to distribution of the software without
specific, written prior permission.  Siemens makes no
representations about the suitability of this software for any
purpose.  It is provided "as is" without express or implied
warranty.
X
X*/
X
extern void RTLMenu_Initialize(), RTLMenu_Destroy(),
X    RTLMenu_Replace_Data_Keyed_String(), RTLMenu_Activate_Entry(),
X    RTLMenu_Inactivate_Entry(), RTLMenu_Delete_Entries(),
X    RTLMenu_Delete_String(), RTLMenu_Delete_Data(),
X    RTLMenu_Enter(), RTLMenu_Generate_Items();
X    
extern bool RTLMenu_Has_Data();
X
extern RTLMenu RTLMenu_Create(), RTLMenu_Get_Submenu();
X
extern pointer RTLMenu_Data();
X
extern RTLMenuItem RTLMenu_Append_String(), RTLMenu_Append_Callback(),
X    RTLMenu_Append_Call(), RTLMenu_Append_Checkback(),
X    RTLMenu_Append_Submenu();
X
extern RTLPoint RTLMenu_Entry_Pos(); 
X    
END_OF_FILE
if test 2319 -ne `wc -c <'awm/menus/rtlmnu.ext.h'`; then
    echo shar: \"'awm/menus/rtlmnu.ext.h'\" unpacked with wrong size!
fi
# end of 'awm/menus/rtlmnu.ext.h'
fi
if test -f 'awm/menus/std_defs.h' -a "${1}" != "-c" ; then 
  echo shar: Will not clobber existing file \"'awm/menus/std_defs.h'\"
else
echo shar: Extracting \"'awm/menus/std_defs.h'\" \(2359 characters\)
sed "s/^X//" >'awm/menus/std_defs.h' <<'END_OF_FILE'
X#ident   "%W% %G%"
X
X/*
X#ifndef lint
static char sccs_id[] = "@(#)std_defs.h	2.5  4/13/87 Copyright (c) 1987, Siemens Corporate Research and Support, Inc.";
X#endif
X*/
X
X
X/* 
X  RTL Menu Package Version 1.0
X  by Joe Camaratta and Mike Berman, Siemens RTL, Princeton NJ, 1987
X
X  std_defs.h: standard definitions shared among menu programs.
X*/
X
X#include "X11/copyright.h"
X/*
X *
X * Copyright 1987, 1988 by Ardent Computer Corporation, Sunnyvale, Ca.
X *
X * Copyright 1987 by Jordan Hubbard.
X *
X *
X *                         All Rights Reserved
X *
X * Permission to use, copy, modify, and distribute this software and its
X * documentation for any purpose and without fee is hereby granted,
X * provided that the above copyright notice appear in all copies and that
X * both that copyright notice and this permission notice appear in
X * supporting documentation, and that the name of Ardent Computer
X * Corporation or Jordan Hubbard not be used in advertising or publicity
X * pertaining to distribution of the software without specific, written
X * prior permission.
X *
X */
X
X/*
X
Copyright 1987 by
X	Siemens Corporate Research and Support, Inc., Princeton, New Jersey
X
Permission to use, copy, modify, and distribute this
software and its documentation for any purpose and without
fee is hereby granted, provided that the above copyright
notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting
documentation, and that the name of Siemens not be used in
advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
Siemens makes no representations about the suitability of
this software for any purpose.  It is provided "as is"
without express or implied warranty.
X
X*/
X
X
X#define STD_DEFS
X
X/*	useful macros
X */
typedef char *pointer;
X
extern char *malloc();
X#define  allocate(type, quan)	( (type *) malloc(sizeof(type) * (quan)) )
X
X#define  FOREVER		for (;;)
X
X
X/*	initial pointer value
X */
X#ifndef  NULL
X#define  NULL		0
X#endif
X
X/*	values for "bool" type
X */
X#define bool	unsigned
X
X#ifndef  TRUE
X#define  TRUE		1
X#endif
X
X#ifndef  FALSE
X#define  FALSE		0
X#endif
X
X
X/*	VoidFunc type definition
X */
typedef void		(*VoidFunc)();
X
X
X/*	minimal error status return values
X */
X#define  SUCCESS	 0
X#define  FAILURE	-1
X
X#define ABS(val)  \
X    ( ( (val) < 0 ) ? -(val) : (val) ) 
X
END_OF_FILE
if test 2359 -ne `wc -c <'awm/menus/std_defs.h'`; then
    echo shar: \"'awm/menus/std_defs.h'\" unpacked with wrong size!
fi
# end of 'awm/menus/std_defs.h'
fi
echo shar: End of archive 2 \(of 17\).
cp /dev/null ark2isdone
MISSING=""
for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ; do
    if test ! -f ark${I}isdone ; then
	MISSING="${MISSING} ${I}"
    fi
done
if test "${MISSING}" = "" ; then
    echo You have unpacked all 17 archives.
    rm -f ark[1-9]isdone ark[1-9][0-9]isdone
else
    echo You still need to unpack the following archives:
    echo "        " ${MISSING}
fi
##  End of shell archive.
exit 0