implement node walker in direction of out-edges
[libfirm] / ir / libcore / lc_config_lexer.l
index 9acedd9..c86f21b 100644 (file)
   License along with this library; if not, write to the Free Software
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
-
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 
 #include <stdio.h>
 
 #include "lc_parser_t.h"
 #include "lc_config_parser.h"
 
-static int _lc_opt_wrap(void)
-{
-       return 1;
-}
+#define YY_NO_UNISTD_H
+
+static int _lc_opt_wrap(void);
 
 %}
 
@@ -103,3 +104,11 @@ nl              \n
 .                   return yytext[0];
 
 %%
+
+static int _lc_opt_wrap(void)
+{
+       /* avoid warning */
+       (void) yyunput;
+       (void) input;
+       return 1;
+}