summaryrefslogtreecommitdiff
path: root/graphics/rayshade/files/patch-libshade__lex.l
blob: 1f82dacab387343d2c1b0858c2c450926d58105c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- libshade/lex.l.orig	1992-02-10 12:04:02.000000000 +0900
+++ libshade/lex.l	2013-05-28 22:45:54.000000000 +0900
@@ -29,6 +29,7 @@
 #include "y.tab.h"
 extern char *strsave();
 %}
+%option yylineno
 alpha	[a-zA-Z]
 special	[\.\_-]
 digit	[0-9]
@@ -171,7 +172,7 @@
 		while (input() != '*')
 			;
 		if ((c = input()) == '/')
-			return;
+			return FALSE;
 		unput(c);
 	}
 }