1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/bin/ed
Mike Barcroft a4616748ab o Correctly define rcsid.
o Add consts where appropriate.
o Rename some variables that were shadowing global declarations.
o Remove register storage-classes.
o Make errmsg a const, so we can just set error messages instead
  of using sprintf/strcpy.
o Set WARNS=2

Reviewed by:	bde, des
2001-08-06 22:01:31 +00:00
..
test
buf.c o Correctly define rcsid. 2001-08-06 22:01:31 +00:00
cbc.c o Correctly define rcsid. 2001-08-06 22:01:31 +00:00
ed.1 Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
ed.h o Correctly define rcsid. 2001-08-06 22:01:31 +00:00
glbl.c o Correctly define rcsid. 2001-08-06 22:01:31 +00:00
io.c o Correctly define rcsid. 2001-08-06 22:01:31 +00:00
main.c o Correctly define rcsid. 2001-08-06 22:01:31 +00:00
Makefile o Correctly define rcsid. 2001-08-06 22:01:31 +00:00
POSIX Locale support was added by ache long ago. 2000-07-17 10:40:48 +00:00
re.c o Correctly define rcsid. 2001-08-06 22:01:31 +00:00
README
sub.c o Correctly define rcsid. 2001-08-06 22:01:31 +00:00
undo.c o Correctly define rcsid. 2001-08-06 22:01:31 +00:00

$FreeBSD$

ed is an 8-bit-clean, POSIX-compliant line editor.  It should work with
any regular expression package that conforms to the POSIX interface
standard, such as GNU regex(3).

If reliable signals are supported (e.g., POSIX sigaction(2)), it should
compile with little trouble.  Otherwise, the macros SPL1() and SPL0()
should be redefined to disable interrupts.

The following compiler directives are recognized:
DES		- to add encryption support (requires crypt(3))
NO_REALLOC_NULL	- if realloc(3) does not accept a NULL pointer
BACKWARDS	- for backwards compatibility
NEED_INSQUE	- if insque(3) is missing

The file `POSIX' describes extensions to and deviations from the POSIX
standard.

The ./test directory contains regression tests for ed. The README
file in that directory explains how to run these.

For a description of the ed algorithm, see Kernighan and Plauger's book
"Software Tools in Pascal," Addison-Wesley, 1981.