Use C99-style for-loops, much more readable.
This commit is contained in:
parent
3d939da41f
commit
58a2494e4c
@ -18,8 +18,7 @@ jobjectArray wrapEndpointDescriptors(JNIEnv *env, int count,
|
||||
jobjectArray array = (jobjectArray) (*env)->NewObjectArray(env, count,
|
||||
(*env)->FindClass(env, PACKAGE_DIR"/EndpointDescriptor"), NULL);
|
||||
|
||||
int i;
|
||||
for (i = 0; i < count; i++)
|
||||
for (int i = 0; i < count; i++)
|
||||
(*env)->SetObjectArrayElement(env, array, i,
|
||||
wrapEndpointDescriptor(env, &descriptors[i]));
|
||||
|
||||
|
||||
@ -17,8 +17,7 @@ jobjectArray wrapInterfaces(JNIEnv *env, int count,
|
||||
jobjectArray array = (jobjectArray) (*env)->NewObjectArray(env, count,
|
||||
(*env)->FindClass(env, PACKAGE_DIR"/Interface"), NULL);
|
||||
|
||||
int i;
|
||||
for (i = 0; i < count; i++)
|
||||
for (int i = 0; i < count; i++)
|
||||
(*env)->SetObjectArrayElement(env, array, i,
|
||||
wrapInterface(env, &interfaces[i]));
|
||||
|
||||
|
||||
@ -20,8 +20,7 @@ jobjectArray wrapInterfaceDescriptors(JNIEnv *env, int count,
|
||||
jobjectArray array = (jobjectArray) (*env)->NewObjectArray(env, count,
|
||||
(*env)->FindClass(env, PACKAGE_DIR"/InterfaceDescriptor"), NULL);
|
||||
|
||||
int i;
|
||||
for (i = 0; i < count; i++)
|
||||
for (int i = 0; i < count; i++)
|
||||
(*env)->SetObjectArrayElement(env, array, i,
|
||||
wrapInterfaceDescriptor(env, &descriptors[i]));
|
||||
|
||||
|
||||
@ -13,8 +13,7 @@ jobjectArray wrapIsoPacketDescriptors(JNIEnv *env, int count,
|
||||
jobjectArray array = (jobjectArray) (*env)->NewObjectArray(env, count,
|
||||
(*env)->FindClass(env, PACKAGE_DIR"/IsoPacketDescriptor"), NULL);
|
||||
|
||||
int i;
|
||||
for (i = 0; i < count; i++)
|
||||
for (int i = 0; i < count; i++)
|
||||
(*env)->SetObjectArrayElement(env, array, i,
|
||||
wrapIsoPacketDescriptor(env, &descriptors[i]));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user