cvs commit: hugs98/src ffi.c prelude.h

Alastair Reid reid@glass.cse.ogi.edu
Mon, 17 Jun 2002 17:41:59 -0700


reid        2002/06/17 17:41:59 PDT

  Modified files:
    src                  ffi.c prelude.h 
  Log:
  Don't put quotes round libraries because the libraries are often lists
  of files.  (Well, they are at the moment - discussion on ffi list may
  change this.)  I've left the quotes in place on the windows part of
  the code but Sigbjorn will probably find he has to remove them.
  
  Doubled the amount of Text space allocated.  The Xlib ffi code has a
  lot of strings in it.  It may be worth looking for a way to eliminate
  some of these strings to save a little memory.
  
  With these changes and the recent greencard commits, the following
  makes HGL build and run correctly.
  
  green-card --target ffi --include-dir /home/reid/local/green-card/lib/ghc -fX_stub_ffi.c -fcbits/auxiliaries.c -f-L/usr/X11R6/lib -f-lX11 -f-lc X.gc -o X.hs
  
  green-card --target ffi --include-dir /home/reid/local/green-card/lib/ghc -fXlib_stub_ffi.c -fcbits/auxiliaries.c -f-L/usr/X11R6/lib -f-lX11 -f-lc Xlib.gc -o Xlib.hs
  
  green-card --target ffi --include-dir /home/reid/local/green-card/lib/ghc -fXlib_StdDIS_stub_ffi.c -fcbits/auxiliaries.c -f-L/usr/X11R6/lib -f-lX11 -f-lc Xlib_StdDIS.gc -o Xlib_StdDIS.hs
  
  cd ~/src/hugs-working
  make install
  make
  ./hugs -P/home/reid/src/hslibs/xlib:/home/reid/src/hslibs/graphics/lib/x11: \
    ~/src/hslibs/graphics/demos/HelloWorld.hs
  
  WooHoo!
  
  Revision  Changes    Path
  1.12      +3 -3      hugs98/src/ffi.c
  1.36      +3 -3      hugs98/src/prelude.h