summaryrefslogtreecommitdiff
path: root/usr.bin/mg/help.c
AgeCommit message (Collapse)Author
2002-06-21fix bad usage of strlcpy()'s return value. (made pointers pointVincent Labrecque
beyond the boundaries of buffers) ok deraadt@
2002-03-16 Make these special buffers readonly by default. ok art@Vincent Labrecque
2002-03-11 * Move to ANSI function definitions.Vincent Labrecque
* Add a whole lot of consts where I thought it made sense no ok, but no objections either...
2001-11-25snprintf makes me happyTheo de Raadt
2001-05-24Break out function -> name mappings to an own file.Artur Grabowski
Add a possibility to dynamically extend the function table.
2001-05-24Give the arguments in the right order to keyname.Artur Grabowski
2001-05-24spacesMichael Shalayeff
2001-05-23cinfo is const, keyname() and findbind() take buffer size to use strlcpy vs ↵Michael Shalayeff
cpy+len
2001-05-23remove VOID. We're way beyond the point where this could build with anArtur Grabowski
ancient compiler.
2001-05-23Use 'fundamental_map' where 'map_table[0].p_map' or 'name_map("fundamental")'Artur Grabowski
were used.
2001-05-23Simplify a lot of code in the help functions.Artur Grabowski
It might be a bit more cpu-intensive now, but it shrinks the code a lot.
2001-05-23When a key is bound to selfinsert, it shouldn't be considered to be boundArtur Grabowski
to anything.
2001-05-23Add an argument to doscan which is a pointer to a KEYMAP pointer.Artur Grabowski
If that argument is not NULL, we set it to the k_prefmap of the pressed key if there is one. This is what most of the users of doscan did anyway, but they did it through leaked global state.
2001-05-23Get rid of 'prefix' and use NULL instead.Artur Grabowski
2001-01-29$OpenBSD$Niklas Hallqvist
2000-09-01More -Wall anmd KNF, from op2@tomahawk.SQUiSH.orgTodd C. Miller
2000-04-13The start of KNF + -Wall. The code has been run through indent butTodd C. Miller
needs hand fixup. I stopped at keymap.c...
2000-02-25initial import of mg2aTheo de Raadt