Skip to content

Commit

Permalink
Change code style
Browse files Browse the repository at this point in the history
  • Loading branch information
minomicetto committed Sep 16, 2024
1 parent 5650315 commit e94825f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 345 deletions.
339 changes: 0 additions & 339 deletions src/common/oph-lib-binary-io (copy).c

This file was deleted.

6 changes: 3 additions & 3 deletions src/common/oph-lib-binary-io.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
extern int msglevel;


int oph_iob_copy_in_binary(void *num, char **bin_val, size_t *length, unsigned int num_type)
int oph_iob_copy_in_binary(void *num, char **bin_val, size_t * length, unsigned int num_type)
{
size_t sizeof_num;
int res = oph_iob_sizeof_type(num_type, &sizeof_num);
Expand All @@ -39,7 +39,7 @@ int oph_iob_copy_in_binary(void *num, char **bin_val, size_t *length, unsigned i
return OPH_IOB_OK;
}

int oph_iob_readas_binary(void *num, char **bin_val, size_t *length, unsigned int num_type)
int oph_iob_readas_binary(void *num, char **bin_val, size_t * length, unsigned int num_type)
{
size_t sizeof_num;
int res = oph_iob_sizeof_type(num_type, &sizeof_num);
Expand Down Expand Up @@ -261,7 +261,7 @@ int oph_iob_bin_array_get(const char *bin_array, char **bin_val, long long posit
}

/* INTERNAL FUNCTIONS SECTION */
int oph_iob_sizeof_type(unsigned int num_type, size_t *sizeof_num)
int oph_iob_sizeof_type(unsigned int num_type, size_t * sizeof_num)
{
switch (num_type) {
case OPH_IOB_LONG:
Expand Down
6 changes: 3 additions & 3 deletions src/common/oph-lib-binary-io.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
#define oph_iob_readas_binary_l(num,bin_val,length) oph_iob_readas_binary(num,bin_val,length,OPH_IOB_LONG)
#define oph_iob_readas_binary_s(num,bin_val,length) oph_iob_readas_binary(num,bin_val,length,OPH_IOB_SHORT)
#define oph_iob_readas_binary_b(num,bin_val,length) oph_iob_readas_binary(num,bin_val,length,OPH_IOB_BYTE)
int oph_iob_readas_binary(void *num, char **bin_val, size_t *length, unsigned int num_type);
int oph_iob_readas_binary(void *num, char **bin_val, size_t * length, unsigned int num_type);


/**
Expand All @@ -100,7 +100,7 @@ int oph_iob_readas_binary(void *num, char **bin_val, size_t *length, unsigned in
#define oph_iob_copy_in_binary_l(num,bin_val,length) oph_iob_copy_in_binary(num,bin_val,length,OPH_IOB_LONG)
#define oph_iob_copy_in_binary_s(num,bin_val,length) oph_iob_copy_in_binary(num,bin_val,length,OPH_IOB_SHORT)
#define oph_iob_copy_in_binary_b(num,bin_val,length) oph_iob_copy_in_binary(num,bin_val,length,OPH_IOB_BYTE)
int oph_iob_copy_in_binary(void *num, char **bin_val, size_t *length, unsigned int num_type);
int oph_iob_copy_in_binary(void *num, char **bin_val, size_t * length, unsigned int num_type);


/**
Expand Down Expand Up @@ -270,5 +270,5 @@ int oph_iob_bin_array_get(const char *bin_array, char **bin_val, long long posit
/**
Internal functions
*/
int oph_iob_sizeof_type(unsigned int num_type, size_t *sizeof_num);
int oph_iob_sizeof_type(unsigned int num_type, size_t * sizeof_num);
#endif

0 comments on commit e94825f

Please sign in to comment.