Rationalise the use of limits.h (now required).

git-svn-id: svn://daper.net/moc/trunk@2587 910807d9-36e0-0310-a014-e9ea483e2ba4
Rationalise the use of stdint.h (now required) and inttypes.h.

git-svn-id: svn://daper.net/moc/trunk@2588 910807d9-36e0-0310-a014-e9ea483e2ba4
Code cleaning prior to further work.

git-svn-id: svn://daper.net/moc/trunk@2589 910807d9-36e0-0310-a014-e9ea483e2ba4
Replace user-defined type with standard casting.

Amends: r2257

git-svn-id: svn://daper.net/moc/trunk@2590 910807d9-36e0-0310-a014-e9ea483e2ba4
Use existing ARRAY_SIZE macro consistantly.

git-svn-id: svn://daper.net/moc/trunk@2591 910807d9-36e0-0310-a014-e9ea483e2ba4
Use standard exit code macros consistantly.

git-svn-id: svn://daper.net/moc/trunk@2592 910807d9-36e0-0310-a014-e9ea483e2ba4
Ensure huge file lengths and offsets are handled correctly.

git-svn-id: svn://daper.net/moc/trunk@2593 910807d9-36e0-0310-a014-e9ea483e2ba4
Limit modules which cannot handle huge files.

git-svn-id: svn://daper.net/moc/trunk@2594 910807d9-36e0-0310-a014-e9ea483e2ba4