]> git.ipfire.org Git - people/ms/dma.git/commitdiff
Move declarations to dma header file
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Wed, 18 Mar 2015 16:20:28 +0000 (17:20 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Wed, 18 Mar 2015 16:20:28 +0000 (17:20 +0100)
aliases_parse.y
aliases_scan.l
dma.h

index a5a9e7b32f071aa0ca3026938296dea8f8847ef8..46728e6f205dd3db4b79fcd2b87ee4765d62794c 100644 (file)
@@ -7,8 +7,6 @@
 
 extern int yylineno;
 static void yyerror(const char *);
-int yywrap(void);
-int yylex(void);
 
 static void
 yyerror(const char *msg)
index 809d1e1687310515b4f91cbb06b8a2dbe9017eb7..8130c3e43098dc6a3ba7c444234764d96c9e6a64 100644 (file)
@@ -1,11 +1,11 @@
 %{
 
 #include <string.h>
+#include "dma.h"
 #include "aliases_parse.h"
 
 #define YY_NO_INPUT
 
-int yylex(void);
 %}
 
 %option yylineno
diff --git a/dma.h b/dma.h
index e33ab3cd1136a24edd4c26bdc3a2c0efea3ffe36..bf0cecff5e309dec25a99ef7c928856cda2aac7d 100644 (file)
--- a/dma.h
+++ b/dma.h
@@ -174,6 +174,8 @@ extern char errmsg[ERRMSG_SIZE];
 
 /* aliases_parse.y */
 int yyparse(void);
+int yywrap(void);
+int yylex(void);
 extern FILE *yyin;
 
 /* conf.c */