Scott Klement wrote:

I'm looking at the IBM-supplied copybook for the JNI APIs in QSYSINC. It
defines jvalue as follows:

       D jvalue          DS                  QUALIFIED
       D                                     BASED(jvalue_P)
       D   z                                 LIKE(jboolean)
       D   b                                 LIKE(jbyte)
       D   c                                 LIKE(jchar)
       D   s                                 LIKE(jshort)
       D   i                                 LIKE(jint)
       D   j                                 LIKE(jlong)
       D   f                                 LIKE(jfloat)
       D   d                                 LIKE(jdouble)
       D   l                                 LIKE(jint)

Is this correct? The reason I ask is that when I use JNI on FreeBSD from C
programs, the jvalue definition looks like this:


No, it's not correct; the RPG structure should be a union too.  The JNI
include was hand-crafted (by me, it's my fault).  I used a tool to
generate some of it, but that particular structure was completely done
by hand.

Simon is right about member l too.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.