clean up includes
include what you use and style fixups.
This commit is contained in:
parent
091d58858a
commit
40d899adfd
14 changed files with 19 additions and 17 deletions
|
@ -22,6 +22,7 @@ extern "C"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "rcl/error_handling.h"
|
||||||
#include "rcl/expand_topic_name.h"
|
#include "rcl/expand_topic_name.h"
|
||||||
#include "rcutils/logging_macros.h"
|
#include "rcutils/logging_macros.h"
|
||||||
#include "rmw/error_handling.h"
|
#include "rmw/error_handling.h"
|
||||||
|
|
|
@ -22,6 +22,7 @@ extern "C"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#include "rcl/allocator.h"
|
#include "rcl/allocator.h"
|
||||||
|
#include "rcl/error_handling.h"
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
# define WINDOWS_ENV_BUFFER_SIZE 2048
|
# define WINDOWS_ENV_BUFFER_SIZE 2048
|
||||||
|
|
|
@ -20,7 +20,6 @@ extern "C"
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "rcl/error_handling.h"
|
|
||||||
#include "rcl/types.h"
|
#include "rcl/types.h"
|
||||||
|
|
||||||
/// Retrieve the value of the given environment variable if it exists, or "".
|
/// Retrieve the value of the given environment variable if it exists, or "".
|
||||||
|
|
|
@ -19,12 +19,13 @@ extern "C"
|
||||||
|
|
||||||
#include "rcl/graph.h"
|
#include "rcl/graph.h"
|
||||||
|
|
||||||
#include <rcutils/allocator.h>
|
#include "rcl/error_handling.h"
|
||||||
#include <rcutils/types.h>
|
#include "rcutils/allocator.h"
|
||||||
#include <rmw/get_service_names_and_types.h>
|
#include "rcutils/types.h"
|
||||||
#include <rmw/get_topic_names_and_types.h>
|
#include "rmw/get_service_names_and_types.h"
|
||||||
#include <rmw/names_and_types.h>
|
#include "rmw/get_topic_names_and_types.h"
|
||||||
#include <rmw/rmw.h>
|
#include "rmw/names_and_types.h"
|
||||||
|
#include "rmw/rmw.h"
|
||||||
|
|
||||||
#include "./common.h"
|
#include "./common.h"
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ extern "C"
|
||||||
|
|
||||||
#include "rcl/guard_condition.h"
|
#include "rcl/guard_condition.h"
|
||||||
|
|
||||||
#include "./common.h"
|
#include "rcl/error_handling.h"
|
||||||
#include "rcl/rcl.h"
|
#include "rcl/rcl.h"
|
||||||
#include "rmw/error_handling.h"
|
#include "rmw/error_handling.h"
|
||||||
#include "rmw/rmw.h"
|
#include "rmw/rmw.h"
|
||||||
|
|
|
@ -24,6 +24,7 @@ extern "C"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "rcl/error_handling.h"
|
||||||
#include "rcl/rcl.h"
|
#include "rcl/rcl.h"
|
||||||
#include "rcutils/filesystem.h"
|
#include "rcutils/filesystem.h"
|
||||||
#include "rcutils/get_env.h"
|
#include "rcutils/get_env.h"
|
||||||
|
|
|
@ -22,8 +22,8 @@ extern "C"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "./common.h"
|
|
||||||
#include "rcl/allocator.h"
|
#include "rcl/allocator.h"
|
||||||
|
#include "rcl/error_handling.h"
|
||||||
#include "rcl/expand_topic_name.h"
|
#include "rcl/expand_topic_name.h"
|
||||||
#include "rcutils/logging_macros.h"
|
#include "rcutils/logging_macros.h"
|
||||||
#include "rmw/error_handling.h"
|
#include "rmw/error_handling.h"
|
||||||
|
|
|
@ -21,7 +21,6 @@ extern "C"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "./common.h"
|
|
||||||
#include "./stdatomic_helper.h"
|
#include "./stdatomic_helper.h"
|
||||||
#include "rcl/error_handling.h"
|
#include "rcl/error_handling.h"
|
||||||
#include "rmw/error_handling.h"
|
#include "rmw/error_handling.h"
|
||||||
|
|
|
@ -21,8 +21,9 @@ extern "C"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <rcutils/logging_macros.h>
|
#include "rcl/error_handling.h"
|
||||||
#include <rmw/rmw.h>
|
#include "rcutils/logging_macros.h"
|
||||||
|
#include "rmw/rmw.h"
|
||||||
|
|
||||||
#include "rcl/types.h"
|
#include "rcl/types.h"
|
||||||
#include "./common.h"
|
#include "./common.h"
|
||||||
|
|
|
@ -22,7 +22,7 @@ extern "C"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "./common.h"
|
#include "rcl/error_handling.h"
|
||||||
#include "rcl/expand_topic_name.h"
|
#include "rcl/expand_topic_name.h"
|
||||||
#include "rcutils/logging_macros.h"
|
#include "rcutils/logging_macros.h"
|
||||||
#include "rmw/error_handling.h"
|
#include "rmw/error_handling.h"
|
||||||
|
|
|
@ -21,7 +21,7 @@ extern "C"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "./common.h"
|
#include "rcl/error_handling.h"
|
||||||
#include "rcl/expand_topic_name.h"
|
#include "rcl/expand_topic_name.h"
|
||||||
#include "rcutils/logging_macros.h"
|
#include "rcutils/logging_macros.h"
|
||||||
#include "rmw/error_handling.h"
|
#include "rmw/error_handling.h"
|
||||||
|
|
|
@ -19,8 +19,8 @@ extern "C"
|
||||||
|
|
||||||
#include "rcl/timer.h"
|
#include "rcl/timer.h"
|
||||||
|
|
||||||
#include "./common.h"
|
|
||||||
#include "./stdatomic_helper.h"
|
#include "./stdatomic_helper.h"
|
||||||
|
#include "rcl/error_handling.h"
|
||||||
#include "rcutils/time.h"
|
#include "rcutils/time.h"
|
||||||
|
|
||||||
typedef struct rcl_timer_impl_t
|
typedef struct rcl_timer_impl_t
|
||||||
|
|
|
@ -22,8 +22,8 @@ extern "C"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "./common.h"
|
|
||||||
#include "rcl/allocator.h"
|
#include "rcl/allocator.h"
|
||||||
|
#include "rcl/error_handling.h"
|
||||||
#include "rcutils/isalnum_no_locale.h"
|
#include "rcutils/isalnum_no_locale.h"
|
||||||
|
|
||||||
rcl_ret_t
|
rcl_ret_t
|
||||||
|
|
|
@ -23,7 +23,6 @@ extern "C"
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "./common.h"
|
|
||||||
#include "./stdatomic_helper.h"
|
#include "./stdatomic_helper.h"
|
||||||
#include "rcl/error_handling.h"
|
#include "rcl/error_handling.h"
|
||||||
#include "rcl/time.h"
|
#include "rcl/time.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue