r100809 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r100808‎ | r100809 | r100810 >
Date:14:48, 26 October 2011
Author:platonides
Status:ok
Tags:
Comment:
We are using flex, not lex.
With this invocation it is no longer needed to hide warnings about yy_flex_strlen or find_rule
Modified paths:
  • /trunk/tools/justMessages/Makefile (modified) (history)
  • /trunk/tools/justMessages/justMessages.l (modified) (history)

Diff [purge]

Index: trunk/tools/justMessages/justMessages.l
@@ -226,8 +226,11 @@
227227 return 1;
228228 }
229229
 230+#ifdef YY_NEED_STRLEN
230231 /* Shut up warning about yy_flex_strlen being unused */
231232 int dummy() {
232233 return yy_flex_strlen("");
233234 }
 235+#endif
234236
 237+
Index: trunk/tools/justMessages/Makefile
@@ -1,5 +1,5 @@
22 CC=gcc
3 -LEX=lex
 3+LEX=flex
44 CFLAGS=-Wall -O3 -fwhole-program
55
66 justMessages: justMessages.c

Follow-up revisions

RevisionCommit summaryAuthorDate
r100810Actually remove find_rule (r100809 follow-up)platonides14:49, 26 October 2011

Status & tagging log