Commit Graph

133 Commits

Author SHA1 Message Date
thorpej e766b0b752 Back out the incorrect change in revision 1.11 of main.c, and actually
fix the problem it meant to address by putting extern declarations into
ed.h.
2000-04-04 17:07:29 +00:00
mjl 68fdf492b5 Correct data type mismatch of "rows" with extern declaration. Possible
LP64 issue (long vs int). Fixes OpenBSD PR/1167 :)
2000-04-01 20:44:43 +00:00
kristerw 3d173ac8f8 Spelling ("occurences" -> "occurrences") 1999-11-18 19:16:34 +00:00
mrg 51a96a002f optionally include CRYPTOPATH Makefile.frag files. 1999-07-20 09:35:18 +00:00
thorpej a3281f7249 Use bsd.crypto.mk. 1999-07-12 22:04:09 +00:00
christos 87defac18b - add termios.h for winsize
- unsigned cast for is*()
1998-11-04 13:45:57 +00:00
christos 0cc47b55b2 add braces 1998-11-04 13:41:32 +00:00
christos 21ebffd0f8 fix sys_errlist define to work with solaris 1998-11-04 13:39:08 +00:00
wsanchez 4fcbbc7043 Apple like limits.h, too. 1998-10-13 17:04:15 +00:00
thorpej 341bd18b4a Add some braces to make egcs happy. 1998-08-19 01:31:46 +00:00
mycroft ee9e50eacb Be more retentive about use of NOTREACHED and noreturn. 1998-07-28 11:41:40 +00:00
mycroft a36f9be148 Delint. 1998-07-28 05:46:20 +00:00
mycroft 9dc385beb1 Delint. 1998-07-28 05:31:22 +00:00
fair 09569bd272 makewhatis doesn't quite handle nroff comments (.\") correctly,
so let's accomodate it by moving the stuff in "NAME" section around a bit.
1998-04-09 08:37:12 +00:00
perry 75a6e03535 change includes to fix compiler warning 1998-02-03 04:55:59 +00:00
christos e230a48b57 CFLAGS->CPPFLAGS 1997-10-10 19:47:50 +00:00
lukem 70c59f6d77 getopt returns -1 not EOF 1997-09-14 07:22:27 +00:00
mikel 3bf516f09b kill extra space 1997-08-03 04:27:37 +00:00
augustss 45bde16e1a Fix paren typo so `ed' can edit files again. 1997-07-23 23:39:19 +00:00
christos 23edbe3557 Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.inc
now that all /bin has been cleaned.
1997-07-20 22:36:20 +00:00
christos 18078c1896 Avoid the last warnings and add WARNS=1 1997-07-20 17:22:15 +00:00
thorpej 8b7ade1ab8 - Use __RCSID() and __COPYRIGHT().
- Fix (all but two) compiler warnings.
1997-07-20 06:35:35 +00:00
lukem b7b791e1a0 use mkstemp() instead of mktemp() 1997-03-22 03:02:17 +00:00
tls 3811362c9a kill use of register 1997-01-09 16:31:05 +00:00
lukem 5d37ffa7eb fix the the typos 1996-11-10 23:58:22 +00:00
cgd d7290b7687 clean up RCS Ids slightly, etc. 1995-04-23 10:07:18 +00:00
cgd 49f0ad8601 convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
mycroft 4c34be6b52 Clean up deleted files. 1995-03-01 00:00:00 +00:00
mycroft 9154deaefa Stay on the correct line at the end of a substitute command. From Andrew Moore. 1995-01-15 06:18:29 +00:00
cgd f04c743d2d be careful with pointer types. 1994-12-23 13:18:20 +00:00
alm 1f6f4700ad Renamed insque 1994-03-23 04:22:08 +00:00
alm db657f14a7 Use umask 077 to open buffer file 1994-03-23 04:04:19 +00:00
cgd 112ab477b7 the insque and remque in libcompat don't seem to work (!) 1994-02-20 09:49:58 +00:00
alm 0b4f3c5840 insque is in libcompat 1994-02-20 07:33:14 +00:00
mycroft f60ef8ffaf Clean up deleted files. 1994-02-20 06:57:23 +00:00
alm 59ddb06db0 `s3' applies the last substitution to the 3rd (or nth) match.
Split up the code to several files.
1994-02-20 06:57:15 +00:00
mycroft d2656eedba Clean up deleted files. 1994-02-20 06:56:39 +00:00
alm 1357f1551d `s3' applies the last substitution to the 3rd (or nth) match.
Split up the code to several files.
1994-02-20 06:56:16 +00:00
jtc e04c8e0705 Fix spelling errors. 1994-01-11 02:10:48 +00:00
davidb 3a435f99f9 Changed to use make's new .OBJDIR 1993-12-28 10:59:05 +00:00
cgd 0c17abe5e2 comment out references to red; we don't install it 1993-12-10 16:14:52 +00:00
cgd be41cadc54 use ./ before invoked programs. this makefile should really be made ro-safe 1993-12-10 09:42:13 +00:00
cgd 421e7320f6 delete definition of sys_errlist; our headers supply it 1993-12-04 03:01:28 +00:00
pk 5d726082c5 __386BSD__ ==> __NetBSD__ 1993-12-01 13:48:47 +00:00
alm 9380925b08 Added a line-addressing test so this isn't overlooked again.
Added BACKWARDS directive to Makefile for compatibility.
Completely changed the name space as per FSF's request.
Fixed a line-addressing bug introduced by previous `fix', i.e.,
space preceding a digit acts a plus (+) operator, as in `1 1' == `2',
and a plus operator by itself acts as +1, but a space by itself
should not equal a plus operator, i.e., `1 ' != `1+' == `2'.
1993-11-23 04:41:44 +00:00
mycroft 77816c859a Clean up deleted files. 1993-11-12 10:51:12 +00:00
alm 82f8524fd0 rename !* -> bang* and \n* -> nl* 1993-11-12 10:50:14 +00:00
alm ba4d688de2 fix line addressing so that 1,2, == 2,2 (as per SunOS ed) not 1,2
add global-active routines to replace some bad hacks
remove obsolescent Addison-Wesley copyrights
1993-11-12 10:48:43 +00:00
jtc 5ce3d664fb Use new POSIX.2 compatible regex routines in C library instead of -lgnuregex. 1993-11-11 01:29:52 +00:00
cgd 0c891dcaf9 don't hard-link to 'red' -- that's not a standard BSD thang. If people
want it, they can make the link themselves.
1993-10-28 05:36:31 +00:00
cgd 20a8a9b665 always include libcrypt 1993-10-07 02:15:25 +00:00
alm c91a4017da Repeating a search requires only `/' (or `?'), not `//' (or `??')
But `s/' is still invalid, use `s//' instead.
If first regex is invalid, regex pointer is now set to NULL so that repeating
the search correctly reports "No previous pattern".
1993-08-30 02:20:18 +00:00
jtc eb2bd16e91 Make paths explicit to handle case where . is not in PATH.
Locate ed executible wrt obj/noobj.
1993-08-02 20:43:57 +00:00
mycroft 210cab4541 Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:18:41 +00:00
mycroft 11ad3ef4f1 Makefile 1993-08-02 17:15:26 +00:00
mycroft 8542364e07 Add RCS identifiers. 1993-08-01 18:49:50 +00:00
cgd 5158757c0f incorporate changes from 0-9-base to 0-9-ALPHA 1993-07-28 00:40:12 +00:00
alm 79b13f93c3 corrected return type 1993-07-02 10:05:24 +00:00
mycroft 222aca8e41 Clean up deleted files. 1993-07-02 10:02:52 +00:00
alm aef94df1e8 fixed undo within a global command (would corrupt the buffer) 1993-07-02 10:02:26 +00:00
alm eca46021bb fixed regex initialization
added more support for BACKWARDS option
1993-06-16 07:36:51 +00:00
alm a723dd79c7 Added more tests... 1993-05-27 01:28:27 +00:00
alm f7f6e6ffd5 Added a restricted mode in the form of a new command: red 1993-05-27 01:27:46 +00:00
alm 2d931fb438 fixed regex bug s/[[:digit:][]// incorrectly reported unbalanced brackets 1993-05-20 03:15:26 +00:00
alm fc782b3ff5 Fixed regex bug: a character class of the form [IC[],
where IC is of the form [::] , [..], or [==], would incorrectly
report an error.
Fixed input mode bug: a literal ^J(i.e., ^V^J) would discard text
following it.  Now, a literal ^J is treated as an ordinary ^J - i.e, it
splits a line in two.
1993-05-12 08:22:03 +00:00
alm 2621a68caf added support for lines of arbitrary length
added support for 8-bit data, including NULs
1993-05-08 10:49:52 +00:00
mycroft 1ad12030cf Use global value of CFLAGS for optimization. 1993-05-01 15:19:45 +00:00
cgd f25e2eb300 386BSD -> NetBSD 1993-04-28 05:19:50 +00:00
alm 17714ca3e0 rearranged headers to compile cleanly
minor corrections in man page
1993-04-28 03:37:34 +00:00
alm 393cacb900 added more tests 1993-04-23 02:09:38 +00:00
mycroft efcd17acc4 Clean up deleted files. 1993-04-23 02:09:22 +00:00
alm 20d732999d added man page (draft)
fixed `!' command
final code cleanup
1993-04-23 02:08:48 +00:00
alm 9b18e2903e Removed getrange() hack from undo() 1993-04-16 08:38:44 +00:00
alm f30a0860be added an efficient and relatively clean move (`m' command)
added ustack checking
1993-04-15 04:58:32 +00:00
alm d95358e7cc cleaned up docs 1993-04-14 12:22:59 +00:00
alm b9b97259e6 implemented line marks as pointers
marks to lines that are moved, deleted or otherwise changed are cleared
undo restores cleared marks
added strerror diagnostics
1993-04-14 12:22:14 +00:00
alm f428f0420e added tests for the `k' and `w' commands 1993-04-14 12:05:05 +00:00
alm 83ab6f7f6f cleaned up mkscripts.sh and ckscripts.sh 1993-04-13 09:29:21 +00:00
alm b1d3887a30 Added tests: \n[12].[drt] [ik]3.err 1993-04-13 08:35:55 +00:00
cgd cd30aed2e6 ed core dumped on blank lines. 1993-04-10 12:47:09 +00:00
mycroft d99209df69 Clean up deleted files. 1993-04-10 11:50:01 +00:00
cgd 336e165c02 updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
cgd 9b082a69f0 added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00