Merge pull request #59 from michael-loki/more_deeceeify

De-C-ify several .h headers
pull/68/head
Jeff 6 years ago committed by GitHub
commit 2c9f6da29b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,9 +2,9 @@
#define LLARP_H_
#include <llarp/dht.h>
#include <llarp/ev.h>
#include <llarp/logic.h>
#include <llarp/logic.hpp>
#include <llarp/mem.h>
#include <llarp/version.h>
#include <llarp/version.hpp>
#ifdef __cplusplus
#include <llarp/service/address.hpp> // for service::address

@ -1,8 +1,8 @@
#ifndef LLARP_BENCODE_H
#define LLARP_BENCODE_H
#include <llarp/buffer.h>
#include <llarp/common.h>
#include <llarp/proto.h>
#include <llarp/common.hpp>
#include <llarp/proto.hpp>
#include <stdbool.h>
#include <stdint.h>

@ -1,6 +1,6 @@
#ifndef LLARP_BUFFER_H_
#define LLARP_BUFFER_H_
#include <llarp/common.h>
#include <llarp/common.hpp>
#include <llarp/mem.h>
#include <stdbool.h>
#include <stdio.h>

@ -1,5 +1,5 @@
#ifndef LLARP_COMMON_H
#define LLARP_COMMON_H
#ifndef LLARP_COMMON_HPP
#define LLARP_COMMON_HPP
#ifdef __STRICT_ANSI__
#define INLINE __inline__
#else

@ -1,7 +1,7 @@
#ifndef LLARP_CRYPTO_H_
#define LLARP_CRYPTO_H_
#include <llarp/buffer.h>
#include <llarp/common.h>
#include <llarp/common.hpp>
#include <stdbool.h>
#include <stdint.h>

@ -1,5 +1,5 @@
#ifndef LLARP_DEFAULTS_H
#define LLARP_DEFAULTS_H
#ifndef LLARP_DEFAULTS_HPP
#define LLARP_DEFAULTS_HPP
#ifndef DEFAULT_RESOLVER_US
#define DEFAULT_RESOLVER_US "1.1.1.1"
@ -27,4 +27,4 @@
#endif
#endif
#endif
#endif

@ -1,5 +1,5 @@
#ifndef LLARP_ENDIAN_H
#define LLARP_ENDIAN_H
#ifndef LLARP_ENDIAN_HPP
#define LLARP_ENDIAN_HPP
// adapted from libi2pd

@ -7,7 +7,7 @@
#include <llarp/net.hpp>
#include <llarp/ev.h>
#include <llarp/link/session.hpp>
#include <llarp/logic.h>
#include <llarp/logic.hpp>
#include <list>
struct llarp_router;

@ -1,5 +1,5 @@
#ifndef LLARP_LOGIC_H
#define LLARP_LOGIC_H
#ifndef LLARP_LOGIC_HPP
#define LLARP_LOGIC_HPP
#include <llarp/mem.h>
#include <llarp/threadpool.h>
#include <llarp/timer.hpp>

@ -1,6 +1,6 @@
#ifndef LLARP_NODEDB_HPP
#define LLARP_NODEDB_HPP
#include <llarp/common.h>
#include <llarp/common.hpp>
#include <llarp/crypto.h>
#include <llarp/router_contact.hpp>
#include <llarp/router_id.hpp>

@ -1,5 +1,5 @@
#ifndef LLARP_PROTO_H
#define LLARP_PROTO_H
#ifndef LLARP_PROTO_HPP
#define LLARP_PROTO_HPP
#ifndef LLARP_PROTO_VERSION
#define LLARP_PROTO_VERSION (0)

@ -2,7 +2,7 @@
#define LLARP_ROUTER_H_
#include <llarp/config.h>
#include <llarp/ev.h>
#include <llarp/logic.h>
#include <llarp/logic.hpp>
#include <llarp/threadpool.h>
#include <llarp/buffer.h>

@ -1,6 +1,6 @@
#ifndef LLARP_STRING_H
#define LLARP_STRING_H
#include <llarp/common.h>
#include <llarp/common.hpp>
#ifndef __FreeBSD__
#if !(__APPLE__ && __MACH__)

@ -1,7 +1,7 @@
#ifndef LLARP_TIMER_HPP
#define LLARP_TIMER_HPP
#include <llarp/common.h>
#include <llarp/common.hpp>
#include <llarp/threadpool.h>
#include <llarp/time.hpp>

