X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=blobdiff_plain;f=idlcomp%2Fidlparse.y;h=23bd8fd2101c36db38b5573f96afae99255755e0;hp=75c6a8940232c1e04cb8dd4994f39d25a273a55f;hb=139f54779f6395a1828261423cd8013ca940ff36;hpb=7da27a216a7f4bb3331fe315cdbec69bfcf2c762 diff --git a/idlcomp/idlparse.y b/idlcomp/idlparse.y index 75c6a89..23bd8fd 100644 --- a/idlcomp/idlparse.y +++ b/idlcomp/idlparse.y @@ -1,8 +1,17 @@ %{ -/* idlparse.y -- parser for the IDL compiler - * - * Written by Scott Wood - */ +// IDL parser +// +// This software is copyright (c) 2006 Scott Wood . +// +// This software is provided 'as-is', without any express or implied warranty. +// In no event will the authors or contributors be held liable for any damages +// arising from the use of this software. +// +// Permission is hereby granted to everyone, free of charge, to use, copy, +// modify, prepare derivative works of, publish, distribute, perform, +// sublicense, and/or sell copies of the Software, provided that the above +// copyright notice and disclaimer of warranty be included in all copies or +// substantial portions of this software. #include #include @@ -412,15 +421,14 @@ param: } ; -more_params: - /* empty */ -| ',' param_list +param_list_nonempty: + param +| param_list_nonempty ',' param ; param_list: /* empty */ -| param more_params -; +| param_list_nonempty method: ident '(' { @@ -489,7 +497,7 @@ iface: } '{' iface_body '}' { pop_nspace(); pop_nspace(); - $$ = $3; + $$ = $4; } ; @@ -716,8 +724,6 @@ qualified_ident: qualified_decl: qualified_ident_raw { $$.ident = cur_strlist->back(); - $$.ident->retain(); - cur_strlist->pop_back(); if (!cur_strlist->empty())