unoidl2

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

commit 4ff0f38bc4eab44cd09494a55921c84c83935ff9
parent c7dd459db682f754f3bdfa8cd9d341ebc90f6533
Author: Tomas Hlavaty <tom@logand.com>
Date:   Sun, 22 Jan 2012 22:27:04 +0100

2java print typeinfo only if there is something in it

Diffstat:
Munoidl2java.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/unoidl2java.c b/unoidl2java.c @@ -345,8 +345,10 @@ static Any pr_TypeInfo1_nonattribute(void *env, Any x) { return NIL; } +static Any noninterfacep(Any x) {return INTERFACE == kind(car(x)) ? NIL : x;} + static void pr_TypeInfo(Any body) { - if(NIL != body) { + if(NIL != body && NIL != some(noninterfacep, body)) { pr(" public static final com.sun.star.lib.uno.typeinfo.TypeInfo UNOTYPEINFO[] = {"); int i = -1; k = -1;