Fix formatting of #includes

This commit is contained in:
2026-01-28 12:36:48 +01:00
parent 468345b44b
commit a3b29d6652
13 changed files with 24 additions and 13 deletions
+2
View File
@@ -1,8 +1,10 @@
#if defined(MAIN_SIMULATION) || defined(MAIN_TEST)
#define QUAKEY_ENABLE_MOCKS
#endif
#include <stdint.h>
#include <quakey.h>
#include "basic.h"
bool streq(string s1, string s2)
+4 -4
View File
@@ -6,13 +6,13 @@
#include <assert.h>
#include <stdint.h>
#include "sha256.h"
#include "file_system.h"
#include "hash_set.h"
#include "config.h"
#include "tcp.h"
#include "sha256.h"
#include "config.h"
#include "message.h"
#include "hash_set.h"
#include "byte_queue.h"
#include "file_system.h"
#include "chunk_server.h"
static string hash2path(ChunkServer *state, SHA256 hash, char *out)
+4
View File
@@ -1,6 +1,10 @@
#ifndef CHUNK_SERVER_INCLUDED
#define CHUNK_SERVER_INCLUDED
#include "tcp.h"
#include "basic.h"
#include "hash_set.h"
#define TAG_METADATA_SERVER 1
#define TAG_CHUNK_SERVER 2
-4
View File
@@ -5,13 +5,9 @@
#define MAX_CHUNK_SERVERS 128
#define MAX_OPERATIONS 128
#define MAX_REQUESTS_PER_QUEUE 128
#define REPLICATION_FACTOR 3
#define SYNC_INTERVAL 10
#define RESPONSE_TIME_LIMIT 90
#define DELETION_TIMEOUT 30
#endif // CONFIG_INCLUDED
+1
View File
@@ -1,6 +1,7 @@
#if defined(MAIN_SIMULATION) || defined(MAIN_TEST)
#define QUAKEY_ENABLE_MOCKS
#endif
#include <stdint.h>
#include <quakey.h>
+2
View File
@@ -4,8 +4,10 @@
#if defined(MAIN_SIMULATION) || defined(MAIN_TEST)
#define QUAKEY_ENABLE_MOCKS
#endif
#include <stdint.h>
#include <quakey.h>
#include "basic.h"
typedef struct {
+2
View File
@@ -1,8 +1,10 @@
#if defined(MAIN_SIMULATION) || defined(MAIN_TEST)
#define QUAKEY_ENABLE_MOCKS
#endif
#include <stdint.h>
#include <quakey.h>
#include "hash_set.h"
void hash_set_init(HashSet *set)
+2 -1
View File
@@ -3,12 +3,13 @@
#else
#define POLL_CAPACITY 1024
#endif
#include <stdint.h>
#include <quakey.h>
#include "metadata_server.h"
#include "chunk_server.h"
#include "random_client.h"
#include "metadata_server.h"
#ifdef MAIN_METADATA_SERVER
int main(int argc, char **argv)
+2
View File
@@ -1,8 +1,10 @@
#if defined(MAIN_SIMULATION) || defined(MAIN_TEST)
#define QUAKEY_ENABLE_MOCKS
#endif
#include <stdint.h>
#include <quakey.h>
#include "message.h"
bool binary_read(BinaryReader *reader, void *dst, int len)
+2
View File
@@ -4,8 +4,10 @@
#if defined(MAIN_SIMULATION) || defined(MAIN_TEST)
#define QUAKEY_ENABLE_MOCKS
#endif
#include <stdint.h>
#include <quakey.h>
#include "basic.h"
#include "byte_queue.h"
+2 -2
View File
@@ -3,10 +3,10 @@
#include "tcp.h"
#include "wal.h"
#include "file_tree.h"
#include "config.h"
#include "basic.h"
#include "config.h"
#include "hash_set.h"
#include "file_tree.h"
#define CONNECTION_TAG_CLIENT -2
#define CONNECTION_TAG_UNKNOWN -3
-1
View File
@@ -1,4 +1,3 @@
#if defined(MAIN_SIMULATION) || defined(MAIN_TEST)
#define QUAKEY_ENABLE_MOCKS
#endif
+1 -1
View File
@@ -7,8 +7,8 @@
#include <assert.h>
#include "wal.h"
#include "file_system.h"
#include "file_tree.h"
#include "file_system.h"
#define WAL_MAGIC 0xcafebebe
#define WAL_VERSION 1