beautify the code with AStyle

This commit is contained in:
Holger Vogt 2017-11-04 18:15:12 +01:00
parent ff94368d56
commit d2ec748984
2 changed files with 520 additions and 519 deletions

View File

@ -69,20 +69,20 @@ typedef struct nghashbox NGHASHBOX, *NGHASHPTR;
* on all architecture types include 64bits. * on all architecture types include 64bits.
* ----------------------------------------------------------------- */ * ----------------------------------------------------------------- */
typedef enum { typedef enum {
NGHASH_UNIQUE = 1 << 0, NGHASH_UNIQUE = 1 << 0,
NGHASH_POWER_OF_TWO = 1 << 1, NGHASH_POWER_OF_TWO = 1 << 1,
NGHASH_UNIQUE_TWO = NGHASH_UNIQUE | NGHASH_POWER_OF_TWO NGHASH_UNIQUE_TWO = NGHASH_UNIQUE | NGHASH_POWER_OF_TWO
} NGHASHFLAGS_T ; } NGHASHFLAGS_T ;
enum nghash_default_func_t { enum nghash_default_func_t {
NGHASH_FUNC_NUM = -2, NGHASH_FUNC_NUM = -2,
NGHASH_FUNC_PTR = -1, NGHASH_FUNC_PTR = -1,
NGHASH_FUNC_STR = 0 NGHASH_FUNC_STR = 0
}; };
typedef struct nghash_iter_rec { typedef struct nghash_iter_rec {
struct ngtable_rec *position ; struct ngtable_rec *position ;
} NGHASHITER, *NGHASHITERPTR ; } NGHASHITER, *NGHASHITERPTR ;
/* ----------------------------------------------------------------- /* -----------------------------------------------------------------
@ -266,8 +266,8 @@ Function:
*/ */
extern NGHASHPTR nghash_init_with_parms( nghash_compare_func_t *comp_func, extern NGHASHPTR nghash_init_with_parms( nghash_compare_func_t *comp_func,
nghash_func_t *hash_func, int numentries, int max_density, nghash_func_t *hash_func, int numentries, int max_density,
double growth, NGHASHFLAGS_T flags ) ; double growth, NGHASHFLAGS_T flags ) ;
/* /*
Function: Function:
Returns a hash table with the given number of entries. Returns a hash table with the given number of entries.

File diff suppressed because it is too large Load Diff