db_output.c (f540b1065abc6d6d31f876c6eeb288f9ad035840) | db_output.c (8a129caed5f1b834a2d3f825478f5f0273f9cb9d) |
---|---|
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 * $Id: db_output.c,v 1.6 1993/12/19 00:49:45 wollman Exp $ | 26 * $Id: db_output.c,v 1.7 1994/08/13 03:49:21 wollman Exp $ |
27 */ 28 29/* 30 * Author: David B. Golub, Carnegie Mellon University 31 * Date: 7/90 32 */ 33 34/* --- 67 unchanged lines hidden (view full) --- 102 * Use tabs if possible. 103 */ 104 db_force_whitespace(); 105 cnputc(c); 106 db_output_position++; 107 db_last_non_space = db_output_position; 108 } 109 else if (c == '\n') { | 27 */ 28 29/* 30 * Author: David B. Golub, Carnegie Mellon University 31 * Date: 7/90 32 */ 33 34/* --- 67 unchanged lines hidden (view full) --- 102 * Use tabs if possible. 103 */ 104 db_force_whitespace(); 105 cnputc(c); 106 db_output_position++; 107 db_last_non_space = db_output_position; 108 } 109 else if (c == '\n') { |
110 /* Newline */ 111 cnputc(c); 112 db_output_position = 0; 113 db_last_non_space = 0; 114 db_check_interrupt(); 115 } 116 else if (c == '\r') { |
|
110 /* Return */ 111 cnputc(c); 112 db_output_position = 0; 113 db_last_non_space = 0; 114 db_check_interrupt(); 115 } 116 else if (c == '\t') { 117 /* assume tabs every 8 positions */ --- 253 unchanged lines hidden --- | 117 /* Return */ 118 cnputc(c); 119 db_output_position = 0; 120 db_last_non_space = 0; 121 db_check_interrupt(); 122 } 123 else if (c == '\t') { 124 /* assume tabs every 8 positions */ --- 253 unchanged lines hidden --- |