nfa.c (99112) | nfa.c (179549) |
---|---|
1/* nfa - NFA construction routines */ 2 3/*- 4 * Copyright (c) 1990 The Regents of the University of California. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Vern Paxson. --- 14 unchanged lines hidden (view full) --- 23 * specific prior written permission. 24 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 25 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 26 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 27 */ 28 29/* $Header: /home/daffy/u0/vern/flex/RCS/nfa.c,v 2.17 95/03/04 16:11:42 vern Exp $ */ 30#include <sys/cdefs.h> | 1/* nfa - NFA construction routines */ 2 3/*- 4 * Copyright (c) 1990 The Regents of the University of California. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * Vern Paxson. --- 14 unchanged lines hidden (view full) --- 23 * specific prior written permission. 24 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 25 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 26 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 27 */ 28 29/* $Header: /home/daffy/u0/vern/flex/RCS/nfa.c,v 2.17 95/03/04 16:11:42 vern Exp $ */ 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/usr.bin/lex/nfa.c 99112 2002-06-30 05:25:07Z obrien $"); | 31__FBSDID("$FreeBSD: head/usr.bin/lex/nfa.c 179549 2008-06-04 19:50:34Z dwmalone $"); |
32 33#include "flexdef.h" 34 35 36/* declare functions that have forward references */ 37 38int dupmachine PROTO((int)); 39void mkxtion PROTO((int, int)); --- 276 unchanged lines hidden (view full) --- 316/* mark_beginning_as_normal - mark each "beginning" state in a machine 317 * as being a "normal" (i.e., not trailing context- 318 * associated) states 319 * 320 * The "beginning" states are the epsilon closure of the first state 321 */ 322 323void mark_beginning_as_normal( mach ) | 32 33#include "flexdef.h" 34 35 36/* declare functions that have forward references */ 37 38int dupmachine PROTO((int)); 39void mkxtion PROTO((int, int)); --- 276 unchanged lines hidden (view full) --- 316/* mark_beginning_as_normal - mark each "beginning" state in a machine 317 * as being a "normal" (i.e., not trailing context- 318 * associated) states 319 * 320 * The "beginning" states are the epsilon closure of the first state 321 */ 322 323void mark_beginning_as_normal( mach ) |
324register int mach; | 324int mach; |
325 { 326 switch ( state_type[mach] ) 327 { 328 case STATE_NORMAL: 329 /* Oh, we've already visited here. */ 330 return; 331 332 case STATE_TRAILING_CONTEXT: --- 379 unchanged lines hidden --- | 325 { 326 switch ( state_type[mach] ) 327 { 328 case STATE_NORMAL: 329 /* Oh, we've already visited here. */ 330 return; 331 332 case STATE_TRAILING_CONTEXT: --- 379 unchanged lines hidden --- |