Hello,

With latest dosemu git code, I get a compile error.



gcc -c -MP -MMD -I../../../src/include
-I../../../src/plugin/include  -DYYPURE -I. -Wall -Wstrict-prototypes
-Wmissing-declarations -Wnested-externs  -fno-strict-aliasing -pipe -O2
-fomit-frame-pointer -o lex.yy.o lex.yy.c lex.yy.c:2056:11: error:
conflicting types for ‘yyget_leng’ In file included from lexer.l:58:0:
lexer.h:39:12: note: previous declaration of ‘yyget_leng’ was here
lex.yy.c:5027:11: error: conflicting types for ‘yyget_leng’ In file
included from lexer.l:58:0: lexer.h:39:12: note: previous declaration
of ‘yyget_leng’ was here


It seems that the declaration of yyget_leng is doubled. I can fix the
error for me with the attached patch, though I don't know what exactly
causes this and if it has side effects. Can anyone look into this?

cu,
-- 
Hanno Böck              mail/jabber: ha...@hboeck.de
GPG: BBB51E42           http://www.hboeck.de/
--- dosemu1/src/base/init/lexer.h	2012-10-12 22:50:14.679277169 +0200
+++ dosemu/src/base/init/lexer.h	2012-10-12 22:54:21.756364026 +0200
@@ -36,5 +36,4 @@
 extern int yylex_destroy(void);
 extern FILE* yyget_in(void);
 extern FILE* yyget_out(void);
-extern int yyget_leng(void);
 extern char *yyget_text(void);

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Dosemu-devel mailing list
Dosemu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dosemu-devel

Reply via email to