unoidl2

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/unoidl2.git/
Log | Files | Refs

commit 303bc688baa54b961fe34ededafc05c596e44de9
parent 9de4be96b15c2ddc3c6bb8ecc54bf271f8321763
Author: Tomas Hlavaty <tom@logand.com>
Date:   Mon, 19 Dec 2011 09:21:36 +0100

XInterface is empty

Diffstat:
Munoidl2java.c | 18+++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/unoidl2java.c b/unoidl2java.c @@ -32,6 +32,7 @@ static Any rel_package; static Any uno_star_sun_com; static Any Exception; static Any RuntimeException; +static Any XInterface; static int template = 0; @@ -249,14 +250,16 @@ static void pr_definterface(Any x) { pr("public interface "); pp(name); if(!null(super)) {pr(" extends "); pp(super);} pl(" {"); - pp_list(body, ""); - pl(" public static final com.sun.star.lib.uno.typeinfo.TypeInfo UNOTYPEINFO[] = {"); - int i = 0; - for(Any y = body; !null(y); y = cdr(y)) { - Any slot = car(y); - pr(" new com.sun.star.lib.uno.typeinfo.MemberTypeInfo(\""); pp(cadr(slot)); pr("\", "); pi(i++); pr(", 0)"); pl(null(y) ? "" : ","); + if(!(equal(name, XInterface) && equal(module, uno_star_sun_com))) { + pp_list(body, ""); + pl(" public static final com.sun.star.lib.uno.typeinfo.TypeInfo UNOTYPEINFO[] = {"); + int i = 0; + for(Any y = body; !null(y); y = cdr(y)) { + Any slot = car(y); + pr(" new com.sun.star.lib.uno.typeinfo.MemberTypeInfo(\""); pp(cadr(slot)); pr("\", "); pi(i++); pr(", 0)"); pl(null(y) ? "" : ","); + } + pl(" };"); } - pl(" };"); pl("}"); } @@ -523,6 +526,7 @@ int main() { uno_star_sun_com = list4(mk(ID, "uno"), mk(ID, "star"), mk(ID, "sun"), mk(ID, "com")); Exception = mk(ID, "Exception"); RuntimeException = mk(ID, "RuntimeException"); + XInterface = mk(ID, "XInterface"); pp_list(ast, NULL); //print(typedefs); return 0;