home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
programming
/
indent
/
indentsrc
/
ReadMe
< prev
Wrap
Text File
|
1995-11-25
|
3KB
|
75 lines
Indent
------
RISC OS version 1.00
--------------------
This is a RISC OS port of indent, a UNIX utility to automatically format C
source code. For details of its use refer to the accompanying file 'Manual',
which is a copy of the UNIX manual page. (Manual/1 is the original manual page
before it was passed through troff.) As indent has been compiled using UnixLib,
the .indent.pro file referred to in 'Manual' becomes /ndent/pro under RISC OS.
Although it appears to function correctly this program has not been extensively
tested. You use it at your own risk and I advise you to keep a copy of any
source code you attempt to format using it. If you encounter any bugs which you
believe are RISC OS specific I will attempt to correct them but I cannot
promise anything.
Changes to the source code
--------------------------
Relatively few changes to the source code were required. All the changes are
commented with /* SF: <comment> */ and, with one exception, are conditionally
compiled depending on whether or not __riscos is defined.
The exception is h.indntglobs. None of the variables defined in this file were
prefixed by extern and the linker gave errors when trying to link the object
code. Having added the prefixes, a different error was produced because the
variables were no longer defined anywhere. To avoid this a version of
h.indntglobs without the extern prefixes added has been renamed to c.indntglobs
and is compiled and linked along with the rest of the source code, providing a
single definition of each variable.
I think this is correct but I am not sure as my knowledge of the C rules for
external variables is imperfect. Any advice would be appreciated.
Contacting me
-------------
My e-mail address (valid until June 1997 at least) is sf4000@bris.ac.uk.
Alternatively, write to:
Steven Flintham
6 Laythorpe Avenue
Skegness
Lincolnshire
PE25 3BX
If you want a reply you must enclose a stamped self-addressed envelope.
Credits
-------
Indent was compiled using Norcroft C 3.1B, UnixLib 3.6e and drlink 0.27.
Bernard Jungen's 'Cruncher' 1.00 was used to reduce the size of the executable.
I did not write this software - it was developed by the University of
California, Berkeley, the University of Illinois, Urbana, and Sun Microsystems,
Inc.
Distribution and use
--------------------
The same conditions for distribution and use apply as for the original UNIX
version. See the file Notice for more information. In particular, please note
that THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Trademarks
----------
UNIX is a trademark of AT & T, Bell Laboratories.