summaryrefslogtreecommitdiffstats
path: root/java/src/jni/h5util.c
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/jni/h5util.c')
-rw-r--r--java/src/jni/h5util.c66
1 files changed, 33 insertions, 33 deletions
diff --git a/java/src/jni/h5util.c b/java/src/jni/h5util.c
index 7de5a05..1e69428 100644
--- a/java/src/jni/h5util.c
+++ b/java/src/jni/h5util.c
@@ -46,7 +46,7 @@ jobject set_callback;
jobject delete_callback;
H5E_auto2_t efunc;
-void * edata;
+void *edata;
/********************/
/* Local Prototypes */
@@ -188,9 +188,9 @@ h5str_convert(JNIEnv *env, char **in_str, hid_t container, hid_t tid, void *out_
size_t retVal = 0;
size_t typeSize = 0;
hid_t mtid = H5I_INVALID_HID;
- char * this_str = NULL;
- char * cptr = NULL;
- char * token;
+ char *this_str = NULL;
+ char *cptr = NULL;
+ char *token;
int n;
if (!in_str)
@@ -724,8 +724,8 @@ h5str_sprintf(JNIEnv *env, h5str_t *out_str, hid_t container, hid_t tid, void *i
size_t typeSize = 0;
H5T_sign_t nsign = H5T_SGN_ERROR;
hid_t mtid = H5I_INVALID_HID;
- char * cptr = (char *)in_buf;
- char * this_str = NULL;
+ char *cptr = (char *)in_buf;
+ char *this_str = NULL;
int n;
size_t retVal = 0;
@@ -807,7 +807,7 @@ h5str_sprintf(JNIEnv *env, h5str_t *out_str, hid_t container, hid_t tid, void *i
case H5T_STRING: {
htri_t is_variable;
- char * tmp_str;
+ char *tmp_str;
typeSize = 0;
@@ -1172,7 +1172,7 @@ h5str_sprintf(JNIEnv *env, h5str_t *out_str, hid_t container, hid_t tid, void *i
case H5T_VLEN: {
unsigned int i;
size_t baseSize;
- hvl_t * vl_buf = (hvl_t *)in_buf;
+ hvl_t *vl_buf = (hvl_t *)in_buf;
if ((mtid = H5Tget_super(tid)) < 0)
H5_LIBRARY_ERROR(ENVONLY);
@@ -1278,7 +1278,7 @@ h5str_print_region_data_blocks(JNIEnv *env, hid_t region_id, h5str_t *str, int n
size_t type_size;
hid_t mem_space = H5I_INVALID_HID;
hid_t sid1 = H5I_INVALID_HID;
- void * region_buf = NULL;
+ void *region_buf = NULL;
int ret_value = FAIL;
if (ndims < 0)
@@ -1490,7 +1490,7 @@ h5str_print_region_data_points(JNIEnv *env, hid_t region_space, hid_t region_id,
size_t jndx;
size_t type_size;
hid_t mem_space = H5I_INVALID_HID;
- void * region_buf = NULL;
+ void *region_buf = NULL;
int ret_value = FAIL;
UNUSED(ptdata);
@@ -2013,7 +2013,7 @@ h5str_render_bin_output(FILE *stream, hid_t container, hid_t tid, void *_mem, hs
unsigned char tempuchar;
unsigned int i;
H5T_str_t pad;
- char * s;
+ char *s;
if ((pad = H5Tget_strpad(tid)) < 0) {
ret_value = FAIL;
@@ -2234,7 +2234,7 @@ render_bin_output_region_data_blocks(FILE *stream, hid_t region_id, hid_t contai
size_t type_size;
hid_t sid1 = H5I_INVALID_HID;
hid_t mem_space = H5I_INVALID_HID;
- void * region_buf = NULL;
+ void *region_buf = NULL;
int blkndx;
int jndx;
int ret_value = SUCCEED;
@@ -2423,7 +2423,7 @@ render_bin_output_region_data_points(FILE *stream, hid_t region_space, hid_t reg
hsize_t *dims1 = NULL;
size_t type_size;
hid_t mem_space = H5I_INVALID_HID;
- void * region_buf = NULL;
+ void *region_buf = NULL;
int ret_value = SUCCEED;
UNUSED(ptdata);
@@ -2945,7 +2945,7 @@ h5str_dump_simple_data(JNIEnv *env, FILE *stream, hid_t container, hid_t type, v
for (i = 0, line_count = 0; i < nelmts; i++, line_count++) {
size_t bytes_in = 0; /* # of bytes to write */
- void * memref = mem + i * size;
+ void *memref = mem + i * size;
/* Render the data element*/
h5str_new(&buffer, 32 * size);
@@ -3003,7 +3003,7 @@ Java_hdf_hdf5lib_H5_H5AreadComplex(JNIEnv *env, jclass clss, jlong attr_id, jlon
size_t i;
hid_t p_type = H5I_INVALID_HID;
jsize n;
- char * readBuf = NULL;
+ char *readBuf = NULL;
herr_t status = FAIL;
UNUSED(clss);
@@ -3070,7 +3070,7 @@ Java_hdf_hdf5lib_H5_H5Acopy(JNIEnv *env, jclass clss, jlong src_id, jlong dst_id
hssize_t npoints;
hsize_t total_size = 0;
size_t type_size;
- jbyte * buf = NULL;
+ jbyte *buf = NULL;
hid_t tid = H5I_INVALID_HID;
hid_t sid = H5I_INVALID_HID;
herr_t retVal = FAIL;
@@ -3128,7 +3128,7 @@ Java_hdf_hdf5lib_H5_H5Dcopy(JNIEnv *env, jclass clss, jlong src_id, jlong dst_id
hssize_t npoints;
hsize_t total_size = 0, total_allocated_size;
size_t type_size;
- jbyte * buf = NULL;
+ jbyte *buf = NULL;
hid_t tid = H5I_INVALID_HID;
hid_t sid = H5I_INVALID_HID;
herr_t retVal = FAIL;
@@ -3203,9 +3203,9 @@ static int H5Gget_obj_info_full(hid_t loc_id, char **objname, int *otype, int
#endif
typedef struct info_all {
- char ** objname;
- int * otype;
- int * ltype;
+ char **objname;
+ int *otype;
+ int *ltype;
unsigned long *objno;
unsigned long *fno;
unsigned long idxnum;
@@ -3230,14 +3230,14 @@ Java_hdf_hdf5lib_H5_H5Gget_1obj_1info_1full(JNIEnv *env, jclass clss, jlong loc_
{
unsigned long *refs = NULL;
unsigned long *fnos = NULL;
- const char * gName = NULL;
- char ** oName = NULL;
+ const char *gName = NULL;
+ char **oName = NULL;
jboolean isCopy;
jstring str;
- jint * otarr = NULL;
- jint * ltarr = NULL;
- jlong * refP = NULL;
- jlong * fnoP = NULL;
+ jint *otarr = NULL;
+ jint *ltarr = NULL;
+ jlong *refP = NULL;
+ jlong *fnoP = NULL;
hid_t gid = (hid_t)loc_id;
int i;
int indexType = indx_type;
@@ -3337,10 +3337,10 @@ Java_hdf_hdf5lib_H5_H5Gget_1obj_1info_1max(JNIEnv *env, jclass clss, jlong loc_i
unsigned long *refs = NULL;
jboolean isCopy;
jstring str;
- jlong * refP = NULL;
- char ** oName = NULL;
- jint * otarr = NULL;
- jint * ltarr = NULL;
+ jlong *refP = NULL;
+ char **oName = NULL;
+ jint *otarr = NULL;
+ jint *ltarr = NULL;
int i;
herr_t ret_val = FAIL;
@@ -3537,7 +3537,7 @@ Java_hdf_hdf5lib_H5_H5export_1dataset(JNIEnv *env, jclass clss, jstring file_exp
jboolean isCopy;
herr_t ret_val = FAIL;
hid_t dataset_id = H5I_INVALID_HID;
- FILE * stream = NULL;
+ FILE *stream = NULL;
UNUSED(clss);
@@ -3593,7 +3593,7 @@ Java_hdf_hdf5lib_H5__1H5export_1dataset_1string(JNIEnv *env, jclass clss, jstrin
herr_t ret_val = FAIL;
hid_t file_id = H5I_INVALID_HID;
hid_t dataset_id = H5I_INVALID_HID;
- FILE * stream = NULL;
+ FILE *stream = NULL;
UNUSED(clss);
@@ -3659,7 +3659,7 @@ Java_hdf_hdf5lib_H5_H5export_1attribute(JNIEnv *env, jclass clss, jstring file_e
jboolean isCopy;
herr_t ret_val = FAIL;
hid_t attr_id = H5I_INVALID_HID;
- FILE * stream = NULL;
+ FILE *stream = NULL;
UNUSED(clss);