From 44bc2eceb49c2a58efc19d2aa9f7ef645bc92280 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Wed, 17 Feb 2016 23:25:29 -0200 Subject: [PATCH] AP_HAL_VRBRAIN: replace header guard with pragma once --- libraries/AP_HAL_VRBRAIN/AP_HAL_VRBRAIN.h | 6 +----- libraries/AP_HAL_VRBRAIN/AP_HAL_VRBRAIN_Namespace.h | 7 +------ libraries/AP_HAL_VRBRAIN/AnalogIn.h | 5 +---- libraries/AP_HAL_VRBRAIN/GPIO.h | 6 +----- libraries/AP_HAL_VRBRAIN/RCInput.h | 6 +----- libraries/AP_HAL_VRBRAIN/RCOutput.h | 6 +----- libraries/AP_HAL_VRBRAIN/Scheduler.h | 7 +------ libraries/AP_HAL_VRBRAIN/Storage.h | 7 +------ libraries/AP_HAL_VRBRAIN/UARTDriver.h | 6 +----- libraries/AP_HAL_VRBRAIN/Util.h | 6 +----- 10 files changed, 10 insertions(+), 52 deletions(-) diff --git a/libraries/AP_HAL_VRBRAIN/AP_HAL_VRBRAIN.h b/libraries/AP_HAL_VRBRAIN/AP_HAL_VRBRAIN.h index 83b48f9982..5f04e83687 100644 --- a/libraries/AP_HAL_VRBRAIN/AP_HAL_VRBRAIN.h +++ b/libraries/AP_HAL_VRBRAIN/AP_HAL_VRBRAIN.h @@ -1,6 +1,4 @@ - -#ifndef __AP_HAL_VRBRAIN_H__ -#define __AP_HAL_VRBRAIN_H__ +#pragma once #include @@ -8,5 +6,3 @@ #include "HAL_VRBRAIN_Class.h" #endif // CONFIG_HAL_BOARD -#endif // __AP_HAL_VRBRAIN_H__ - diff --git a/libraries/AP_HAL_VRBRAIN/AP_HAL_VRBRAIN_Namespace.h b/libraries/AP_HAL_VRBRAIN/AP_HAL_VRBRAIN_Namespace.h index 9dc6ff6000..54406950d7 100644 --- a/libraries/AP_HAL_VRBRAIN/AP_HAL_VRBRAIN_Namespace.h +++ b/libraries/AP_HAL_VRBRAIN/AP_HAL_VRBRAIN_Namespace.h @@ -1,6 +1,4 @@ - -#ifndef __AP_HAL_VRBRAIN_NAMESPACE_H__ -#define __AP_HAL_VRBRAIN_NAMESPACE_H__ +#pragma once namespace VRBRAIN { class VRBRAINScheduler; @@ -14,6 +12,3 @@ namespace VRBRAIN { class VRBRAINGPIO; class VRBRAINDigitalSource; } - -#endif //__AP_HAL_VRBRAIN_NAMESPACE_H__ - diff --git a/libraries/AP_HAL_VRBRAIN/AnalogIn.h b/libraries/AP_HAL_VRBRAIN/AnalogIn.h index cf9e3e80a2..6bb976bb6a 100644 --- a/libraries/AP_HAL_VRBRAIN/AnalogIn.h +++ b/libraries/AP_HAL_VRBRAIN/AnalogIn.h @@ -1,7 +1,5 @@ /// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- - -#ifndef __AP_HAL_VRBRAIN_ANALOGIN_H__ -#define __AP_HAL_VRBRAIN_ANALOGIN_H__ +#pragma once #include "AP_HAL_VRBRAIN.h" #include @@ -83,4 +81,3 @@ private: void next_stop_pin(void); }; -#endif // __AP_HAL_VRBRAIN_ANALOGIN_H__ diff --git a/libraries/AP_HAL_VRBRAIN/GPIO.h b/libraries/AP_HAL_VRBRAIN/GPIO.h index fa907983e5..5d09dd6a1b 100644 --- a/libraries/AP_HAL_VRBRAIN/GPIO.h +++ b/libraries/AP_HAL_VRBRAIN/GPIO.h @@ -1,7 +1,5 @@ /// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- - -#ifndef __AP_HAL_VRBRAIN_GPIO_H__ -#define __AP_HAL_VRBRAIN_GPIO_H__ +#pragma once #include "AP_HAL_VRBRAIN.h" @@ -52,5 +50,3 @@ public: private: uint8_t _v; }; - -#endif // __AP_HAL_VRBRAIN_GPIO_H__ diff --git a/libraries/AP_HAL_VRBRAIN/RCInput.h b/libraries/AP_HAL_VRBRAIN/RCInput.h index 227bbedc6e..678c0fecc0 100644 --- a/libraries/AP_HAL_VRBRAIN/RCInput.h +++ b/libraries/AP_HAL_VRBRAIN/RCInput.h @@ -1,6 +1,4 @@ - -#ifndef __AP_HAL_VRBRAIN_RCINPUT_H__ -#define __AP_HAL_VRBRAIN_RCINPUT_H__ +#pragma once #include "AP_HAL_VRBRAIN.h" #include @@ -31,5 +29,3 @@ private: perf_counter_t _perf_rcin; pthread_mutex_t rcin_mutex; }; - -#endif // __AP_HAL_VRBRAIN_RCINPUT_H__ diff --git a/libraries/AP_HAL_VRBRAIN/RCOutput.h b/libraries/AP_HAL_VRBRAIN/RCOutput.h index 4c94af576a..429c703c24 100644 --- a/libraries/AP_HAL_VRBRAIN/RCOutput.h +++ b/libraries/AP_HAL_VRBRAIN/RCOutput.h @@ -1,6 +1,4 @@ - -#ifndef __AP_HAL_VRBRAIN_RCOUTPUT_H__ -#define __AP_HAL_VRBRAIN_RCOUTPUT_H__ +#pragma once #include "AP_HAL_VRBRAIN.h" #include @@ -41,5 +39,3 @@ private: void _init_alt_channels(void); }; - -#endif // __AP_HAL_VRBRAIN_RCOUTPUT_H__ diff --git a/libraries/AP_HAL_VRBRAIN/Scheduler.h b/libraries/AP_HAL_VRBRAIN/Scheduler.h index 70d8cb8aa7..6b78c27f0c 100644 --- a/libraries/AP_HAL_VRBRAIN/Scheduler.h +++ b/libraries/AP_HAL_VRBRAIN/Scheduler.h @@ -1,6 +1,4 @@ - -#ifndef __AP_HAL_VRBRAIN_SCHEDULER_H__ -#define __AP_HAL_VRBRAIN_SCHEDULER_H__ +#pragma once #include #if CONFIG_HAL_BOARD == HAL_BOARD_VRBRAIN @@ -78,6 +76,3 @@ private: perf_counter_t _perf_delay; }; #endif -#endif // __AP_HAL_VRBRAIN_SCHEDULER_H__ - - diff --git a/libraries/AP_HAL_VRBRAIN/Storage.h b/libraries/AP_HAL_VRBRAIN/Storage.h index 95e72c11e0..a11a5c6235 100644 --- a/libraries/AP_HAL_VRBRAIN/Storage.h +++ b/libraries/AP_HAL_VRBRAIN/Storage.h @@ -1,7 +1,4 @@ - - -#ifndef __AP_HAL_VRBRAIN_STORAGE_H__ -#define __AP_HAL_VRBRAIN_STORAGE_H__ +#pragma once #include #include "AP_HAL_VRBRAIN_Namespace.h" @@ -38,5 +35,3 @@ private: uint32_t _mtd_signature(void); void _mtd_write_signature(void); }; - -#endif // __AP_HAL_VRBRAIN_STORAGE_H__ diff --git a/libraries/AP_HAL_VRBRAIN/UARTDriver.h b/libraries/AP_HAL_VRBRAIN/UARTDriver.h index 6a1aff5117..e644cdcae3 100644 --- a/libraries/AP_HAL_VRBRAIN/UARTDriver.h +++ b/libraries/AP_HAL_VRBRAIN/UARTDriver.h @@ -1,6 +1,4 @@ - -#ifndef __AP_HAL_VRBRAIN_UARTDRIVER_H__ -#define __AP_HAL_VRBRAIN_UARTDRIVER_H__ +#pragma once #include "AP_HAL_VRBRAIN.h" #include @@ -77,5 +75,3 @@ private: uint32_t _total_written; enum flow_control _flow_control; }; - -#endif // __AP_HAL_VRBRAIN_UARTDRIVER_H__ diff --git a/libraries/AP_HAL_VRBRAIN/Util.h b/libraries/AP_HAL_VRBRAIN/Util.h index a10d8f0881..0571b659ff 100644 --- a/libraries/AP_HAL_VRBRAIN/Util.h +++ b/libraries/AP_HAL_VRBRAIN/Util.h @@ -1,6 +1,4 @@ - -#ifndef __AP_HAL_VRBRAIN_UTIL_H__ -#define __AP_HAL_VRBRAIN_UTIL_H__ +#pragma once #include #include "AP_HAL_VRBRAIN_Namespace.h" @@ -27,5 +25,3 @@ public: private: int _safety_handle; }; - -#endif // __AP_HAL_VRBRAIN_UTIL_H__