Datetypes for native target layer functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Classpath-members,

I'm currently changing the target native layer to replace the macros by 
functions. For this suitable datatypes have to be used in the function 
prototypes (as requested in the dicussion). Currently it seems there is 
a mixture of native datatypes (e. g. int) and JNI datatypes (e. g. jint 
or jlong). First I thought it would be keep out JNI from the target 
native layer completely, because the layer should be independent from 
JNI (but used in JNI-functions). This seems to be impossible, because e. 
g. the datatype jlong which is at least on some systems not available as 
a scalar native type (e. g. long long).

My question: what will be the accepted designed for datatypes? Do we

- keep a mixture of native types and JNI types (and accept the 
additional code for conversion e. g. from int to jint and back)?
- use only JNI types?
- use only native type?

By the way: datatypes like "ssize_t" or "off_t" are target dependent and 
  at least for some systems not available or compatible. These datatypes
have to be replaced by e. g. JNI datatypes.

Sincerely,

Torsten





[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux