Deleted Added
full compact
command.c (221715) command.c (222906)
1/* $FreeBSD: head/contrib/less/command.c 221715 2011-05-09 21:51:59Z delphij $ */
1/* $FreeBSD: head/contrib/less/command.c 222906 2011-06-09 22:52:57Z delphij $ */
2/*
3 * Copyright (C) 1984-2011 Mark Nudelman
4 *
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Less License, as specified in the README file.
7 *
8 * For more information about less, or for information on how to
9 * contact the author, see the README file.

--- 287 unchanged lines hidden (view full) ---

297 return (c == erase_char || c == erase2_char || c == kill_char);
298}
299
300/*
301 * Handle the first char of an option (after the initial dash).
302 */
303 static int
304mca_opt_first_char(c)
2/*
3 * Copyright (C) 1984-2011 Mark Nudelman
4 *
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Less License, as specified in the README file.
7 *
8 * For more information about less, or for information on how to
9 * contact the author, see the README file.

--- 287 unchanged lines hidden (view full) ---

297 return (c == erase_char || c == erase2_char || c == kill_char);
298}
299
300/*
301 * Handle the first char of an option (after the initial dash).
302 */
303 static int
304mca_opt_first_char(c)
305 int c;
305 int c;
306{
307 int flag = (optflag & ~OPT_NO_PROMPT);
308 if (flag == OPT_NO_TOGGLE)
309 {
310 switch (c)
311 {
312 case '_':
313 /* "__" = long option name. */

--- 527 unchanged lines hidden (view full) ---

841ungetcc(c)
842 int c;
843{
844 struct ungot *ug = (struct ungot *) ecalloc(1, sizeof(struct ungot));
845
846 ug->ug_char = c;
847 ug->ug_next = ungot;
848 ungot = ug;
306{
307 int flag = (optflag & ~OPT_NO_PROMPT);
308 if (flag == OPT_NO_TOGGLE)
309 {
310 switch (c)
311 {
312 case '_':
313 /* "__" = long option name. */

--- 527 unchanged lines hidden (view full) ---

841ungetcc(c)
842 int c;
843{
844 struct ungot *ug = (struct ungot *) ecalloc(1, sizeof(struct ungot));
845
846 ug->ug_char = c;
847 ug->ug_next = ungot;
848 ungot = ug;
849 unget_end = 0;
849}
850
851/*
852 * Unget a whole string of command characters.
853 * The next sequence of getcc()'s will return this string.
854 */
855 public void
856ungetsc(s)

--- 912 unchanged lines hidden ---
850}
851
852/*
853 * Unget a whole string of command characters.
854 * The next sequence of getcc()'s will return this string.
855 */
856 public void
857ungetsc(s)

--- 912 unchanged lines hidden ---