map.c (276881) | map.c (283084) |
---|---|
1/* $NetBSD: map.c,v 1.34 2014/07/06 18:15:34 christos Exp $ */ | 1/* $NetBSD: map.c,v 1.35 2015/05/14 10:44:15 christos Exp $ */ |
2 3/*- 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Christos Zoulas of Cornell University. 9 * --- 22 unchanged lines hidden (view full) --- 32 * SUCH DAMAGE. 33 */ 34 35#include "config.h" 36#if !defined(lint) && !defined(SCCSID) 37#if 0 38static char sccsid[] = "@(#)map.c 8.1 (Berkeley) 6/4/93"; 39#else | 2 3/*- 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Christos Zoulas of Cornell University. 9 * --- 22 unchanged lines hidden (view full) --- 32 * SUCH DAMAGE. 33 */ 34 35#include "config.h" 36#if !defined(lint) && !defined(SCCSID) 37#if 0 38static char sccsid[] = "@(#)map.c 8.1 (Berkeley) 6/4/93"; 39#else |
40__RCSID("$NetBSD: map.c,v 1.34 2014/07/06 18:15:34 christos Exp $"); | 40__RCSID("$NetBSD: map.c,v 1.35 2015/05/14 10:44:15 christos Exp $"); |
41#endif 42#endif /* not lint && not SCCSID */ 43#include <sys/cdefs.h> | 41#endif 42#endif /* not lint && not SCCSID */ 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/lib/libedit/map.c 276881 2015-01-09 07:40:56Z bapt $"); | 44__FBSDID("$FreeBSD: head/lib/libedit/map.c 283084 2015-05-18 22:03:05Z bapt $"); |
45 46/* 47 * map.c: Editor function definitions 48 */ 49#include <stdlib.h> 50#include "el.h" 51 52private void map_print_key(EditLine *, el_action_t *, const Char *); --- 1244 unchanged lines hidden (view full) --- 1297 ep = &el->el_map.help[el->el_map.nfunc]; 1298 for (bp = el->el_map.help; bp < ep; bp++) 1299 (void) fprintf(el->el_outfile, 1300 "" FSTR "\n\t" FSTR "\n", 1301 bp->name, bp->description); 1302 return 0; 1303 default: 1304 (void) fprintf(el->el_errfile, | 45 46/* 47 * map.c: Editor function definitions 48 */ 49#include <stdlib.h> 50#include "el.h" 51 52private void map_print_key(EditLine *, el_action_t *, const Char *); --- 1244 unchanged lines hidden (view full) --- 1297 ep = &el->el_map.help[el->el_map.nfunc]; 1298 for (bp = el->el_map.help; bp < ep; bp++) 1299 (void) fprintf(el->el_outfile, 1300 "" FSTR "\n\t" FSTR "\n", 1301 bp->name, bp->description); 1302 return 0; 1303 default: 1304 (void) fprintf(el->el_errfile, |
1305 "" FSTR ": Invalid switch `%c'.\n", 1306 argv[0], p[1]); | 1305 "" FSTR ": Invalid switch `" FCHAR "'.\n", 1306 argv[0], (Int)p[1]); |
1307 } 1308 else 1309 break; 1310 1311 if (argv[argc] == NULL) { 1312 map_print_all_keys(el); 1313 return 0; 1314 } --- 110 unchanged lines hidden --- | 1307 } 1308 else 1309 break; 1310 1311 if (argv[argc] == NULL) { 1312 map_print_all_keys(el); 1313 return 0; 1314 } --- 110 unchanged lines hidden --- |