From: <as...@us...> - 2003-07-09 22:42:51
|
Update of /cvsroot/gtk2hs/gtk2hs/mk In directory sc8-pr-cvs1:/tmp/cvs-serv25460/mk Modified Files: common.mk library.mk Log Message: Make compile with GHC 6.00. There are two major changes in the FFI which made me separate everything that has to do with Foreign and Foreign.C into a new file called general/FFI.hs. The file UTFCForeign.hs is now obsolete as its string conversion functions are now in FFI.hs. The nullForeignPtr function is also located here. All files now import FFI instead of Foreign and UTFCForeign. The major changes are: newForeignPtr now takes a pointer to a C function as finalizer. Every destructor function is now defined differently depending on whether the new GHC is used or not. In particular there is now a function called free :: Ptr a -> IO () imported from the Foreign library. In addition to that I defined a function foreignFree which can be used as finalizer to a C data structure. It is equivalent to free if GHC version <=5.04 is used. The second change is that ForeignPtr are no longer accepted as arguments to foreign calls. This change is mainly reflected in c2hs, but also in some files which directly called functions. Index: common.mk =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/mk/common.mk,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- common.mk 17 May 2003 14:53:44 -0000 1.20 +++ common.mk 9 Jul 2003 22:42:46 -0000 1.21 @@ -274,7 +274,7 @@ @echo incl: $(INST_INCLDIR) bin: $(INST_BINDIR) # @echo user install dir: $(INSTALLDIR) @echo subdirs: $(SUBDIRSOK) -# @echo $(ALLSOURCEFILES) > sourcefiles.txt + @echo $(ALLSOURCEFILES) > sourcefiles.txt # @cvs status $(CLEANFILES) 2> /dev/null | $(GREP) File | $(GREP) Unknown # Create a source tar achive. Do this by adding files to the tar file in the Index: library.mk =================================================================== RCS file: /cvsroot/gtk2hs/gtk2hs/mk/library.mk,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- library.mk 4 Jul 2003 08:27:00 -0000 1.15 +++ library.mk 9 Jul 2003 22:42:46 -0000 1.16 @@ -41,7 +41,7 @@ $(addprefix -Wl$(COMMA),\ $(addprefix --subsystem$(SPACE),$(SUBSYSTEM))) \ $(addprefix -u ,$(EXTRA_SYMBOLS)))]} | \ - $(PKG) --force -f $(LOCALPKGCONF) -a > /dev/null + $(PKG) --force -g -f $(LOCALPKGCONF) -a > /dev/null installcheck : @if $(PKG) -l | $(GREP) $(PACKAGENAME) > /dev/null; then \ |