comparison java/jdc/org_dyncall_DC.c @ 23:87fd9f34eaa0

- pre-C99 syntax fix
author cslag
date Sun, 22 May 2016 20:55:57 +0200
parents 4ee8d6aa7721
children
comparison
equal deleted inserted replaced
22:4ee8d6aa7721 23:87fd9f34eaa0
7 static int gc_snum = 0; 7 static int gc_snum = 0;
8 static jobject* gc_jstr = NULL; 8 static jobject* gc_jstr = NULL;
9 static const char** gc_cstr = NULL; 9 static const char** gc_cstr = NULL;
10 static void cleanupHeldStrings(JNIEnv *pEnv) 10 static void cleanupHeldStrings(JNIEnv *pEnv)
11 { 11 {
12 for(int i=0; i<gc_snum; ++i) 12 int i;
13 for(i=0; i<gc_snum; ++i)
13 (*pEnv)->ReleaseStringUTFChars(pEnv, gc_jstr[i], gc_cstr[i]); 14 (*pEnv)->ReleaseStringUTFChars(pEnv, gc_jstr[i], gc_cstr[i]);
14 15
15 free(gc_jstr); gc_jstr = NULL; 16 free(gc_jstr); gc_jstr = NULL;
16 free(gc_cstr); gc_cstr = NULL; 17 free(gc_cstr); gc_cstr = NULL;
17 gc_snum = 0; 18 gc_snum = 0;