packages/base.git
7 years agoFix an off-by-one error in freeProgArgv
Ian Lynagh [Wed, 2 May 2012 12:39:26 +0000 (13:39 +0100)] 
Fix an off-by-one error in freeProgArgv

7 years agoTidy up the ThreadDelay001 test code
Ian Lynagh [Tue, 1 May 2012 16:38:41 +0000 (17:38 +0100)] 
Tidy up the ThreadDelay001 test code

7 years agosystem001 test is expected to fail on Win64
Ian Lynagh [Tue, 1 May 2012 16:35:35 +0000 (17:35 +0100)] 
system001 test is expected to fail on Win64

7 years agoFix some more tests on Win64
Ian Lynagh [Tue, 1 May 2012 13:19:51 +0000 (14:19 +0100)] 
Fix some more tests on Win64

7 years agoRemove old test outputs
Ian Lynagh [Tue, 1 May 2012 13:10:14 +0000 (14:10 +0100)] 
Remove old test outputs

These files are no longer used

7 years agoAdd a type-family for comparing numbers.
Iavor S. Diatchki [Tue, 1 May 2012 06:08:54 +0000 (23:08 -0700)] 
Add a type-family for comparing numbers.

For the moment, this replaces the class (<=) because it is
easier to fit with GHC's coercion evidence.

7 years agoFix openFile003 for Win64
Ian Lynagh [Mon, 30 Apr 2012 23:59:23 +0000 (00:59 +0100)] 
Fix openFile003 for Win64

7 years agouse mkWeakNoFinalizer# (#5879)
Simon Marlow [Fri, 27 Apr 2012 10:12:06 +0000 (11:12 +0100)] 
use mkWeakNoFinalizer# (#5879)

7 years agoDon't include sys/timeb.h on FreeBSD.
Geoffrey Mainland [Wed, 25 Apr 2012 21:34:26 +0000 (22:34 +0100)] 
Don't include sys/timeb.h on FreeBSD.

sys/timeb.h is deprecated on FreeBSD meaning validation fails quite early
without this patch.

7 years agoDEPRECATE Foreign.Marshal.Error.void (use Control.Monad.void instead)
Simon Marlow [Mon, 16 Apr 2012 15:45:08 +0000 (16:45 +0100)] 
DEPRECATE Foreign.Marshal.Error.void (use Control.Monad.void instead)

7 years agoAdd GHCi monad. Experimental for now.
David Terei [Tue, 24 Apr 2012 23:16:48 +0000 (16:16 -0700)] 
Add GHCi monad. Experimental for now.

