- Apr 14, 2000
-
-
Simon Marlow authored
msTime() uses non-POSIX features, so #define NON_POSIX_SOURCE.
-
Simon Marlow authored
uncomment prototype for msTime.
-
Simon Marlow authored
#define _POSIX_C_SOURCE 199506L #define _ISOC9X_SOURCE
-
Simon Marlow authored
Free the spare buffers immediately we hClose a file handle.
-
Simon Marlow authored
Fix a bug in commitBuffer, and tweak the semantics of commitBuffer/commitAndReleaseBuffer. Add some comments on the algorithms used here.
-
Simon Marlow authored
fix for interface header regexp; orphan modules weren't being recorded as such.
-
Simon Marlow authored
Don't bother printing the HiVersion in the __interface line (it's added by ghc-iface later on anyway).
-
Simon Marlow authored
Text => Show _ByteArray => ByteArray
-
Simon Marlow authored
fix up imports of ForeignObj(..).
-
Simon Marlow authored
_ForeignObj ==> ForeignObj
-
Simon Marlow authored
we should be using hPutBufFull here.
-
- Apr 13, 2000
-
-
Julian Seward authored
Changed NO_REGS to NO_MACHREGS to avoid inexplicable gcc warnings when building the rts for Hugs.
-
sven.panne@aedion.de authored
GHC has instance amnesia again, so a bunch of funny `import Ppr{Core,Type} ()? had to be added. Sorry, but I need a bootstrapping GHC.
-
sven.panne@aedion.de authored
Again: Addr is an abstract type in Addr, so import from PrelAddr instead. Told you so...
-
sven.panne@aedion.de authored
Bootstrapping fun: * Addr is an abstract type in Addr, so import from PrelAddr instead * Ignore the (recently introduced) return value of hPutBuf{,BA} Probably more to come. No problem, as long as I don't run out of malt first... %-)
-
sven.panne@aedion.de authored
Ooops, forgot one -syslib => -package
-
sven.panne@aedion.de authored
HS_cbits => HSstd_cbits
-
sven.panne@aedion.de authored
StgStablePtr is now void*, as required by The Happy Bit Fiddlers
-
Reuben Thomas authored
Added details of packages.
-
sven.panne@aedion.de authored
Removed the useless (and hard to implement) readForeignObjOffAddr#
-
Simon Marlow authored
remove accidentally committed stuff.
-
Simon Peyton Jones authored
Add support for 'packages'. * A package is a group of modules. * A package has a name (e.g. std) * A package is built into a single library (Unix; e.g. libHSstd.a) or a single DLL (Windows; e.g. HSstd.dll) * The '-package-name foo' flag tells GHC that the module being compiled is destined for package foo. * The '-package foo' flag tells GHC to make available modules from package 'foo'. It replaces '-syslib foo' which is now deprecated. * Cross-package references cost an extra indirection in Windows, but not Unix * GHC does not maintain detailed cross-package dependency information. It does remember which modules in other packages the current module depends on, but not which things within those imported things. All of this tidies up the Prelude enormously. The Prelude and Standard Libraries are built into a singl package called 'std'. (This is a change; the library is now called libHSstd.a instead of libHS.a)
-
Simon Marlow authored
Move block/unblockAsyncExceptions here, now that they're used in PrelHandle.
-
- Apr 12, 2000
-
-
Simon Marlow authored
This commit fixes the trace/stderr problem, and also fixes some other problems with the I/O library. - handles now contain a list of free buffers, which are guaranteed to be the same size as the primary handle buffer. - hPutStr now doesn't evaluate any part of the input string with the handle locked. Instead, it acquires a buffer from the handle copies characters into it, then commits the buffer. This is better for concurrency too, because the handle is only locked while we're actually reading/writing, not while evaluating. - there were an even number of off-by-one errors in the I/O system which compensated for each other. This has been fixed. - made the I/O subsystem a little more exception-safe. It still isn't totally exception-safe, but I can't face doing that without a complete rewrite of this thing in Haskell. - add hPutBufFull and hGetBufFull. The compiler probably needs to be updated to use these too.
-
Simon Marlow authored
add takeMaybeMVarzh_fast decl.
-
Simon Marlow authored
add takeMaybeMVarzh_fast
-
Simon Marlow authored
add takeMaybeMVar
-
Simon Marlow authored
add takeMaybeMVar#
-
Simon Marlow authored
hack to fix bootstrapping
-
Simon Marlow authored
Add takeMaybeMVarzh (I'm doing this commit in bits, since my working sources are so full of changes I can't easily unpick them...)
-
sven.panne@aedion.de authored
Cleaned up Addr, AddrOff added
-
Julian Seward authored
Add -fcompiling-prelude so as to get right dependencies in the interface.
-
Julian Seward authored
Cygwin wibbles.
-
Julian Seward authored
More infotable cleanups: zap the debugging table of info table names. This can be cleanly done by looking at the .itbl field on Names and Tycons.
-
Julian Seward authored
checkClosureShallow: allow Hugs constructor itbls
-
- Apr 11, 2000
-
-
sven.panne@aedion.de authored
Cleaning up the foreign object naming mess: * Renamed the primop from makeForeignObj# to mkForeignObj#, this is more consistent with the old Foreign.mkForeignObj. * PrelForeign now exports makeForeignObj with the new signature. * freeFile.c now uses StgAddr instead of StgForeignObj, this removes the need for some fixIOs. * Lots of import tweaking to prepare The Big Foreign Renamer, which will move most of Foreign to ForeignObj, and FFI to Foreign. Note: I've tried to track the changes in the interpreter sources, but didn't test them.
-
Julian Seward authored
Pull init_stack outside #ifdef INTERPRETER.
-
Julian Seward authored
Fix bitrot to allow (standalone) StgHugs to be built on Solaris, so we can Purify it.
-
Julian Seward authored
Ensure that when Hugs decides to unload a module (nukeModule()), there are no closures anywhere in the system which refers to infotables defined in that module. That means reverting all CAFs and doing a major GC prior to deleting the module. A flag is used to avoid redundant GCs.
-
Keith Wansbrough authored
Render formatting consistent with the Glasgow Style (vapour-)Guide.
-