Deleted Added
sdiff udiff text old ( 228665 ) new ( 250227 )
full compact
1%{
2/*
3 * Copyright (c) 2003
4 * Bill Paul <wpaul@windriver.com>. 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:

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

27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
31 * THE POSSIBILITY OF SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/usr.sbin/ndiscvt/inf-token.l 250227 2013-05-03 23:51:32Z jkim $");
36
37#include <regex.h>
38#include <ctype.h>
39#include <err.h>
40#include <stdio.h>
41#include <stdlib.h>
42#include <string.h>
43#include "y.tab.h"
44
45int lineno = 1;
46
47int yylex(void);
48void yyerror(const char *);
49
50static void
51update_lineno(const char *cp)
52{
53 while (*cp)
54 if (*cp++ == '\n')
55 lineno++;
56}
57
58%}
59
60%option nounput
61%option noinput
62
63%%
64
65[ \t]+ ;
66\n { lineno++; return EOL; }
67\r ;
68;.*$ ;
69\/\/.*$ ;
70= { return EQUALS; }

--- 61 unchanged lines hidden ---