db_input.c (90591) | db_input.c (92756) |
---|---|
1/* 2 * Mach Operating System 3 * Copyright (c) 1991,1990 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 9 unchanged lines hidden (view full) --- 18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 19 * School of Computer Science 20 * Carnegie Mellon University 21 * Pittsburgh PA 15213-3890 22 * 23 * any improvements or extensions that they make and grant Carnegie the 24 * rights to redistribute these changes. 25 * | 1/* 2 * Mach Operating System 3 * Copyright (c) 1991,1990 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 9 unchanged lines hidden (view full) --- 18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 19 * School of Computer Science 20 * Carnegie Mellon University 21 * Pittsburgh PA 15213-3890 22 * 23 * any improvements or extensions that they make and grant Carnegie the 24 * rights to redistribute these changes. 25 * |
26 * $FreeBSD: head/sys/ddb/db_input.c 90591 2002-02-12 23:38:40Z yar $ | 26 * $FreeBSD: head/sys/ddb/db_input.c 92756 2002-03-20 05:14:42Z alfred $ |
27 */ 28 29/* 30 * Author: David B. Golub, Carnegie Mellon University 31 * Date: 7/90 32 */ 33 34#include <sys/param.h> --- 23 unchanged lines hidden (view full) --- 58static char db_lhistory[2048]; 59static int db_lhistlsize, db_lhistidx, db_lhistcur; 60static int db_lhist_nlines; 61 62#define CTRL(c) ((c) & 0x1f) 63#define BLANK ' ' 64#define BACKUP '\b' 65 | 27 */ 28 29/* 30 * Author: David B. Golub, Carnegie Mellon University 31 * Date: 7/90 32 */ 33 34#include <sys/param.h> --- 23 unchanged lines hidden (view full) --- 58static char db_lhistory[2048]; 59static int db_lhistlsize, db_lhistidx, db_lhistcur; 60static int db_lhist_nlines; 61 62#define CTRL(c) ((c) & 0x1f) 63#define BLANK ' ' 64#define BACKUP '\b' 65 |
66static int cnmaygetc __P((void)); 67static void db_delete __P((int n, int bwd)); 68static int db_inputchar __P((int c)); 69static void db_putnchars __P((int c, int count)); 70static void db_putstring __P((char *s, int count)); | 66static int cnmaygetc(void); 67static void db_delete(int n, int bwd); 68static int db_inputchar(int c); 69static void db_putnchars(int c, int count); 70static void db_putstring(char *s, int count); |
71 72void 73db_putstring(s, count) 74 char *s; 75 int count; 76{ 77 while (--count >= 0) 78 cnputc(*s++); --- 291 unchanged lines hidden --- | 71 72void 73db_putstring(s, count) 74 char *s; 75 int count; 76{ 77 while (--count >= 0) 78 cnputc(*s++); --- 291 unchanged lines hidden --- |