diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2022-07-26 21:45:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-26 21:45:46 (GMT) |
commit | ae414872f50187e64cbd6cc8f076c22cf5df2d53 (patch) | |
tree | b616f33f5daa89f213e7c64e04c63afde906e939 /java/src/jni/h5dImp.c | |
parent | 213eac2588369f75a11df6bb1788dde33c4b82e2 (diff) | |
download | hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.zip hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.gz hdf5-ae414872f50187e64cbd6cc8f076c22cf5df2d53.tar.bz2 |
Develop clang 13 format (#1933)
* Update format source to clang 13
* More format changes
Diffstat (limited to 'java/src/jni/h5dImp.c')
-rw-r--r-- | java/src/jni/h5dImp.c | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/java/src/jni/h5dImp.c b/java/src/jni/h5dImp.c index a20bb6c..244d13c 100644 --- a/java/src/jni/h5dImp.c +++ b/java/src/jni/h5dImp.c @@ -183,7 +183,7 @@ Java_hdf_hdf5lib_H5_H5Dread(JNIEnv *env, jclass clss, jlong dataset_id, jlong me jboolean isCriticalPinning) { jboolean readBufIsCopy; - jbyte * readBuf = NULL; + jbyte *readBuf = NULL; htri_t vl_data_class; herr_t status = FAIL; @@ -240,7 +240,7 @@ Java_hdf_hdf5lib_H5_H5Dwrite(JNIEnv *env, jclass clss, jlong dataset_id, jlong m jboolean isCriticalPinning) { jboolean writeBufIsCopy; - jbyte * writeBuf = NULL; + jbyte *writeBuf = NULL; htri_t vl_data_class; herr_t status = FAIL; @@ -338,7 +338,7 @@ Java_hdf_hdf5lib_H5_H5Dvlen_1reclaim(JNIEnv *env, jclass clss, jlong type_id, jl { #ifndef H5_NO_DEPRECATED_SYMBOLS jboolean vlenBufIsCopy; - jbyte * vlenBuf = NULL; + jbyte *vlenBuf = NULL; #endif herr_t status = FAIL; @@ -380,7 +380,7 @@ Java_hdf_hdf5lib_H5_H5Dread_1short(JNIEnv *env, jclass clss, jlong dataset_id, j jshortArray buf, jboolean isCriticalPinning) { jboolean readBufIsCopy; - jshort * readBuf = NULL; + jshort *readBuf = NULL; htri_t vl_data_class; herr_t status = FAIL; @@ -437,7 +437,7 @@ Java_hdf_hdf5lib_H5_H5Dwrite_1short(JNIEnv *env, jclass clss, jlong dataset_id, jshortArray buf, jboolean isCriticalPinning) { jboolean writeBufIsCopy; - jshort * writeBuf = NULL; + jshort *writeBuf = NULL; htri_t vl_data_class; herr_t status = FAIL; @@ -494,7 +494,7 @@ Java_hdf_hdf5lib_H5_H5Dread_1int(JNIEnv *env, jclass clss, jlong dataset_id, jlo jboolean isCriticalPinning) { jboolean readBufIsCopy; - jint * readBuf = NULL; + jint *readBuf = NULL; htri_t vl_data_class; herr_t status = FAIL; @@ -551,7 +551,7 @@ Java_hdf_hdf5lib_H5_H5Dwrite_1int(JNIEnv *env, jclass clss, jlong dataset_id, jl jboolean isCriticalPinning) { jboolean writeBufIsCopy; - jint * writeBuf = NULL; + jint *writeBuf = NULL; htri_t vl_data_class; herr_t status = FAIL; @@ -608,7 +608,7 @@ Java_hdf_hdf5lib_H5_H5Dread_1long(JNIEnv *env, jclass clss, jlong dataset_id, jl jlongArray buf, jboolean isCriticalPinning) { jboolean readBufIsCopy; - jlong * readBuf = NULL; + jlong *readBuf = NULL; htri_t vl_data_class; herr_t status = FAIL; @@ -665,7 +665,7 @@ Java_hdf_hdf5lib_H5_H5Dwrite_1long(JNIEnv *env, jclass clss, jlong dataset_id, j jlongArray buf, jboolean isCriticalPinning) { jboolean writeBufIsCopy; - jlong * writeBuf = NULL; + jlong *writeBuf = NULL; htri_t vl_data_class; herr_t status = FAIL; @@ -722,7 +722,7 @@ Java_hdf_hdf5lib_H5_H5Dread_1float(JNIEnv *env, jclass clss, jlong dataset_id, j jfloatArray buf, jboolean isCriticalPinning) { jboolean readBufIsCopy; - jfloat * readBuf = NULL; + jfloat *readBuf = NULL; htri_t vl_data_class; herr_t status = FAIL; @@ -779,7 +779,7 @@ Java_hdf_hdf5lib_H5_H5Dwrite_1float(JNIEnv *env, jclass clss, jlong dataset_id, jfloatArray buf, jboolean isCriticalPinning) { jboolean writeBufIsCopy; - jfloat * writeBuf = NULL; + jfloat *writeBuf = NULL; htri_t vl_data_class; herr_t status = FAIL; @@ -952,8 +952,8 @@ Java_hdf_hdf5lib_H5_H5Dread_1string(JNIEnv *env, jclass clss, jlong dataset_id, size_t str_len; size_t pos; jsize i, n; - char * c_buf = NULL; - char * cstr = NULL; + char *c_buf = NULL; + char *cstr = NULL; herr_t status = FAIL; UNUSED(clss); @@ -1020,7 +1020,7 @@ Java_hdf_hdf5lib_H5_H5Dwrite_1string(JNIEnv *env, jclass clss, jlong dataset_id, jstring obj; size_t i, str_len; jsize n; - char * c_buf = NULL; + char *c_buf = NULL; herr_t status = FAIL; UNUSED(clss); @@ -1115,11 +1115,11 @@ Java_hdf_hdf5lib_H5_H5DreadVL(JNIEnv *env, jclass clss, jlong dataset_id, jlong hid_t memb = H5I_INVALID_HID; H5T_class_t vlClass; size_t vlSize; - void * rawBuf = NULL; - jobject * jList = NULL; + void *rawBuf = NULL; + jobject *jList = NULL; size_t i, j, x; - char * cp_vp = NULL; + char *cp_vp = NULL; if (!(typeSize = H5Tget_size(mem_type_id))) H5_LIBRARY_ERROR(ENVONLY); @@ -1263,7 +1263,7 @@ Java_hdf_hdf5lib_H5_H5DreadVL(JNIEnv *env, jclass clss, jlong dataset_id, jlong } case H5T_REFERENCE: { jboolean bb; - jbyte * barray = NULL; + jbyte *barray = NULL; if (NULL == (jobj = ENVPTR->NewByteArray(ENVONLY, vlSize))) CHECK_JNI_EXCEPTION(ENVONLY, JNI_FALSE); @@ -1345,11 +1345,11 @@ Java_hdf_hdf5lib_H5_H5DwriteVL(JNIEnv *env, jclass clss, jlong dataset_id, jlong hid_t memb = H5I_INVALID_HID; H5T_class_t vlClass; size_t vlSize; - void * rawBuf = NULL; - jobject * jList = NULL; + void *rawBuf = NULL; + jobject *jList = NULL; size_t i, j, x; - char * cp_vp = NULL; + char *cp_vp = NULL; if (!(typeSize = H5Tget_size(mem_type_id))) H5_LIBRARY_ERROR(ENVONLY); @@ -1595,7 +1595,7 @@ H5DreadVL_str(JNIEnv *env, hid_t did, hid_t tid, hid_t mem_sid, hid_t file_sid, { jstring jstr; jsize i, n; - char ** strs = NULL; + char **strs = NULL; herr_t status = FAIL; if ((n = ENVPTR->GetArrayLength(ENVONLY, buf)) < 0) { @@ -1660,7 +1660,7 @@ H5DreadVL_asstr(JNIEnv *env, hid_t did, hid_t tid, hid_t mem_sid, hid_t file_sid size_t i; hid_t mem_space = mem_sid; jsize n; - void * readBuf = NULL; + void *readBuf = NULL; herr_t status = FAIL; HDmemset(&h5str, 0, sizeof(h5str_t)); @@ -1821,7 +1821,7 @@ H5DwriteVL_str(JNIEnv *env, hid_t dataset_id, hid_t mem_type_id, hid_t mem_space jstring obj; jsize size; jint i; - char ** writeBuf = NULL; + char **writeBuf = NULL; herr_t status = FAIL; if ((size = ENVPTR->GetArrayLength(ENVONLY, (jarray)buf)) < 0) { @@ -1898,7 +1898,7 @@ H5DwriteVL_asstr(JNIEnv *env, hid_t did, hid_t tid, hid_t mem_sid, hid_t file_si size_t i; hid_t mem_space = mem_sid; jsize n; - void * writeBuf = NULL; + void *writeBuf = NULL; herr_t status = FAIL; if (mem_space == H5S_ALL) { @@ -2206,8 +2206,8 @@ Java_hdf_hdf5lib_H5_H5Dfill(JNIEnv *env, jclass clss, jbyteArray fill, jlong fil jboolean isCopy1; jboolean isCopy2; herr_t status = FAIL; - jbyte * fillP = NULL; - jbyte * buffP = NULL; + jbyte *fillP = NULL; + jbyte *buffP = NULL; UNUSED(clss); @@ -2248,7 +2248,7 @@ Java_hdf_hdf5lib_H5_H5Dset_1extent(JNIEnv *env, jclass clss, jlong loc_id, jlong hsize_t *dims = NULL; herr_t status; jsize rank; - jlong * dimsBuf = NULL; + jlong *dimsBuf = NULL; int i = 0; UNUSED(clss); @@ -2288,10 +2288,10 @@ H5D_iterate_cb(void *elem, hid_t elem_id, unsigned ndim, const hsize_t *point, v jmethodID mid; jobject visit_callback = wrapper->visit_callback; jclass cls; - JNIEnv * cbenv = NULL; + JNIEnv *cbenv = NULL; jint status = FAIL; jsize size; - void * op_data = (void *)wrapper->op_data; + void *op_data = (void *)wrapper->op_data; if (JVMPTR->AttachCurrentThread(JVMPAR, (void **)&cbenv, NULL) < 0) { CHECK_JNI_EXCEPTION(CBENVONLY, JNI_TRUE); @@ -2350,7 +2350,7 @@ Java_hdf_hdf5lib_H5_H5Diterate(JNIEnv *env, jclass clss, jbyteArray buf, jlong b { cb_wrapper wrapper = {callback_op, op_data}; jboolean isCopy; - jbyte * iterBuf = NULL; + jbyte *iterBuf = NULL; herr_t status = FAIL; UNUSED(clss); |