Deleted Added
full compact
lang.l (215676) lang.l (250227)
1%{
2/*-
3 * Copyright (c) 1980, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 14 unchanged lines hidden (view full) ---

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * @(#)lang.l 8.1 (Berkeley) 6/6/93
1%{
2/*-
3 * Copyright (c) 1980, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 14 unchanged lines hidden (view full) ---

23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * @(#)lang.l 8.1 (Berkeley) 6/6/93
31 * $FreeBSD: head/usr.sbin/config/lang.l 215676 2010-11-22 14:16:22Z brucec $
31 * $FreeBSD: head/usr.sbin/config/lang.l 250227 2013-05-03 23:51:32Z jkim $
32 */
33
34#include <assert.h>
35#include <ctype.h>
36#include <err.h>
37#include <string.h>
38#include "y.tab.h"
39#include "config.h"
40
32 */
33
34#include <assert.h>
35#include <ctype.h>
36#include <err.h>
37#include <string.h>
38#include "y.tab.h"
39#include "config.h"
40
41#define YY_NO_UNPUT
42#define YY_NO_INPUT
43
44/*
45 * Data for returning to previous files from include files.
46 */
47struct incl {
48 struct incl *in_prev; /* previous includes in effect, if any */
49 YY_BUFFER_STATE in_buf; /* previous lex state */
50 const char *in_fname; /* previous file name */
51 int in_lineno; /* previous line number */

--- 40 unchanged lines hidden (view full) ---

92static int endinclude(void);
93int include(const char *, int);
94int kw_lookup(char *);
95unsigned int octal(const char *);
96unsigned int hex(const char *);
97int yyerror(const char *);
98
99%}
41/*
42 * Data for returning to previous files from include files.
43 */
44struct incl {
45 struct incl *in_prev; /* previous includes in effect, if any */
46 YY_BUFFER_STATE in_buf; /* previous lex state */
47 const char *in_fname; /* previous file name */
48 int in_lineno; /* previous line number */

--- 40 unchanged lines hidden (view full) ---

89static int endinclude(void);
90int include(const char *, int);
91int kw_lookup(char *);
92unsigned int octal(const char *);
93unsigned int hex(const char *);
94int yyerror(const char *);
95
96%}
97
98%option nounput
99%option noinput
100
100ID [A-Za-z_][-A-Za-z_0-9]*
101PATH [./][-/.%^A-Za-z_0-9]+
102%START TOEOL
103%%
104{ID} {
105 int i;
106
107 BEGIN 0;

--- 203 unchanged lines hidden ---
101ID [A-Za-z_][-A-Za-z_0-9]*
102PATH [./][-/.%^A-Za-z_0-9]+
103%START TOEOL
104%%
105{ID} {
106 int i;
107
108 BEGIN 0;

--- 203 unchanged lines hidden ---