Skip to content

Commit

Permalink
Linker_require(): facilitate check of code equivalence across commits
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperVector committed Aug 30, 2020
1 parent d832e26 commit 79a60b9
Show file tree
Hide file tree
Showing 153 changed files with 154 additions and 157 deletions.
2 changes: 1 addition & 1 deletion admin/Admin.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "util/UniqueName.h"
#include "util/events/EventBase.h"
#include "util/Linker.h"
Linker_require("admin/Admin.c");
Linker_require("admin/Admin.c")

#include <stdbool.h>

Expand Down
2 changes: 1 addition & 1 deletion admin/AdminLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "util/log/Log.h"
#include "util/events/EventBase.h"
#include "util/Linker.h"
Linker_require("admin/AdminLog.c");
Linker_require("admin/AdminLog.c")

struct Log* AdminLog_registerNew(struct Admin* admin,
struct Allocator* alloc,
Expand Down
2 changes: 1 addition & 1 deletion admin/AuthorizedPasswords.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "crypto/CryptoAuth.h"
#include "memory/Allocator.h"
#include "util/Linker.h"
Linker_require("admin/AuthorizedPasswords.c");
Linker_require("admin/AuthorizedPasswords.c")

/**
* Init the AuthorizedPasswords admin function.
Expand Down
2 changes: 1 addition & 1 deletion admin/angel/Core.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "tunnel/IpTunnel.h"
#include "util/events/FakeNetwork.h"
#include "util/Linker.h"
Linker_require("admin/angel/Core.c");
Linker_require("admin/angel/Core.c")

void Core_initTunnel(String* desiredDeviceName,
struct Sockaddr* addr,
Expand Down
2 changes: 1 addition & 1 deletion admin/angel/InterfaceWaiter.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "interface/Iface.h"
#include "util/events/EventBase.h"
#include "util/Linker.h"
Linker_require("admin/angel/InterfaceWaiter.c");
Linker_require("admin/angel/InterfaceWaiter.c")

/**
* Wait for incoming data on an interface.
Expand Down
2 changes: 1 addition & 1 deletion benc/Dict.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "memory/Allocator.h"
#include "benc/Object.h"
#include "util/Linker.h"
Linker_require("benc/Dict.c");
Linker_require("benc/Dict.c")

struct Dict_Entry;
struct Dict_Entry {
Expand Down
2 changes: 1 addition & 1 deletion benc/List.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "memory/Allocator.h"
#include "benc/Object.h"
#include "util/Linker.h"
Linker_require("benc/List.c");
Linker_require("benc/List.c")

struct List_Item;
struct List_Item {
Expand Down
2 changes: 1 addition & 1 deletion benc/String.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "memory/Allocator.h"
#include "util/CString.h"
#include "util/Linker.h"
Linker_require("benc/String.c");
Linker_require("benc/String.c")

#include <stdbool.h>
#include <stddef.h> // NULL
Expand Down
2 changes: 1 addition & 1 deletion benc/serialization/cloner/Cloner.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "benc/Dict.h"
#include "benc/String.h"
#include "util/Linker.h"
Linker_require("benc/serialization/cloner/Cloner.c");
Linker_require("benc/serialization/cloner/Cloner.c")

Dict* Cloner_cloneDict(Dict* orig, struct Allocator* alloc);

Expand Down
2 changes: 1 addition & 1 deletion benc/serialization/json/JsonBencMessageReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "memory/Allocator.h"
#include "wire/Message.h"
#include "util/Linker.h"
Linker_require("benc/serialization/json/JsonBencMessageReader.c");
Linker_require("benc/serialization/json/JsonBencMessageReader.c")

#include <stdbool.h>

Expand Down
2 changes: 1 addition & 1 deletion benc/serialization/json/JsonBencSerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include "benc/serialization/BencSerializer.h"
#include "util/Linker.h"
Linker_require("benc/serialization/json/JsonBencSerializer.c");
Linker_require("benc/serialization/json/JsonBencSerializer.c")

const struct BencSerializer* JsonBencSerializer_get(void);
#endif
2 changes: 1 addition & 1 deletion benc/serialization/standard/BencMessageReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "memory/Allocator.h"
#include "wire/Message.h"
#include "util/Linker.h"
Linker_require("benc/serialization/standard/BencMessageReader.c");
Linker_require("benc/serialization/standard/BencMessageReader.c")

Er_DEFUN(Dict* BencMessageReader_read(struct Message* msg, struct Allocator* alloc));

Expand Down
2 changes: 1 addition & 1 deletion benc/serialization/standard/BencMessageWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "exception/Except.h"
#include "wire/Message.h"
#include "util/Linker.h"
Linker_require("benc/serialization/standard/BencMessageWriter.c");
Linker_require("benc/serialization/standard/BencMessageWriter.c")

Er_DEFUN(void BencMessageWriter_write(Dict* toWrite, struct Message* msg));

Expand Down
2 changes: 1 addition & 1 deletion client/AdminClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "util/events/EventBase.h"
#include "util/platform/Sockaddr.h"
#include "util/Linker.h"
Linker_require("client/AdminClient.c");
Linker_require("client/AdminClient.c")

enum AdminClient_Error
{
Expand Down
2 changes: 1 addition & 1 deletion client/Configurator.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "util/events/EventBase.h"
#include "util/platform/Sockaddr.h"
#include "util/Linker.h"
Linker_require("client/Configurator.c");
Linker_require("client/Configurator.c")

#include <stdint.h>

Expand Down
2 changes: 1 addition & 1 deletion crypto/AddressCalc.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define AddressCalc_H

#include "util/Linker.h"
Linker_require("crypto/AddressCalc.c");
Linker_require("crypto/AddressCalc.c")

#include <stdint.h>
#include <stdbool.h>
Expand Down
2 changes: 1 addition & 1 deletion crypto/CryptoAuth.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "util/events/EventBase.h"
#include "wire/Message.h"
#include "util/Linker.h"
Linker_require("crypto/CryptoAuth.c");
Linker_require("crypto/CryptoAuth.c")

#include <stdint.h>
#include <stdbool.h>
Expand Down
2 changes: 1 addition & 1 deletion crypto/Key.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "crypto/random/Random.h"
#include "memory/Allocator.h"
#include "util/Linker.h"
Linker_require("crypto/Key.c");
Linker_require("crypto/Key.c")

#include <stdint.h>

Expand Down
2 changes: 1 addition & 1 deletion crypto/Sign.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "crypto/random/Random.h"
#include "wire/Message.h"
#include "util/Linker.h"
Linker_require("crypto/Sign.c");
Linker_require("crypto/Sign.c")

void Sign_signingKeyPairFromCurve25519(uint8_t keypairOut[64], uint8_t secretCryptoKey[32]);

Expand Down
2 changes: 1 addition & 1 deletion crypto/Sign_admin.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "memory/Allocator.h"
#include "crypto/random/Random.h"
#include "util/Linker.h"
Linker_require("crypto/Sign_admin.c");
Linker_require("crypto/Sign_admin.c")

void Sign_admin_register(uint8_t* privateKey,
struct Admin* admin,
Expand Down
2 changes: 1 addition & 1 deletion crypto/random/Random.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "util/log/Log.h"
#include "crypto/random/seed/RandomSeed.h"
#include "util/Linker.h"
Linker_require("crypto/random/Random.c");
Linker_require("crypto/random/Random.c")

#include <stdint.h>

Expand Down
2 changes: 1 addition & 1 deletion crypto/random/libuv/LibuvEntropyProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "util/events/EventBase.h"
#include "util/log/Log.h"
#include "util/Linker.h"
Linker_require("crypto/random/libuv/LibuvEntropyProvider.c");
Linker_require("crypto/random/libuv/LibuvEntropyProvider.c")

struct LibuvEntropyProvider;

Expand Down
2 changes: 1 addition & 1 deletion crypto/random/seed/BsdKernArndSysctlRandomSeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "util/Linker.h"

#if defined(freebsd)
Linker_require("crypto/random/seed/BsdKernArndSysctlRandomSeed.c");
Linker_require("crypto/random/seed/BsdKernArndSysctlRandomSeed.c")
struct RandomSeed* BsdKernArndSysctlRandomSeed_new(struct Allocator* alloc);
RandomSeedProvider_register(BsdKernArndSysctlRandomSeed_new)
#endif
Expand Down
2 changes: 1 addition & 1 deletion crypto/random/seed/DevUrandomRandomSeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "util/Linker.h"

#ifndef win32
Linker_require("crypto/random/seed/DevUrandomRandomSeed.c");
Linker_require("crypto/random/seed/DevUrandomRandomSeed.c")
struct RandomSeed* DevUrandomRandomSeed_new(struct Allocator* alloc);
RandomSeedProvider_register(DevUrandomRandomSeed_new)
#endif
Expand Down
2 changes: 1 addition & 1 deletion crypto/random/seed/GetEntropyRandomSeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#endif

#ifdef GetEntropyRandomSeed_USEIT
Linker_require("crypto/random/seed/GetEntropyRandomSeed.c");
Linker_require("crypto/random/seed/GetEntropyRandomSeed.c")
struct RandomSeed* GetEntropyRandomSeed_new(struct Allocator* alloc);
RandomSeedProvider_register(GetEntropyRandomSeed_new)
#endif
Expand Down
2 changes: 1 addition & 1 deletion crypto/random/seed/LinuxRandomUuidSysctlRandomSeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "util/Linker.h"

#if defined(linux) && !defined(__ILP32__) && !defined(__aarch64__) && defined(__GLIBC__)
Linker_require("crypto/random/seed/LinuxRandomUuidSysctlRandomSeed.c");
Linker_require("crypto/random/seed/LinuxRandomUuidSysctlRandomSeed.c")
struct RandomSeed* LinuxRandomUuidSysctlRandomSeed_new(struct Allocator* alloc);
RandomSeedProvider_register(LinuxRandomUuidSysctlRandomSeed_new)
#endif
Expand Down
2 changes: 1 addition & 1 deletion crypto/random/seed/ProcSysKernelRandomUuidRandomSeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "util/Linker.h"

#ifdef linux
Linker_require("crypto/random/seed/ProcSysKernelRandomUuidRandomSeed.c");
Linker_require("crypto/random/seed/ProcSysKernelRandomUuidRandomSeed.c")
struct RandomSeed* ProcSysKernelRandomUuidRandomSeed_new(struct Allocator* alloc);
RandomSeedProvider_register(ProcSysKernelRandomUuidRandomSeed_new)
#endif
Expand Down
2 changes: 1 addition & 1 deletion crypto/random/seed/RandomSeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "memory/Allocator.h"
#include "util/log/Log.h"
#include "util/Linker.h"
Linker_require("crypto/random/seed/RandomSeed.c");
Linker_require("crypto/random/seed/RandomSeed.c")

#include <stdint.h>

Expand Down
2 changes: 1 addition & 1 deletion crypto/random/seed/RtlGenRandomSeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "util/Linker.h"

#ifdef win32
Linker_require("crypto/random/seed/RtlGenRandomSeed.c");
Linker_require("crypto/random/seed/RtlGenRandomSeed.c")
struct RandomSeed* RtlGenRandomSeed_new(struct Allocator* alloc);
RandomSeedProvider_register(RtlGenRandomSeed_new)
#endif
Expand Down
2 changes: 1 addition & 1 deletion crypto/random/seed/SystemRandomSeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "crypto/random/seed/RandomSeed.h"
#include "crypto/random/seed/SystemRandomSeed.h"
#include "util/Linker.h"
Linker_require("crypto/random/seed/SystemRandomSeed.c");
Linker_require("crypto/random/seed/SystemRandomSeed.c")

/**
* Create a new randomseed with the default system providers as well as optionally more providers
Expand Down
2 changes: 1 addition & 1 deletion crypto/random/test/DeterminentRandomSeed.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "crypto/random/seed/RandomSeed.h"
#include "memory/Allocator.h"
#include "util/Linker.h"
Linker_require("crypto/random/test/DeterminentRandomSeed.c");
Linker_require("crypto/random/test/DeterminentRandomSeed.c")

struct RandomSeed* DeterminentRandomSeed_new(struct Allocator* alloc, uint8_t buff[64]);

Expand Down
2 changes: 1 addition & 1 deletion dht/Address.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include "benc/String.h"
#include "memory/Allocator.h"
#include "util/Linker.h"
Linker_require("dht/Address.c");
Linker_require("dht/Address.c")

#include <stdint.h>
#include <stdbool.h>
Expand Down
2 changes: 1 addition & 1 deletion dht/DHTModuleRegistry.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "io/Writer.h"
#include "benc/Object.h"
#include "util/Linker.h"
Linker_require("dht/DHTModuleRegistry.c");
Linker_require("dht/DHTModuleRegistry.c")


/** State of the registry. */
Expand Down
2 changes: 1 addition & 1 deletion dht/EncodingSchemeModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "memory/Allocator.h"
#include "util/log/Log.h"
#include "util/Linker.h"
Linker_require("dht/EncodingSchemeModule.c");
Linker_require("dht/EncodingSchemeModule.c")

void EncodingSchemeModule_register(struct DHTModuleRegistry* reg,
struct Log* logger,
Expand Down
2 changes: 1 addition & 1 deletion dht/Pathfinder.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "crypto/random/Random.h"
#include "admin/Admin.h"
#include "util/Linker.h"
Linker_require("dht/Pathfinder.c");
Linker_require("dht/Pathfinder.c")

struct Pathfinder
{
Expand Down
2 changes: 1 addition & 1 deletion dht/ReplyModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include "dht/DHTModuleRegistry.h"
#include "util/Linker.h"
Linker_require("dht/ReplyModule.c");
Linker_require("dht/ReplyModule.c")

/**
* The reply module replies to all incoming queries.
Expand Down
2 changes: 1 addition & 1 deletion dht/SerializationModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include "util/log/Log.h"
#include "dht/DHTModuleRegistry.h"
#include "util/Linker.h"
Linker_require("dht/SerializationModule.c");
Linker_require("dht/SerializationModule.c")

/**
* Register a new SerializationModule.
Expand Down
2 changes: 1 addition & 1 deletion dht/dhtcore/Janitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "util/events/EventBase.h"
#include "util/log/Log.h"
#include "util/Linker.h"
Linker_require("dht/dhtcore/Janitor.c");
Linker_require("dht/dhtcore/Janitor.c")

#include <stdint.h>

Expand Down
2 changes: 1 addition & 1 deletion dht/dhtcore/Janitor_admin.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "admin/Admin.h"
#include "dht/dhtcore/Janitor.h"
#include "util/Linker.h"
Linker_require("dht/dhtcore/Janitor_admin.c");
Linker_require("dht/dhtcore/Janitor_admin.c")

void Janitor_admin_register(struct Janitor* janitor, struct Admin* admin, struct Allocator* alloc);

Expand Down
2 changes: 1 addition & 1 deletion dht/dhtcore/Node.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include "memory/Allocator.h"
#include "util/Identity.h"
#include "util/Linker.h"
Linker_require("dht/dhtcore/Node.c");
Linker_require("dht/dhtcore/Node.c")

struct Node_Link;

Expand Down
2 changes: 1 addition & 1 deletion dht/dhtcore/NodeStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include "switch/EncodingScheme.h"
#include "util/Linker.h"
#include "util/events/EventBase.h"
Linker_require("dht/dhtcore/NodeStore.c");
Linker_require("dht/dhtcore/NodeStore.c")

#include <stdint.h>
#include <stdbool.h>
Expand Down
2 changes: 1 addition & 1 deletion dht/dhtcore/NodeStore_admin.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "dht/dhtcore/NodeStore.h"
#include "memory/Allocator.h"
#include "util/Linker.h"
Linker_require("dht/dhtcore/NodeStore_admin.c");
Linker_require("dht/dhtcore/NodeStore_admin.c")

void NodeStore_admin_register(struct NodeStore* module,
struct Admin* admin,
Expand Down
2 changes: 1 addition & 1 deletion dht/dhtcore/ReplySerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include "memory/Allocator.h"
#include "util/log/Log.h"
#include "util/Linker.h"
Linker_require("dht/dhtcore/ReplySerializer.c");
Linker_require("dht/dhtcore/ReplySerializer.c")

/**
* For serializing and parsing responses to getPeers and search requests.
Expand Down
2 changes: 1 addition & 1 deletion dht/dhtcore/Router.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include "memory/Allocator.h"
#include "dht/dhtcore/Node.h"
#include "util/Linker.h"
Linker_require("dht/dhtcore/Router.c");
Linker_require("dht/dhtcore/Router.c")

/**
* This is a facad around the other internals of dht/dhtcore.
Expand Down
Loading

0 comments on commit 79a60b9

Please sign in to comment.