unoidl2

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

commit 9d6209961c2e5e64626cda76e42abc57683816d0
parent 05b2ed210abd89d4c33820c12461e39b0a564f1e
Author: Tomas Hlavaty <tom@logand.com>
Date:   Wed,  7 Dec 2011 23:15:51 +0100

unoidl2java: fix simple types

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

diff --git a/unoidl2java.c b/unoidl2java.c @@ -224,22 +224,22 @@ static void pp(Any x) { case ABSOLUTE: pr_relative(x); break; case CONSTANTS: pr_constants(x); break; case CONST: pr_const(x); break; - case SEQUENCE: pr("sequence<"); pp(cadr(x)); pr(">"); break; + case SEQUENCE: pp(cadr(x)); pr("[]"); break; case ATTRIBUTE: pr_attribute(x); break; case EXCEPTION: pr_exception(x); break; case VOID: case BOOLEAN: case BYTE: case SHORT: - case LONG: - case HYPER: case FLOAT: case DOUBLE: - case CHAR: - case STRING: - case TYPE: - case ANY: print(car(x)); break; - case UNSIGNED: pp_list(x); break; + case CHAR: print(car(x)); break; + case LONG: pr("int"); break; + case HYPER: pr("long"); break; + case UNSIGNED: pp(cadr(x)); break; + case STRING: pr("java.lang.String"); break; + case TYPE: pr("com.sun.star.uno.Type"); break; + case ANY: pr("com.sun.star.uno.Any"); break; case EXP: pp(cadr(x)); break; case XOR: pp(cadr(x)); pr("^"); pp(caddr(x)); break; case AND: pp(cadr(x)); pr("&"); pp(caddr(x)); break;