Skip to content

Commit 4a61319

Browse files
Committing clang-format changes
1 parent c95d61e commit 4a61319

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/commons/collections/include/pdc_hash_table.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ typedef struct _HashTablePair {
100100
*/
101101

102102
struct _HashTableIterator {
103-
HashTable *hash_table;
103+
HashTable * hash_table;
104104
HashTableEntry *next_entry;
105105
unsigned int next_chain;
106106
};

src/commons/collections/pdc_hash_table.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ struct _HashTableEntry {
4242
};
4343

4444
struct _HashTable {
45-
HashTableEntry **table;
45+
HashTableEntry ** table;
4646
unsigned int table_size;
4747
HashTableHashFunc hash_func;
4848
HashTableEqualFunc equal_func;
@@ -72,7 +72,7 @@ pdc_default_string_hash_func(HashTableKey value)
7272
{
7373
FUNC_ENTER(NULL);
7474

75-
char *str = (char *)value;
75+
char * str = (char *)value;
7676
unsigned int hash = 5381;
7777
int c;
7878

@@ -314,9 +314,9 @@ hash_table_enlarge(HashTable *hash_table)
314314
HashTableEntry **old_table;
315315
unsigned int old_table_size;
316316
unsigned int old_prime_index;
317-
HashTableEntry *rover;
318-
HashTablePair *pair;
319-
HashTableEntry *next;
317+
HashTableEntry * rover;
318+
HashTablePair * pair;
319+
HashTableEntry * next;
320320
unsigned int index;
321321
unsigned int i;
322322

@@ -373,7 +373,7 @@ hash_table_insert(HashTable *hash_table, HashTableKey key, HashTableValue value)
373373
FUNC_ENTER(NULL);
374374

375375
HashTableEntry *rover;
376-
HashTablePair *pair;
376+
HashTablePair * pair;
377377
HashTableEntry *newentry;
378378
unsigned int index;
379379

@@ -459,7 +459,7 @@ hash_table_lookup(HashTable *hash_table, HashTableKey key)
459459
FUNC_ENTER(NULL);
460460

461461
HashTableEntry *rover;
462-
HashTablePair *pair;
462+
HashTablePair * pair;
463463
unsigned int index;
464464

465465
/* Generate the hash of the key and hence the index into the table */
@@ -491,8 +491,8 @@ hash_table_remove(HashTable *hash_table, HashTableKey key)
491491
FUNC_ENTER(NULL);
492492

493493
HashTableEntry **rover;
494-
HashTableEntry *entry;
495-
HashTablePair *pair;
494+
HashTableEntry * entry;
495+
HashTablePair * pair;
496496
unsigned int index;
497497
int result;
498498

@@ -583,7 +583,7 @@ hash_table_iter_next(HashTableIterator *iterator)
583583
FUNC_ENTER(NULL);
584584

585585
HashTableEntry *current_entry;
586-
HashTable *hash_table;
586+
HashTable * hash_table;
587587
HashTablePair pair = {NULL, NULL};
588588
unsigned int chain;
589589

0 commit comments

Comments
 (0)