unoidl2

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

commit 411f89400de873dacd6ac5a61436ec718bed9ffb
parent 23e8559d07bba59d07dd06b7812975b1a2349135
Author: Tomas Hlavaty <tom@logand.com>
Date:   Fri, 16 Dec 2011 00:43:36 +0100

2java pr_enum _value constant slot

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

diff --git a/unoidl2java.c b/unoidl2java.c @@ -93,6 +93,8 @@ static void pr_enum(Any x) { Any value = car(y); char *k = token(consp(value) ? car(value) : value); Any v = consp(value) ? cadr(value) : mkinum(n++); + pr(" public static final int "); pr(k); pr("_value = "); + pp(v); pl(";"); pr(" public static final "); pp(name); pr(" "); pr(k); pr(" = new "); pp(name); pr("("); pp(v); pl(");"); }