blob: 9d96538cb66af1280d40ad1e582744b9425d6388 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$NetBSD: patch-src_lexer.l,v 1.2 2021/12/27 04:27:10 dholland Exp $
Ensure the local yywrap is used.
Use the right type for "clclex"; otherwise the link fails on some
platforms. (And on others, the behavior is probably undefined...)
--- src/lexer.l.orig 2010-09-01 22:29:25.000000000 +0000
+++ src/lexer.l
@@ -38,6 +38,7 @@ LICENSE TERMS
/*#undef wchar_t*/
/*#define wchar_t unsigned char*/
+#undef yywrap
#ifndef yywrap
static int yywrap(void)
{
@@ -68,7 +69,7 @@ int sparkearslev = 0;
By default, the C-INTERCAL meanings are used; the extern variable clclex
causes CLC-INTERCAL interpretations to be put on the ambiguous symbols.
Otherwise, mixing syntaxes freely is allowed. */
-extern int clclex;
+extern bool clclex;
#ifdef FLEX_SCANNER
static char linebuf[YY_BUF_SIZE];
|