Deleted Added
full compact
scan.l (208868) scan.l (215704)
1%{
2/* $OpenBSD: scan.l,v 1.23 2009/10/27 23:59:36 deraadt Exp $ */
3
4/*
5 * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above

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

13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20#include <sys/cdefs.h>
1%{
2/* $OpenBSD: scan.l,v 1.23 2009/10/27 23:59:36 deraadt Exp $ */
3
4/*
5 * Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above

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

13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20#include <sys/cdefs.h>
21__FBSDID("$FreeBSD: head/usr.bin/bc/scan.l 208868 2010-06-06 11:36:08Z gabor $");
21__FBSDID("$FreeBSD: head/usr.bin/bc/scan.l 215704 2010-11-22 20:10:48Z brucec $");
22
23#include <err.h>
24#include <errno.h>
25#include <histedit.h>
26#include <stdbool.h>
27#include <string.h>
28#include <unistd.h>
29

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

41static char *strbuf = NULL;
42static size_t strbuf_sz = 1;
43static bool dot_seen;
44
45static void init_strbuf(void);
46static void add_str(const char *);
47static int bc_yyinput(char *, int);
48
22
23#include <err.h>
24#include <errno.h>
25#include <histedit.h>
26#include <stdbool.h>
27#include <string.h>
28#include <unistd.h>
29

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

41static char *strbuf = NULL;
42static size_t strbuf_sz = 1;
43static bool dot_seen;
44
45static void init_strbuf(void);
46static void add_str(const char *);
47static int bc_yyinput(char *, int);
48
49#define YY_NO_INPUT
49#undef YY_INPUT
50#define YY_INPUT(buf,retval,max) \
51 (retval = bc_yyinput(buf, max))
52%}
53
54%option always-interactive
55
56DIGIT [0-9A-F]

--- 252 unchanged lines hidden ---
50#undef YY_INPUT
51#define YY_INPUT(buf,retval,max) \
52 (retval = bc_yyinput(buf, max))
53%}
54
55%option always-interactive
56
57DIGIT [0-9A-F]

--- 252 unchanged lines hidden ---