dcopidl + inline probs
David Faure
dfaure at klaralvdalens-datakonsult.se
Sat Jan 3 15:01:13 GMT 2004
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:
Index: yacc.yy
===================================================================
RCS file: /home/kde/kdelibs/dcop/dcopidl/yacc.yy,v
retrieving revision 1.56
diff -u -p -r1.56 yacc.yy
--- yacc.yy 26 Aug 2003 16:46:39 -0000 1.56
+++ yacc.yy 3 Jan 2004 15:00:13 -0000
@@ -143,6 +143,7 @@ void yyerror( const char *s )
%type <_str> typedef
%type <_str> function
%type <_str> function_header
+%type <_str> function_header_wo_inline
%type <_str> param
%type <_str> type
%type <_str> type_name
@@ -695,6 +696,11 @@ operator
;
function_header
+ : function_header_wo_inline { $$ = $1; }
+ | T_INLINE function_header_wo_inline { $$ = $2; }
+ ;
+
+function_header_wo_inline
: type Identifier T_LEFT_PARANTHESIS params T_RIGHT_PARANTHESIS const_qualifier
{
if (dcop_area || dcop_signal_area) {
--
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