db_lex.c (50477) | db_lex.c (92011) |
---|---|
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_lex.c 50477 1999-08-28 01:08:13Z peter $ | 26 * $FreeBSD: head/sys/ddb/db_lex.c 92011 2002-03-10 17:08:24Z dfr $ |
27 */ 28 29/* 30 * Author: David B. Golub, Carnegie Mellon University 31 * Date: 7/90 32 */ 33/* 34 * Lexical analyzer. --- 166 unchanged lines hidden (view full) --- 201 db_error("Bad escape\n"); 202 } 203 *cp++ = c; 204 while (1) { 205 c = db_read_char(); 206 if ((c >= 'A' && c <= 'Z') || 207 (c >= 'a' && c <= 'z') || 208 (c >= '0' && c <= '9') || | 27 */ 28 29/* 30 * Author: David B. Golub, Carnegie Mellon University 31 * Date: 7/90 32 */ 33/* 34 * Lexical analyzer. --- 166 unchanged lines hidden (view full) --- 201 db_error("Bad escape\n"); 202 } 203 *cp++ = c; 204 while (1) { 205 c = db_read_char(); 206 if ((c >= 'A' && c <= 'Z') || 207 (c >= 'a' && c <= 'z') || 208 (c >= '0' && c <= '9') || |
209 c == '_' || c == '\\' || c == ':') | 209 c == '_' || c == '\\' || c == ':' || c == '.') |
210 { 211 if (c == '\\') { 212 c = db_read_char(); 213 if (c == '\n' || c == -1) 214 db_error("Bad escape\n"); 215 } 216 *cp++ = c; 217 if (cp == db_tok_string+sizeof(db_tok_string)) { --- 67 unchanged lines hidden --- | 210 { 211 if (c == '\\') { 212 c = db_read_char(); 213 if (c == '\n' || c == -1) 214 db_error("Bad escape\n"); 215 } 216 *cp++ = c; 217 if (cp == db_tok_string+sizeof(db_tok_string)) { --- 67 unchanged lines hidden --- |