tags 775140 patch
thanks

I managed to get dict-gcide to build with the libmaa-dev package.

Here is a patch.

diff --git a/webfmt.c b/webfmt.c
index 96fb477..7307a56 100644
--- a/webfmt.c
+++ b/webfmt.c
@@ -28,6 +28,10 @@
 extern int        yy_flex_debug;
        int        database = 0;
 
+extern FILE       *yyin;
+
+static int        _prs_debug_flag   = 0;
+
 static const char *id_string( const char *id )
 {
    static char buffer[256];
@@ -104,6 +108,19 @@ static void help( void )
    while (*p) fprintf( stderr, "%s\n", *p++ );
 }
 
+void prs_set_debug( int debug_flag )
+{
+   _prs_debug_flag = debug_flag;
+}
+
+void prs_stream( FILE *str, const char *name )
+{
+   yyin = str;
+   src_new_file( name );
+   yydebug = _prs_debug_flag;
+   yyparse();
+}
+
 int main( int argc, char **argv )
 {
    int                c;
diff --git a/webfmt.h b/webfmt.h
index 3a7847f..cb75544 100644
--- a/webfmt.h
+++ b/webfmt.h
@@ -24,7 +24,7 @@
 #ifndef _WEBFMT_H_
 #define _WEBFMT_H_
 
-#include "maa.h"
+#include <maa.h>
 #include "dump.h"
 #include "fmt.h"

Reply via email to