[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: kdelibs/kdeprint building problem
From: Pavel Troller <patrol () sinus ! cz>
Date: 2001-03-24 19:13:28
[Download RAW message or body]
>
> No it's not. If I understand correctly, your build fails when you're using the
> file generated by bison on your system, but not when you're using the one in the
> CVS. Then maybe it's a problem with bison version ?
>
Hi!
I verified my bison - yes, it was a bit obsolete (1.26) so i immediately installed
a last available from GNU site - 1.28. From the CVS files it's visible that they are
created by the same version.
However, the problems persist.
I made a diff of both generated files against the CVS. Could anybody knowing bison
well tell me, why my bison generates a different output ? I verified that /usr/bin/bison
as well as /usr/share/bison.simple have been freshly reinstalled, however, it seems
that the CVS version uses another version of bison.simple because of different line
numbers.
With regards, Pavel Troller
Index: maticparser.cpp
===================================================================
RCS file: /home/kde/kdelibs/kdeprint/maticparser.cpp,v
retrieving revision 1.2
diff -u -3 -p -r1.2 maticparser.cpp
--- maticparser.cpp 2001/03/22 13:00:08 1.2
+++ maticparser.cpp 2001/03/24 19:00:33
@@ -198,11 +198,6 @@ static const short yycheck[] = { 4,
It was written by Richard Stallman by simplifying the hairy parser
used when %semantic_parser is specified. */
-#ifndef YYPARSE_RETURN_TYPE
-#define YYPARSE_RETURN_TYPE int
-#endif
-
-
#ifndef YYSTACK_USE_ALLOCA
#ifdef alloca
#define YYSTACK_USE_ALLOCA
@@ -386,7 +381,7 @@ __yy_memcpy (char *to, char *from, unsig
#endif
#endif
-#line 222 "/usr/share/bison.simple"
+#line 217 "/usr/share/bison.simple"
/* The user can define YYPARSE_PARAM as the name of an argument to be passed
into yyparse. The argument should have type void *.
@@ -410,15 +405,13 @@ __yy_memcpy (char *to, char *from, unsig
/* Prevent warning if -Wstrict-prototypes. */
#ifdef __GNUC__
#ifdef YYPARSE_PARAM
-YYPARSE_RETURN_TYPE
-yyparse (void *);
+int yyparse (void *);
#else
-YYPARSE_RETURN_TYPE
-yyparse (void);
+int yyparse (void);
#endif
#endif
-YYPARSE_RETURN_TYPE
+int
yyparse(YYPARSE_PARAM_ARG)
YYPARSE_PARAM_DECL
{
@@ -446,9 +439,7 @@ yyparse(YYPARSE_PARAM_ARG)
#endif
int yystacksize = YYINITDEPTH;
-#ifndef YYSTACK_USE_ALLOCA
int yyfree_stacks = 0;
-#endif
#ifdef YYPURE
int yychar;
@@ -533,7 +524,6 @@ yynewstate:
if (yystacksize >= YYMAXDEPTH)
{
yyerror("parser stack overflow");
-#ifndef YYSTACK_USE_ALLOCA
if (yyfree_stacks)
{
free (yyss);
@@ -542,7 +532,6 @@ yynewstate:
free (yyls);
#endif
}
-#endif
return 2;
}
yystacksize *= 2;
@@ -786,7 +775,7 @@ case 16:
break;}
}
/* the action file gets copied in in place of this dollarsign */
-#line 554 "/usr/share/bison.simple"
+#line 543 "/usr/share/bison.simple"
yyvsp -= yylen;
yyssp -= yylen;
@@ -984,7 +973,6 @@ yyerrhandle:
yyacceptlab:
/* YYACCEPT comes here. */
-#ifndef YYSTACK_USE_ALLOCA
if (yyfree_stacks)
{
free (yyss);
@@ -993,12 +981,10 @@ yyerrhandle:
free (yyls);
#endif
}
-#endif
return 0;
yyabortlab:
/* YYABORT comes here. */
-#ifndef YYSTACK_USE_ALLOCA
if (yyfree_stacks)
{
free (yyss);
@@ -1007,7 +993,6 @@ yyerrhandle:
free (yyls);
#endif
}
-#endif
return 1;
}
#line 72 "../../kdeprint/maticparser.yy"
Index: maticparser.cpp.h
===================================================================
RCS file: /home/kde/kdelibs/kdeprint/maticparser.cpp.h,v
retrieving revision 1.2
diff -u -3 -p -r1.2 maticparser.cpp.h
--- maticparser.cpp.h 2001/03/22 14:13:16 1.2
+++ maticparser.cpp.h 2001/03/24 19:01:45
@@ -1,6 +1,3 @@
-#ifndef maticparser_cpp_h
-#define maticparser_cpp_h
-
typedef union {
QString *string;
MHash *hash;
@@ -13,5 +10,3 @@ typedef union {
extern YYSTYPE maticlval;
-
-#endif
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic