Stuff for ctwm: (By Peter Chang - peterc@a3.ph.man.ac.uk 3/5/94 & 15/2/95)
===============

Differences: No xwd colour bitmaps, no m4 preparsing, nor other Unix things,
             such as sound, pipes, etc.


Apart from getting the things compiled the following was changed:

in several files replaced strdup()
got rid of environ stuff
used lib$wait instead of select() for timing routines

ctwm.c:
- PIXMAP_DIRECTORY changed to "DECW$BITMAPS:"
- changed home to "[]" if getenv("HOME"); returns NULL
- hopefully Done() should exit gracefully from ctwm (by running
  decw$endsession)
- still no restart code

events.c:
- changed CtwmNextEvent to wait for an event flag set by the
  AnimateHandler(). Bit of a hack, won't handle X events until the flags is
  set. Question: have I done this properly? See util.c.

menus.c:
- still no restart code

parse.c:
- SYSTEM_INIT_FILE changed to "DECW$SYSTEM_DEFAULTS:SYSTEM.CTWMRC"
- user config files should reside in "DECW$USER_DEFAULTS" (not "HOME")
  and now called ctwm.rc, ctwm.rc_(screen no), etc.

util.c:
- ExpandPixmapPath() now looks for "~foo.bar" = file at home or sys$login,
  "/disk$users:[joe]foo.bar" = absolute filename and any other "foo.bar" =
  a file in the directory defined by PixmapDirectory in config file.
- Animate*() now use system calls such as sys$setimr() to do the timing.
  Use two local events flag for the timing - a) for the sys$setimr()
  b) when the timer is sprung, the second flag is set.
  There are two variations, I tried to use:
      1) The 2nd flag is used by CtwmNextEvent() [in event.c] in a
         sys$waitfr() call which waits for this flag alone, ignoring
	 X events, I think.
      2) The 2nd flag [from cluster 0, = 17] is used by CtwmNextEvent()
         in a sys$wflor() call which waits for either this flag or the
	 ef associated with the X display.
  At the moment, I can't get method 2 to work, it seems to ignore timer events.
- got rid of xwd stuff because there is no such stuff in the latest
  DecWindows.


Stuff from twm conversion:
==========================

Apart from getting the things compiled the following was changed:

twm.c:

- call to fcntl() was removed
- add call to vms_do_init() inserted into main()

lex.c:

- the way yyinput and yyoutput are initialized is changed (vms_do_init())


Xmu/CloseHook.c:

- in _MakeExtension all code removed (where is XAddExtension() ??)
