dcopidl + inline probs

David Faure dfaure at klaralvdalens-datakonsult.se
Sat Jan 3 16:34:38 GMT 2004


On Saturday 03 January 2004 16:01, David Faure wrote:
> On Monday 29 December 2003 23:59, Christoph Cullmann wrote:
> > dcopidl doesn't work with headers which have some inline functions inside,
> > here diff for the testcase in kdelibs dcopidl dir.
> > Would be nice if somebody with more knowledge of the parser stuff could take a
> > look.
> 
> Suggested fix:
Doh, T_INLINE was already handled - just not from the 2 places where functions are used.
Better and simpler patch:
--- yacc.yy     26 Aug 2003 16:46:39 -0000      1.56
+++ yacc.yy     3 Jan 2004 16:33:51 -0000
@@ -376,6 +376,10 @@ body
          {
                $$ = new QString( *($1) + *($2) );
          }
+       | T_INLINE function body
+         {
+               $$ = new QString( *($2) + *($3) );
+         }
        | function body
          {
                $$ = new QString( *($1) + *($2) );

Could someone with bison 1.28 (or at least != 1.35) apply this and run "make parser",
then commit? (see cvs log -r1.57 yacc.cc about why I can't commit my 1.35-generated file)

-- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions




More information about the kde-core-devel mailing list