beautify the code with AStyle
This commit is contained in:
parent
ff94368d56
commit
d2ec748984
|
|
@ -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.
|
||||||
|
|
|
||||||
971
src/misc/hash.c
971
src/misc/hash.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue