unoidl2

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

commit 332fe7c0cb5144d9bf7e616d56aa3d4ddc29f3b3
parent 932be5d6e199bd8f2bd3cd7e14524a99b76f851f
Author: Tomas Hlavaty <tom@logand.com>
Date:   Wed, 14 Dec 2011 03:16:48 +0100

import parent packages like in idl

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

diff --git a/unoidl2java.c b/unoidl2java.c @@ -68,6 +68,9 @@ static Any last(Any x) { static void pr_package(Any class) { pr("///--- "); pr_module(module, "/", 0); pr(" "); pp(last(class)); pl(".java"); // TODO only toplevel pr("package "); pr_module(module, ".", 0); pl(";"); + for(Any x = cdr(module); !null(x); x = cdr(x)) { + pr("import "); pr_module(x, ".", 0); pl(".*;"); + } } static void pr_enum(Any x) {