From ae445ab5a97e0d537feb8ee9a9d49a75270cf70d Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Sun, 19 Jan 2020 21:49:47 +0100 Subject: [PATCH] Cosmetics: make #endif's comment match #ifndef. --- examples/s4u/app-bittorrent/s4u-tracker.hpp | 4 ++-- examples/s4u/dht-kademlia/node.hpp | 6 +++--- include/simgrid/s4u/Link.hpp | 6 +++--- include/simgrid/version.h.in | 2 +- include/xbt/ex.h | 2 +- include/xbt/log.h | 2 +- include/xbt/mallocator.h | 2 +- src/bindings/java/JavaContext.hpp | 2 +- src/kernel/activity/ActivityImpl.hpp | 4 ++-- src/kernel/activity/SemaphoreImpl.hpp | 6 +++--- src/surf/HostImpl.hpp | 6 +++--- teshsuite/msg/app-bittorrent/tracker.h | 4 ++-- 12 files changed, 23 insertions(+), 23 deletions(-) diff --git a/examples/s4u/app-bittorrent/s4u-tracker.hpp b/examples/s4u/app-bittorrent/s4u-tracker.hpp index a69d8a6b32..08fd911f3a 100644 --- a/examples/s4u/app-bittorrent/s4u-tracker.hpp +++ b/examples/s4u/app-bittorrent/s4u-tracker.hpp @@ -4,8 +4,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef BITTORRENT_TRACKER_HPP_ -#define BITTORRENT_TRACKER_HPP_ +#ifndef BITTORRENT_TRACKER_HPP +#define BITTORRENT_TRACKER_HPP #include "s4u-bittorrent.hpp" #include diff --git a/examples/s4u/dht-kademlia/node.hpp b/examples/s4u/dht-kademlia/node.hpp index 504fe40451..dc36ae20fb 100644 --- a/examples/s4u/dht-kademlia/node.hpp +++ b/examples/s4u/dht-kademlia/node.hpp @@ -4,8 +4,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef _KADEMLIA_NODE_HPP -#define _KADEMLIA_NODE_HPP +#ifndef KADEMLIA_NODE_HPP +#define KADEMLIA_NODE_HPP #include "answer.hpp" #include "message.hpp" #include "routing_table.hpp" @@ -40,4 +40,4 @@ public: unsigned int get_id_in_prefix(unsigned int id, unsigned int prefix); unsigned int get_node_prefix(unsigned int id, unsigned int nb_bits); -#endif /* _MSG_EXAMPLES_ROUTING_H */ +#endif /* KADEMLIA_NODE_HPP */ diff --git a/include/simgrid/s4u/Link.hpp b/include/simgrid/s4u/Link.hpp index c2e64533ae..832bd3e0e7 100644 --- a/include/simgrid/s4u/Link.hpp +++ b/include/simgrid/s4u/Link.hpp @@ -3,8 +3,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef S4U_LINK_HPP_ -#define S4U_LINK_HPP_ +#ifndef S4U_LINK_HPP +#define S4U_LINK_HPP #include #include @@ -102,4 +102,4 @@ public: } // namespace s4u } // namespace simgrid -#endif /* SURF_NETWORK_INTERFACE_HPP_ */ +#endif /* S4U_LINK_HPP */ diff --git a/include/simgrid/version.h.in b/include/simgrid/version.h.in index 0a4875d8b0..352988e138 100644 --- a/include/simgrid/version.h.in +++ b/include/simgrid/version.h.in @@ -32,4 +32,4 @@ SG_END_DECL #define SIMGRID_VERSION_STRING "@SIMGRID_VERSION_STRING@" -#endif /* SIMGRID_PUBLIC_CONFIG_H */ +#endif /* SIMGRID_VERSION_H */ diff --git a/include/xbt/ex.h b/include/xbt/ex.h index 32e31d73b9..963d9b69cd 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -58,4 +58,4 @@ XBT_ATTRIB_NORETURN XBT_PUBLIC void xbt_throw_unimplemented(const char* file, in SG_END_DECL /** @} */ -#endif /* __XBT_EX_H__ */ +#endif /* XBT_EX_H */ diff --git a/include/xbt/log.h b/include/xbt/log.h index d77ec59daf..888d028eda 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -493,4 +493,4 @@ extern xbt_log_layout_t xbt_log_default_layout; #define XBT_HELP(...) XBT_CINFO(xbt_help, __VA_ARGS__) SG_END_DECL -#endif /* ! _XBT_LOG_H_ */ +#endif /* XBT_LOG_H */ diff --git a/include/xbt/mallocator.h b/include/xbt/mallocator.h index f99bc197de..e6ba9110e8 100644 --- a/include/xbt/mallocator.h +++ b/include/xbt/mallocator.h @@ -51,4 +51,4 @@ XBT_PUBLIC void xbt_mallocator_initialization_is_done(int protect); /** @} */ SG_END_DECL -#endif /* _XBT_MALLOCATOR_H */ +#endif /* XBT_MALLOCATOR_H */ diff --git a/src/bindings/java/JavaContext.hpp b/src/bindings/java/JavaContext.hpp index 432ccc5763..5a7caf6fb4 100644 --- a/src/bindings/java/JavaContext.hpp +++ b/src/bindings/java/JavaContext.hpp @@ -51,4 +51,4 @@ XBT_PRIVATE void java_main_jprocess(jobject process); }}} // namespace simgrid::kernel::context -#endif /* !_XBT_CONTEXT_JAVA_H */ +#endif /* SIMGRID_JAVA_JAVA_CONTEXT_HPP */ diff --git a/src/kernel/activity/ActivityImpl.hpp b/src/kernel/activity/ActivityImpl.hpp index a6b84a6760..c1c8de5bb8 100644 --- a/src/kernel/activity/ActivityImpl.hpp +++ b/src/kernel/activity/ActivityImpl.hpp @@ -3,8 +3,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef SIMGRID_KERNEL_ACTIVITY_ACTIVITY_HPP -#define SIMGRID_KERNEL_ACTIVITY_ACTIVITY_HPP +#ifndef SIMGRID_KERNEL_ACTIVITY_ACTIVITYIMPL_HPP +#define SIMGRID_KERNEL_ACTIVITY_ACTIVITYIMPL_HPP #include #include diff --git a/src/kernel/activity/SemaphoreImpl.hpp b/src/kernel/activity/SemaphoreImpl.hpp index 7a61019baa..361c7cf217 100644 --- a/src/kernel/activity/SemaphoreImpl.hpp +++ b/src/kernel/activity/SemaphoreImpl.hpp @@ -3,8 +3,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef SIMGRID_KERNEL_ACTIVITY_SEMAPHORE_HPP -#define SIMGRID_KERNEL_ACTIVITY_SEMAPHORE_HPP +#ifndef SIMGRID_KERNEL_ACTIVITY_SEMAPHOREIMPL_HPP +#define SIMGRID_KERNEL_ACTIVITY_SEMAPHOREIMPL_HPP #include #include @@ -51,4 +51,4 @@ public: } // namespace kernel } // namespace simgrid -#endif /* SIMGRID_KERNEL_ACTIVITY_SEMAPHOREIMPL_HPP_ */ +#endif /* SIMGRID_KERNEL_ACTIVITY_SEMAPHOREIMPL_HPP */ diff --git a/src/surf/HostImpl.hpp b/src/surf/HostImpl.hpp index 91cf35c81e..bb01090f85 100644 --- a/src/surf/HostImpl.hpp +++ b/src/surf/HostImpl.hpp @@ -3,8 +3,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef SURF_HOST_INTERFACE_HPP_ -#define SURF_HOST_INTERFACE_HPP_ +#ifndef SURF_HOST_INTERFACE_HPP +#define SURF_HOST_INTERFACE_HPP #include "src/kernel/actor/ActorImpl.hpp" #include "src/kernel/resource/DiskImpl.hpp" @@ -87,4 +87,4 @@ public: XBT_PUBLIC_DATA simgrid::surf::HostModel* surf_host_model; -#endif /* SURF_Host_INTERFACE_HPP_ */ +#endif /* SURF_HOST_INTERFACE_HPP */ diff --git a/teshsuite/msg/app-bittorrent/tracker.h b/teshsuite/msg/app-bittorrent/tracker.h index aaea20fc5a..89751214fe 100644 --- a/teshsuite/msg/app-bittorrent/tracker.h +++ b/teshsuite/msg/app-bittorrent/tracker.h @@ -4,8 +4,8 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ -#ifndef BITTORRENT_TRACKER_H_ -#define BITTORRENT_TRACKER_H_ +#ifndef BITTORRENT_TRACKER_H +#define BITTORRENT_TRACKER_H #include "bittorrent.h" #include /** -- 2.20.1