7 years agoRemove hardcoded mangling of the n_capability symbol (#5864)
Paolo Capriotti [Tue, 24 Apr 2012 10:35:35 +0000 (11:35 +0100)] 
Remove hardcoded mangling of the n_capability symbol (#5864)

This was breaking cross-module inlining, since the symbol ended up being
mangled twice, if the call happened to be inlined into another module.

7 years agoAdd timer initialization for darwin.
Paolo Capriotti [Mon, 16 Apr 2012 13:47:36 +0000 (14:47 +0100)] 
Add timer initialization for darwin.

7 years agoReplace getUSecOfDay with monotonic timer (#5865)
Paolo Capriotti [Fri, 23 Mar 2012 14:26:20 +0000 (14:26 +0000)] 
Replace getUSecOfDay with monotonic timer (#5865)

7 years agoDefine monotonic time function for Darwin.
Paolo Capriotti [Fri, 23 Mar 2012 17:22:20 +0000 (17:22 +0000)] 
Define monotonic time function for Darwin.

7 years agoUse monotonic time in Event/Manager.hs.
Paolo Capriotti [Mon, 19 Mar 2012 18:00:48 +0000 (18:00 +0000)] 
Use monotonic time in Event/Manager.hs.

7 years agoRevert "Add GHCi monad"
David Terei [Fri, 13 Apr 2012 11:23:09 +0000 (04:23 -0700)] 
Revert "Add GHCi monad"

This reverts commit 7e04ab6158957c90e3c68911b6909b6ef69621da.

7 years agoAdd GHCi monad
David Terei [Wed, 8 Feb 2012 23:08:07 +0000 (15:08 -0800)] 
Add GHCi monad

7 years agodoc tweaks
Simon Marlow [Thu, 12 Apr 2012 10:19:04 +0000 (11:19 +0100)] 
doc tweaks

7 years agomove mkWeakThreadId to GHC.Conc.Sync; export it from Control.Concurrent
Simon Marlow [Thu, 12 Apr 2012 10:04:54 +0000 (11:04 +0100)] 
move mkWeakThreadId to GHC.Conc.Sync; export it from Control.Concurrent

7 years agoadd "Portions obtained from hbc (c) Lennart Augusstson" (#5963)
Simon Marlow [Thu, 12 Apr 2012 08:37:56 +0000 (09:37 +0100)] 
add "Portions obtained from hbc (c) Lennart Augusstson" (#5963)

7 years agobugfix: use forkIOWithUnmask rather than forkIO
Simon Marlow [Wed, 11 Apr 2012 09:03:45 +0000 (10:03 +0100)] 
bugfix: use forkIOWithUnmask rather than forkIO

7 years agoAdd testcase for #5930.
Paolo Capriotti [Tue, 10 Apr 2012 12:40:25 +0000 (13:40 +0100)] 
Add testcase for #5930.

7 years agoAdd System.Environment.lookupEnv (#5930)
Paolo Capriotti [Tue, 10 Apr 2012 12:36:49 +0000 (13:36 +0100)] 
Add System.Environment.lookupEnv (#5930)

Based on a patch by Evan Laforge <qdunkan@gmail.com>

7 years agoWhitespace only: convert mixed tabs and spaces to spaces.
Evan Laforge [Mon, 12 Mar 2012 01:23:43 +0000 (18:23 -0700)] 
Whitespace only: convert mixed tabs and spaces to spaces.

Signed-off-by: Paolo Capriotti <p.capriotti@gmail.com>
7 years agoRewrite to use just one notion of singletons.
Iavor S. Diatchki [Mon, 9 Apr 2012 02:37:56 +0000 (19:37 -0700)] 
Rewrite to use just one notion of singletons.

This avoids the duplication of types and classes for each separate
type of literal: before we had two copies of most functions, one for
numbers and one for strings.  Now we just have one polymorphic (both
at the type and the kind level!) version, which uses a type function
and polymorphic kinds in an interesting way.

7 years agoRename parAvgBytesCopied to parTotBytesCopied
Mikolaj Konarski [Thu, 8 Mar 2012 15:33:46 +0000 (16:33 +0100)] 
Rename parAvgBytesCopied to parTotBytesCopied

This follows a change in GHC and ghc-events. The previous name was misleading.

From commit "Change the presentation of parallel GC work balance in +RTS -s":

    Also rename internal variables to make the names match what they hold.
    The parallel GC work balance is calculated using the total amount of
    memory copied by all GC threads, and the maximum copied by any
    individual thread. You have serial GC when the max is the same as
    copied, and perfectly balanced GC when total/max == n_caps.

7 years agoTest Trac #5962
Simon Peyton Jones [Fri, 30 Mar 2012 11:54:34 +0000 (12:54 +0100)] 
Test Trac #5962

7 years agoFix an egregious bug in the fingerprint calculation for TypeRep
Simon Peyton Jones [Fri, 30 Mar 2012 11:51:14 +0000 (12:51 +0100)] 
Fix an egregious bug in the fingerprint calculation for TypeRep

Given (T ty1) and ty2, we were computing the fingerprint of the
application (T ty1 ty2) by combining the two fingerprints from (T ty1)
and ty2.  But that gives a different answer to combinging the three
fingerprints from T, ty1, and ty2, which is what happens if you
build the type all at once.  Urk!

Fixes Trac #5962

7 years agoEnsure hGetBufSome does not cause potentially blocking reads (#5843)
Paolo Capriotti [Tue, 27 Mar 2012 15:37:06 +0000 (16:37 +0100)] 
Ensure hGetBufSome does not cause potentially blocking reads (#5843)

When there is data in a handle buffer, never fetch more than the
available number of elements, since that can cause a blocking read on
Windows.

7 years agoMerge remote-tracking branch 'origin/master' into type-nats
Iavor S. Diatchki [Sat, 24 Mar 2012 23:23:17 +0000 (16:23 -0700)] 
Merge remote-tracking branch 'origin/master' into type-nats

7 years agoadd test for #5943
Simon Marlow [Fri, 23 Mar 2012 15:00:34 +0000 (15:00 +0000)] 
add test for #5943

7 years agochange unsafeDupableInterleaveIO from INLINE to NOINLINE (#5943)
Simon Marlow [Fri, 23 Mar 2012 12:28:18 +0000 (12:28 +0000)] 
change unsafeDupableInterleaveIO from INLINE to NOINLINE (#5943)

See the comment for details.

7 years agoRevert IsEven to the way it was.
Iavor S. Diatchki [Thu, 22 Mar 2012 07:46:22 +0000 (00:46 -0700)] 
Revert IsEven to the way it was.

7 years agoFix the type of IsEven
Iavor S. Diatchki [Thu, 22 Mar 2012 03:17:29 +0000 (20:17 -0700)] 
Fix the type of IsEven

7 years agoMerge remote-tracking branch 'origin/master' into type-nats
Iavor S. Diatchki [Tue, 20 Mar 2012 03:09:14 +0000 (20:09 -0700)] 
Merge remote-tracking branch 'origin/master' into type-nats

7 years agoAdd some useful functions for working with type literals.
Iavor S. Diatchki [Tue, 20 Mar 2012 03:09:03 +0000 (20:09 -0700)] 
Add some useful functions for working with type literals.

7 years agoFix typo in Data.List.(\\) documentation
Joachim Breitner [Fri, 16 Mar 2012 20:53:50 +0000 (21:53 +0100)] 
Fix typo in Data.List.(\\) documentation

7 years agoMerge remote-tracking branch 'origin/master' into type-nats
Iavor S. Diatchki [Sun, 18 Mar 2012 22:26:16 +0000 (15:26 -0700)] 
Merge remote-tracking branch 'origin/master' into type-nats

7 years agoUpdate gitignore
David Terei [Wed, 14 Mar 2012 21:37:03 +0000 (14:37 -0700)] 
Update gitignore

7 years agoAdd strict versions of modifyIORef and atomicModifyIORef
Joey Adams [Sun, 11 Mar 2012 00:15:40 +0000 (19:15 -0500)] 
Add strict versions of modifyIORef and atomicModifyIORef

7 years agoMerge branch 'master' into type-nats
Iavor S. Diatchki [Wed, 14 Mar 2012 05:00:16 +0000 (22:00 -0700)] 
Merge branch 'master' into type-nats

7 years agoSealed writeChan with mask_ to prevent a theoretical bug
Joey Adams [Sun, 12 Feb 2012 21:08:07 +0000 (16:08 -0500)] 
Sealed writeChan with mask_ to prevent a theoretical bug

7 years agoAvoid making huge Rational's when reading Double/Float; fixes #5688
Ian Lynagh [Sun, 11 Mar 2012 12:31:25 +0000 (12:31 +0000)] 
Avoid making huge Rational's when reading Double/Float; fixes #5688

7 years agoCopy tests from GHC testsuite; part of #1161.
Paolo Capriotti [Fri, 9 Mar 2012 11:42:24 +0000 (11:42 +0000)] 
Copy tests from GHC testsuite; part of #1161.

7 years agoMake "100e12" not parse as an Integer; part of #5688
Ian Lynagh [Thu, 1 Mar 2012 14:05:36 +0000 (14:05 +0000)] 
Make "100e12" not parse as an Integer; part of #5688

The report says that it isn't meant to.

7 years agoAdd a readInteger001 test
Ian Lynagh [Thu, 1 Mar 2012 14:03:31 +0000 (14:03 +0000)] 
Add a readInteger001 test

7 years agoChange how NaN and Infinity are read by lex
Ian Lynagh [Thu, 1 Mar 2012 13:58:18 +0000 (13:58 +0000)] 
Change how NaN and Infinity are read by lex

They now get read as Ident's, and the Read Double/Float instances
(via convertFrac) handle that Ident specially.

7 years agoAdd a test for reading Doubles
Ian Lynagh [Thu, 1 Mar 2012 13:57:54 +0000 (13:57 +0000)] 
Add a test for reading Doubles

7 years agoRename lexNum test to lex001, and expand it
Ian Lynagh [Thu, 1 Mar 2012 13:42:25 +0000 (13:42 +0000)] 
Rename lexNum test to lex001, and expand it

7 years agoRefactor number lexing; part of #5688
Ian Lynagh [Thu, 1 Mar 2012 01:26:06 +0000 (01:26 +0000)] 
Refactor number lexing; part of #5688

This doesn't change the behaviour yet, but I think it's a step in the
right direction.

7 years agoRemove some redundant imports
Ian Lynagh [Wed, 29 Feb 2012 01:23:06 +0000 (01:23 +0000)] 
Remove some redundant imports

7 years agoMove chr's definition into a new GHC.Char
Ian Lynagh [Tue, 28 Feb 2012 23:59:35 +0000 (23:59 +0000)] 
Move chr's definition into a new GHC.Char

This eliminates a SOURCE import

7 years agoRemove some __HADDOCK__ CPP
Ian Lynagh [Tue, 28 Feb 2012 21:39:48 +0000 (21:39 +0000)] 
Remove some __HADDOCK__ CPP

I think it was all to work around problems in old versions of haddock.

7 years agoMove nocldstop from HsBase.h to HsUnix.h
Ian Lynagh [Sun, 26 Feb 2012 17:07:09 +0000 (17:07 +0000)] 
Move nocldstop from HsBase.h to HsUnix.h

7 years agoUse CAPI for lseek
Ian Lynagh [Sun, 26 Feb 2012 16:07:03 +0000 (16:07 +0000)] 
Use CAPI for lseek

7 years agoRemove another unused definition
Ian Lynagh [Sun, 26 Feb 2012 15:23:21 +0000 (15:23 +0000)] 
Remove another unused definition

7 years agoRemove some unused code
Ian Lynagh [Sun, 26 Feb 2012 15:19:19 +0000 (15:19 +0000)] 
Remove some unused code

7 years agoConvert some FFI bindings to use "value" imports
Ian Lynagh [Sun, 26 Feb 2012 13:52:26 +0000 (13:52 +0000)] 
Convert some FFI bindings to use "value" imports

7 years agoRemove an unsed definition in HsBase.h
Ian Lynagh [Wed, 22 Feb 2012 13:57:33 +0000 (13:57 +0000)] 
Remove an unsed definition in HsBase.h

Bytestring uses it, so I've moved it into that package.

7 years agoFix an FFI decl: it should have been using capi but was using ccall
Ian Lynagh [Wed, 22 Feb 2012 01:46:30 +0000 (01:46 +0000)] 
Fix an FFI decl: it should have been using capi but was using ccall

7 years agoChange CSigset into a (empty) datatype
Ian Lynagh [Wed, 22 Feb 2012 00:30:57 +0000 (00:30 +0000)] 
Change CSigset into a (empty) datatype

This is necessary now that we no longer allow CTYPE pragmas on type
synonyms.

7 years agoConvert some more declarations to use the CAPI
Ian Lynagh [Tue, 21 Feb 2012 18:33:22 +0000 (18:33 +0000)] 
Convert some more declarations to use the CAPI

7 years agoRedo the sigset capi changes
Ian Lynagh [Tue, 21 Feb 2012 17:20:21 +0000 (17:20 +0000)] 
Redo the sigset capi changes

Now that we have the CTYPE pragma we can do this in such a way that
it doesn't break the build on OS X.

7 years agoRemove Control.OldException
Ian Lynagh [Sat, 18 Feb 2012 15:23:30 +0000 (15:23 +0000)] 
Remove Control.OldException

7 years agoFix build on 32bit platforms
Ian Lynagh [Sat, 18 Feb 2012 14:08:40 +0000 (14:08 +0000)] 
Fix build on 32bit platforms

7 years agoUse the new unsigned quotRem primop
Ian Lynagh [Fri, 17 Feb 2012 22:47:35 +0000 (22:47 +0000)] 
Use the new unsigned quotRem primop

7 years agoMerge branch 'master' of http://darcs.haskell.org/packages/base
Simon Peyton Jones [Fri, 17 Feb 2012 14:03:00 +0000 (14:03 +0000)] 
Merge branch 'master' of darcs.haskell.org/packages/base

7 years agoEta expand unsafeCoerce and add a pointer to the Note
Simon Peyton Jones [Fri, 17 Feb 2012 14:02:48 +0000 (14:02 +0000)] 
Eta expand unsafeCoerce and add a pointer to the Note

7 years agoUse throwIO rather than throw where possible
Simon Peyton Jones [Fri, 17 Feb 2012 14:02:33 +0000 (14:02 +0000)] 
Use throwIO rather than throw where possible
This makes exceptions more predictable.

7 years agoAdd CTYPE pragmas for GHC types
Ian Lynagh [Thu, 16 Feb 2012 00:48:21 +0000 (00:48 +0000)] 
Add CTYPE pragmas for GHC types

7 years agoMerge branch 'master' of http://darcs.haskell.org/packages/base
Ian Lynagh [Wed, 15 Feb 2012 00:45:16 +0000 (00:45 +0000)] 
Merge branch 'master' of darcs.haskell.org/packages/base

7 years agoDefine a divModInt function that only does 1 division
Ian Lynagh [Sun, 29 Jan 2012 22:59:50 +0000 (22:59 +0000)] 
Define a divModInt function that only does 1 division

7 years agoFix documentation of minimal complete definition of Bits instances
Johan Tibell [Tue, 14 Feb 2012 19:49:21 +0000 (11:49 -0800)] 
Fix documentation of minimal complete definition of Bits instances

Added testBit, bit, and popCount to the required set.  They no longer
have default implementations as the Num constraint was removed from the
Bits class.

7 years agoUse the new quotRemInt# primop
Ian Lynagh [Sun, 29 Jan 2012 20:14:46 +0000 (20:14 +0000)] 
Use the new quotRemInt# primop

7 years agoFix bug in popCountDefault. Fixes #5872
Johan Tibell [Tue, 14 Feb 2012 17:38:19 +0000 (09:38 -0800)] 
Fix bug in popCountDefault. Fixes #5872

Also add an INLINABLE pragma so that the function can be specialized at
the call site.

7 years agoSystem.Environment: improve 'getEnv' doc to mention closest 'setEnv' we have ('System...
gwern [Sun, 27 Nov 2011 23:08:09 +0000 (18:08 -0500)] 
System.Environment: improve 'getEnv' doc to mention closest 'setEnv' we have ('System.Posix.putEnv')

7 years agoMerge remote-tracking branch 'origin/master' into type-nats
Iavor S. Diatchki [Sun, 12 Feb 2012 21:18:19 +0000 (13:18 -0800)] 
Merge remote-tracking branch 'origin/master' into type-nats

7 years agoBump base's version to match 7.4.1's
Ian Lynagh [Fri, 10 Feb 2012 18:32:06 +0000 (18:32 +0000)] 
Bump base's version to match 7.4.1's

7 years agoMove Text.Printf tests from testsuite; part of #1161
Ian Lynagh [Fri, 3 Feb 2012 23:29:57 +0000 (23:29 +0000)] 
Move Text.Printf tests from testsuite; part of #1161

7 years agonum009 now only fails on OS X i386, not OS X amd64
Ian Lynagh [Sun, 29 Jan 2012 19:15:33 +0000 (19:15 +0000)] 
num009 now only fails on OS X i386, not OS X amd64

7 years agoRename GHC.TypeNats to GHC.TypeList, cleanup, add type-level strings.
Iavor S. Diatchki [Wed, 25 Jan 2012 06:12:34 +0000 (22:12 -0800)] 
Rename GHC.TypeNats to GHC.TypeList, cleanup, add type-level strings.

7 years agoChange extension name to match current GHC head.
Iavor S. Diatchki [Wed, 25 Jan 2012 03:40:38 +0000 (19:40 -0800)] 
Change extension name to match current GHC head.

7 years agoMerge remote-tracking branch 'origin/master' into type-nats
Iavor S. Diatchki [Wed, 25 Jan 2012 03:27:15 +0000 (19:27 -0800)] 
Merge remote-tracking branch 'origin/master' into type-nats

7 years agoFoldable typeclass: make foldl' and foldr' class methods; fixes trac #5538
Ian Lynagh [Tue, 24 Jan 2012 21:42:58 +0000 (21:42 +0000)] 
Foldable typeclass: make foldl' and foldr' class methods; fixes trac #5538

7 years agoAdded missing Functor, Applicative, Alternative and MonadPlus instances Added Applica...
Bas van Dijk [Fri, 11 Nov 2011 17:47:24 +0000 (18:47 +0100)] 
Added missing Functor, Applicative, Alternative and MonadPlus instances Added Applicative and Alternative instances for ReadP and ReadPrec Added Functor, Applicative, Alternative and MonadPlust instances for ArrowMonadx

7 years agoExpand num009 to test more values, and add mingw32 output
Simon Marlow [Fri, 13 Jan 2012 11:09:24 +0000 (11:09 +0000)] 
Expand num009 to test more values, and add mingw32 output

This test checks that calling trig functions via the FFI gives the
same results as the Prelude versions.  But it uses an extreme value to
test: 1e20, and on Windows this gives slightly different results (for
unknown reasons).  However, using less extreme values gives reasonable
results, so I've added more values to the test to check that the
discrepancy is limited to the extreme - indeed it first goes wrong
around 1e19, values below that seem to be fine.

7 years agoUse sharing in the Alternative instance of Maybe
Bas van Dijk [Wed, 14 Dec 2011 11:24:38 +0000 (12:24 +0100)] 
Use sharing in the Alternative instance of Maybe

7 years agoRemove Num superclass of Bits Add and export bitDefault, testBitDefault and popCountD...
Bas van Dijk [Sat, 29 Oct 2011 01:33:08 +0000 (03:33 +0200)] 
Remove Num superclass of Bits Add and export bitDefault, testBitDefault and popCountDefault from Data.Bits.

7 years agoMoved the instances from Control.Monad.Instances to GHC.Base and Data.Either
Bas van Dijk [Wed, 7 Dec 2011 14:37:31 +0000 (15:37 +0100)] 
Moved the instances from Control.Monad.Instances to GHC.Base and Data.Either

7 years agoMerge remote-tracking branch 'origin/master' into type-nats
Iavor S. Diatchki [Sat, 7 Jan 2012 21:57:02 +0000 (13:57 -0800)] 
Merge remote-tracking branch 'origin/master' into type-nats

7 years agoAdd <> as an alias for mappend
Johan Tibell [Tue, 16 Aug 2011 09:40:34 +0000 (11:40 +0200)] 
Add <> as an alias for mappend

7 years agoRemoving the MonadGroup class. This is to reflect the removal of the default grouping...
George Giorgidze [Wed, 2 Nov 2011 22:46:01 +0000 (23:46 +0100)] 
Removing the MonadGroup class. This is to reflect the removal of the default grouping clause from the SQL-like comprehension notation ;

7 years agoExport setNumCapabilities
Simon Marlow [Tue, 3 Jan 2012 11:33:06 +0000 (11:33 +0000)] 
Export setNumCapabilities

I hadn't noticed that we already have getNumCapabilities here, so we
should also have setNumCapabilities.

7 years agoChange the representation of singletons from Integer to Word.
Iavor S. Diatchki [Fri, 30 Dec 2011 03:27:02 +0000 (19:27 -0800)] 
Change the representation of singletons from Integer to Word.

This is---probably---just temporary.  For details, take a look at
comment on case "EvInteger" in function "dsEvTerm" in "deSugar/DsBinds"

7 years agoRemove all but the basics from the GHC module.
Iavor S. Diatchki [Fri, 30 Dec 2011 01:57:29 +0000 (17:57 -0800)] 
Remove all but the basics from the GHC module.

In this way we can work on the programmer library without having to
recompile all libraries.

7 years agoMerge branch 'master' into type-nats
Iavor S. Diatchki [Thu, 29 Dec 2011 22:36:08 +0000 (14:36 -0800)] 
Merge branch 'master' into type-nats

7 years agoExport "readEither" and add "readMaybe".
Iavor S. Diatchki [Thu, 22 Dec 2011 23:43:31 +0000 (15:43 -0800)] 
Export "readEither" and add "readMaybe".

This commit implements the change discussed in the following
thread on the Haskell libraries list:

http://www.haskell.org/pipermail/libraries/2011-December/thread.html#17290

NOTE:  This only implements the change for GHC, but the change
makes sense for Hugs too... Perhaps we should simply re-implement 'readEither'
in terms of 'reads'?

7 years agoRe-export Constraint from GHC.Exts
Jose Pedro Magalhaes [Thu, 22 Dec 2011 14:10:30 +0000 (14:10 +0000)] 
Re-export Constraint from GHC.Exts

7 years agoupdate documentation for getNumCapabilities and setNumCapabilities
Simon Marlow [Mon, 19 Dec 2011 14:21:27 +0000 (14:21 +0000)] 
update documentation for getNumCapabilities and setNumCapabilities