@ -1,5 +1,5 @@
#ifndef LLARP_VERSION_H
#define LLARP_VERSION_H
#ifndef LLARP_VERSION_HPP
#define LLARP_VERSION_HPP
#ifndef LLARP_VERSION_MAJ
#define LLARP_VERSION_MAJ "0"
@ -28,4 +28,5 @@
#ifndef LLARP_RELEASE_MOTTO
#define LLARP_RELEASE_MOTTO "(dev build)"
#endif
#endif

@ -2,7 +2,7 @@
#define __ABYSS_SERVER_HPP__
#include <llarp/ev.h>
#include <llarp/logic.h>
#include <llarp/logic.hpp>
#include <llarp/string_view.hpp>
#include <llarp/time.hpp>
#include <list>

@ -1,5 +1,5 @@
#include <llarp/buffer.h>
#include <llarp/endian.h>
#include <llarp/endian.hpp>
#include <stdarg.h>
#include <stdio.h>

@ -1,6 +1,6 @@
#include "config.hpp"
#include <llarp/config.h>
#include <llarp/defaults.h>
#include <llarp/defaults.hpp>
#include <llarp/net.hpp>
#include "fs.hpp"
#include "ini.hpp"

@ -1,4 +1,4 @@
#include <llarp/endian.h>
#include <llarp/endian.hpp>
#include <llarp/dnsd.hpp> // for llarp_handle_dnsd_recvfrom, dnsc
#include <llarp/logger.hpp>
@ -212,7 +212,7 @@ extern "C"
}
*/
question->name = m_qName;
question->type = get16bits(moveable);
(*pos) += 2;
// printf("Now1 at [%d]\n", buffer - start);
@ -244,7 +244,7 @@ extern "C"
//hexDump(moveable, 12);
//hexDumpAt(buffer, *pos, 12);
if(*moveable == '\xc0')
{
// hexDump(moveable, 2);

@ -1,5 +1,5 @@
#include <llarp/ev.h>
#include <llarp/logic.h>
#include <llarp/logic.hpp>
#include <llarp/string_view.hpp>
#include <stddef.h>

@ -1,4 +1,4 @@
#include <llarp/endian.h>
#include <llarp/endian.hpp>
#include <algorithm>
#include <llarp/ip.hpp>
#include "llarp/buffer.hpp"
@ -6,7 +6,6 @@
#ifndef _WIN32
#include <netinet/in.h>
#endif
#include <llarp/endian.h>
#include <map>
#include <algorithm>

@ -3,7 +3,7 @@
#include <llarp/messages/link_intro.hpp>
#include <llarp/messages/discard.hpp>
#include <llarp/buffer.hpp>
#include <llarp/endian.h>
#include <llarp/endian.hpp>
#include <utp.h>
#include <cassert>
#include <tuple>

@ -1,4 +1,4 @@
#include <llarp/logic.h>
#include <llarp/logic.hpp>
#include <llarp/mem.h>
#include "logger.hpp"

@ -1,4 +1,4 @@
#include <llarp/logic.h>
#include <llarp/logic.hpp>
#include <llarp/nodedb.hpp>
#include <llarp/router_contact.hpp>

@ -1,5 +1,5 @@
#include "router.hpp"
#include <llarp/proto.h>
#include <llarp/proto.hpp>
#include <llarp/iwp.hpp>
#include <llarp/link_message.hpp>
#include <llarp/link/utp.hpp>

@ -3,7 +3,7 @@
#include <llarp/net.hpp>
#include <llarp/router_contact.hpp>
#include <llarp/time.hpp>
#include <llarp/version.h>
#include <llarp/version.hpp>
#include "buffer.hpp"
#include "logger.hpp"
#include "mem.hpp"

@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include <llarp.h> // for llarp_main_init
#include <llarp/logic.h> // for threadpool/llarp_logic
#include <llarp/logic.hpp> // for threadpool/llarp_logic
#include "llarp/net.hpp" // for llarp::Addr
#include "llarp/dns.hpp"
#include "llarp/dnsc.hpp"

@ -1,5 +1,5 @@
#include <gtest/gtest.h>
#include <llarp.h> // for llarp_main_init
#include <llarp/logic.h> // for threadpool/llarp_logic
#include <llarp/logic.hpp> // for threadpool/llarp_logic
#include "llarp/net.hpp" // for llarp::Addr
#include "llarp/dnsc.hpp"

@ -1,6 +1,6 @@
#include <gtest/gtest.h>
#include <llarp.h> // for llarp_main_init
#include <llarp/logic.h> // for threadpool/llarp_logic
#include <llarp/logic.hpp> // for threadpool/llarp_logic
#include "llarp/net.hpp" // for llarp::Addr
#include "llarp/dnsd.hpp"

Loading…
Cancel
Save