teken.c (197470) | teken.c (197520) |
---|---|
1/*- 2 * Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2008-2009 Ed Schouten <ed@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/teken/teken.c 197470 2009-09-24 20:33:14Z ed $ | 26 * $FreeBSD: head/sys/teken/teken.c 197520 2009-09-26 15:03:42Z ed $ |
27 */ 28 29#include <sys/cdefs.h> 30#if defined(__FreeBSD__) && defined(_KERNEL) 31#include <sys/param.h> 32#include <sys/lock.h> 33#include <sys/systm.h> 34#define teken_assert(x) MPASS(x) --- 156 unchanged lines hidden (view full) --- 191 break; 192 case '\x0C': 193 teken_subr_newpage(t); 194 break; 195 case '\x0E': 196 if (t->t_stateflags & TS_CONS25) 197 t->t_nextstate(t, c); 198 else | 27 */ 28 29#include <sys/cdefs.h> 30#if defined(__FreeBSD__) && defined(_KERNEL) 31#include <sys/param.h> 32#include <sys/lock.h> 33#include <sys/systm.h> 34#define teken_assert(x) MPASS(x) --- 156 unchanged lines hidden (view full) --- 191 break; 192 case '\x0C': 193 teken_subr_newpage(t); 194 break; 195 case '\x0E': 196 if (t->t_stateflags & TS_CONS25) 197 t->t_nextstate(t, c); 198 else |
199 teken_scs_switch(t, 1); | 199 t->t_curscs = 1; |
200 break; 201 case '\x0F': 202 if (t->t_stateflags & TS_CONS25) 203 t->t_nextstate(t, c); 204 else | 200 break; 201 case '\x0F': 202 if (t->t_stateflags & TS_CONS25) 203 t->t_nextstate(t, c); 204 else |
205 teken_scs_switch(t, 0); | 205 t->t_curscs = 0; |
206 break; 207 case '\r': 208 teken_subr_carriage_return(t); 209 break; 210 case '\t': 211 teken_subr_horizontal_tab(t); 212 break; 213 default: --- 199 unchanged lines hidden --- | 206 break; 207 case '\r': 208 teken_subr_carriage_return(t); 209 break; 210 case '\t': 211 teken_subr_horizontal_tab(t); 212 break; 213 default: --- 199 unchanged lines hidden --- |