mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +03:00
Phase 2 pgindent run for v12.
Switch to 2.1 version of pg_bsd_indent. This formats multiline function declarations "correctly", that is with additional lines of parameter declarations indented to match where the first line's left parenthesis is. Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com
This commit is contained in:
@ -54,7 +54,7 @@ struct bloom_filter
|
||||
static int my_bloom_power(uint64 target_bitset_bits);
|
||||
static int optimal_k(uint64 bitset_bits, int64 total_elems);
|
||||
static void k_hashes(bloom_filter *filter, uint32 *hashes, unsigned char *elem,
|
||||
size_t len);
|
||||
size_t len);
|
||||
static inline uint32 mod_m(uint32 a, uint64 m);
|
||||
|
||||
/*
|
||||
|
@ -160,28 +160,28 @@ struct dshash_table
|
||||
hash_table->size_log2)])
|
||||
|
||||
static void delete_item(dshash_table *hash_table,
|
||||
dshash_table_item *item);
|
||||
dshash_table_item *item);
|
||||
static void resize(dshash_table *hash_table, size_t new_size);
|
||||
static inline void ensure_valid_bucket_pointers(dshash_table *hash_table);
|
||||
static inline dshash_table_item *find_in_bucket(dshash_table *hash_table,
|
||||
const void *key,
|
||||
dsa_pointer item_pointer);
|
||||
const void *key,
|
||||
dsa_pointer item_pointer);
|
||||
static void insert_item_into_bucket(dshash_table *hash_table,
|
||||
dsa_pointer item_pointer,
|
||||
dshash_table_item *item,
|
||||
dsa_pointer *bucket);
|
||||
dsa_pointer item_pointer,
|
||||
dshash_table_item *item,
|
||||
dsa_pointer *bucket);
|
||||
static dshash_table_item *insert_into_bucket(dshash_table *hash_table,
|
||||
const void *key,
|
||||
dsa_pointer *bucket);
|
||||
const void *key,
|
||||
dsa_pointer *bucket);
|
||||
static bool delete_key_from_bucket(dshash_table *hash_table,
|
||||
const void *key,
|
||||
dsa_pointer *bucket_head);
|
||||
const void *key,
|
||||
dsa_pointer *bucket_head);
|
||||
static bool delete_item_from_bucket(dshash_table *hash_table,
|
||||
dshash_table_item *item,
|
||||
dsa_pointer *bucket_head);
|
||||
dshash_table_item *item,
|
||||
dsa_pointer *bucket_head);
|
||||
static inline dshash_hash hash_key(dshash_table *hash_table, const void *key);
|
||||
static inline bool equal_keys(dshash_table *hash_table,
|
||||
const void *a, const void *b);
|
||||
const void *a, const void *b);
|
||||
|
||||
#define PARTITION_LOCK(hash_table, i) \
|
||||
(&(hash_table)->control->partitions[(i)].lock)
|
||||
|
@ -261,13 +261,13 @@ struct IntegerSet
|
||||
* Prototypes for internal functions.
|
||||
*/
|
||||
static void intset_update_upper(IntegerSet *intset, int level,
|
||||
intset_node *new_node, uint64 new_node_item);
|
||||
intset_node *new_node, uint64 new_node_item);
|
||||
static void intset_flush_buffered_values(IntegerSet *intset);
|
||||
|
||||
static int intset_binsrch_uint64(uint64 value, uint64 *arr, int arr_elems,
|
||||
bool nextkey);
|
||||
static int intset_binsrch_leaf(uint64 value, leaf_item *arr, int arr_elems,
|
||||
bool nextkey);
|
||||
static int intset_binsrch_uint64(uint64 value, uint64 *arr, int arr_elems,
|
||||
bool nextkey);
|
||||
static int intset_binsrch_leaf(uint64 value, leaf_item *arr, int arr_elems,
|
||||
bool nextkey);
|
||||
|
||||
static uint64 simple8b_encode(const uint64 *ints, int *num_encoded, uint64 base);
|
||||
static int simple8b_decode(uint64 codeword, uint64 *decoded, uint64 base);
|
||||
|
@ -27,9 +27,9 @@
|
||||
#include "lib/pairingheap.h"
|
||||
|
||||
static pairingheap_node *merge(pairingheap *heap, pairingheap_node *a,
|
||||
pairingheap_node *b);
|
||||
pairingheap_node *b);
|
||||
static pairingheap_node *merge_children(pairingheap *heap,
|
||||
pairingheap_node *children);
|
||||
pairingheap_node *children);
|
||||
|
||||
/*
|
||||
* pairingheap_allocate
|
||||
|
Reference in New Issue
Block a user