Commit Graph

241 Commits

Author SHA1 Message Date
tron e9c2e92b36 Include "sys/ttydefaults.h" to get standard definition of "CTRL" macro
which avoids clash with custom one.
2003-09-15 11:33:33 +00:00
christos 2e7dfdfa24 kludge around CTRL redef. 2003-09-15 01:29:36 +00:00
christos 7fb5c922f1 Match the stupid function pointer declarations with actual readline's 4.0.
This is gross.
2003-09-14 22:15:23 +00:00
christos 7bb332f70b make this compile. 2003-09-14 21:55:39 +00:00
christos 705c04f0bc Avoid pre-ansi warning. 2003-09-14 21:55:19 +00:00
christos 166e18a7fd - provide enough hooks to compile gdb-5.3
- fix el_get(e, EL_TERMINAL, (char **))
2003-09-14 21:48:54 +00:00
mycroft ec5dc2be24 Fix something that's been annoying me for a while...
Pull in <fcntl.h>, so that the fcntl #defines are present, and we build in the
automatic reset of non-blocking mode, rather than beeping like mad.
2003-09-13 04:18:00 +00:00
agc eb7c1594f1 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
lukem 64b5a0fe7b Add INCSYMLINKS to <bsd.inc.mk> and <bsd.kinc.mk>, and use that instead of
SYMLINKS to install symlinked header files.  INCSYMLINKS are installed with
'make includes'.  This avoids using SYMLINKS and hacks with the 'linkinstall'
target in <bsd.links.mk>, as linksinstall occurs in 'make install' and hacks
to get it to occur in 'make includes' weren't robust, as seen in lib/libdes.

Yet more improvements to bsd.README.
2003-08-03 09:23:14 +00:00
lukem a93ea220fc Rework how dependency generation is performed:
* DPSRCS contains extra dependencies, but is _NOT_ added to CLEANFILES.
  This is a change of behaviour.  If a Makefile wants the clean semantics
  it must specifically append to CLEANFILES.
  Resolves PR toolchain/5204.

* To recap: .d (depend) files are generated for all files in SRCS and DPSRCS
  that have a suffix of: .c .m .s .S .C .cc .cpp .cxx

* If YHEADER is set, automatically add the .y->.h to DPSRCS & CLEANFILES

* Ensure that ${OBJS} ${POBJS} ${LOBJS} ${SOBJS} *.d  depend upon ${DPSRCS}

* Deprecate the (short lived) DEPENDSRCS


Update the various Makefiles to these new semantics; generally either
adding to CLEANFILES (because DPSRCS doesn't do that anymore), or replacing
specific .o dependencies with DPSRCS entries.

Tested with "make -j 8 distribution" and "make distribution".
2003-08-01 17:03:41 +00:00
lukem 7b3a8b8486 tweak this unconventional (some might say "baroque") Makefile to work
with the new <bsd.dep.mk> *.d semantics.
fixes problems highlighted by Martin Husemann <martin@>
2003-07-31 12:46:00 +00:00
wiz 19aedbe869 Bump date for last. 2003-07-16 11:54:44 +00:00
jeremy be8ce1d30b Documented the return values from el_get(). 2003-07-14 22:36:22 +00:00
wiz a8f1dff65a Add Ns. 2003-06-27 18:57:09 +00:00
christos 96759472a4 provide a definition for __attribute__ 2003-06-19 16:19:42 +00:00
christos 9b8791db6c From michael@moria.de:
Fix realloc case where we could be running out of space if too many matches.
2003-06-19 16:04:57 +00:00
christos 839ca00b3c From michael@moria.de:
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.
2003-06-19 15:55:05 +00:00
wiz 4ed8aa82ed Use Aq Pa instead of Fd \*[Lt]...\*[Gt]. From jmc@openbsd. 2003-06-06 13:33:17 +00:00
matt 362ac6119e Only return CC_EOF if ^D (VEOF) was the only thing on the line. Otherwise
beep and don't do anything else.  This mimics the behavor of ^D outside in
normal terminal mode.  (^D in vi scrolls forwards and as such isn't
appropriate to emulation)
2003-06-04 20:14:05 +00:00
wiz f30ce359ce setup -> set up, from jmc@openbsd. 2003-05-14 07:24:21 +00:00
christos 23e52df103 add a missing dependency (John Gordon) 2003-05-08 13:22:05 +00:00
christos 3a7857f16d Use ${HOST_SH} 2003-05-08 13:20:44 +00:00
wiz 472351e13d Use
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
perry 702861031b em-gosmacs-traspose->em-gosmacs-transpose (Igor Sobrado, PR misc/19909) 2003-03-31 16:52:42 +00:00
wiz 0acfa3bb9e Consistently spell occurrence with two rs. 2003-03-29 22:48:37 +00:00
christos 80a839beda don't use the path for awk 2003-03-10 21:21:10 +00:00
christos 687b5d51e3 s/u_int32_t/unsigned int/ 2003-03-10 21:18:49 +00:00
dsl 25456aecdb Put the __weak_extern() back inside vi_alias, but after the extern for
get_alias_text().
2003-03-10 11:09:25 +00:00
he d5428a2906 Move the __weak_extern() (ifdef'ed) outside of the vi_alias()
function, so that this compiles again.
2003-03-10 09:55:10 +00:00
christos 1d6595e599 null is not 0 2003-03-10 01:14:54 +00:00
christos 2ffae6453d if no __weak_extern, don't even try to do vi_alias. 2003-03-10 01:14:07 +00:00
christos 61c24e2c2a fix uninitialized variable.
grr, I want gcc-3.3
2003-03-10 01:05:12 +00:00
christos 5f1f221c24 sig_t is non portable 2003-03-10 00:58:05 +00:00
christos 23dbd749a2 - include cdefs.h early in the game
- ifdef notdef the sunos stuff
- no need for sig_t
2003-03-10 00:57:38 +00:00
christos bdc91aaf9a include alloca.h for systems that need it. 2003-03-10 00:56:38 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz 831ba492c3 Replace -1 with \-1 for PostScript output; drop a trailing space and fix two typos. 2003-01-21 23:00:56 +00:00
christos f24857bf36 Add a uniquefier for the history function. 2003-01-21 18:40:23 +00:00
christos 98e93eb66e fix directory descriptor leak [from michael at moria dot de] 2003-01-21 17:41:38 +00:00
christos 4a97685c19 Fix problem with previous patches that broke vi history.
- c_gets() was usually returning a length, but sometimes
  one of the CC_xxx values (which are small +ve integers)!
- fixed c_gets() by putting a ' ' under the cursor.
From David Laight.
2002-11-20 16:50:08 +00:00
christos d10066b927 de-lint 2002-11-15 14:33:53 +00:00
christos 39f224af48 PR/18995: David Laight: libedit fixes for posix conformant sh
The posix 'sh' specification defines vi-mode editing quite tightly.
The netbsd libedit code (used by sh to do this) was missing several
features, there were also minor errors in others.

Compare netbsd sh to the definition available from:
http://www.opengroup.org/onlinepubs/007904975/utilities/sh.html
In particular the following were not supported:
	U - undo all changes to line
	| - goto column
	Y - yank to end of line
	y - yank
	# - comment out current line
	@ - take input from shell alias [1]
	G - goto numbered line in history buffer
	v - edit history line with vi
	_ - append word from last input line
	. - redo last command
Other minor changes have also been made.

[1] This needs the shell to define an appropriate routine to
return the text of the alias.  There is no requirement that
such a function exist.
2002-11-15 14:32:32 +00:00
thorpej f53bc0b607 Fix signed/unsigned comparison warnings. 2002-11-12 00:01:21 +00:00
thorpej aa27d116a6 Avoid strict alias warning. 2002-11-12 00:00:23 +00:00
christos 905b699ab7 support for % command [matching parens/brackets/braces] on vi modes.
From David Laight, thanks!
2002-10-31 02:01:46 +00:00
christos 05e3eaeb34 remove unused variables. 2002-10-27 21:43:35 +00:00
christos a17c7fe4a6 vi mode and memory fixes from david laight. 2002-10-27 21:41:50 +00:00
christos e6ee03013b don't crash in memory shortage conditions. 2002-10-27 20:24:28 +00:00
christos 8572d89c2c PR/17954: SAITOH Masanobu: since we have opost and onlcr set, we don't need
to output \r to go to the end of line; \n is enough. From David Laight.
2002-10-27 20:04:36 +00:00
christos 4a964eaf87 write the vis(3) converted string into the file, not the original one.
Noted by Tim Robbins. Hi luke!
2002-10-13 17:15:53 +00:00