DataFlash: replace header guard with pragma once

This commit is contained in:
Lucas De Marchi 2016-02-17 23:25:53 -02:00 committed by Andrew Tridgell
parent 80749af698
commit ec36e06c63
8 changed files with 8 additions and 37 deletions

View File

@ -1,5 +1,4 @@
#ifndef DF_LOGSTARTUP_H #pragma once
#define DF_LOGSTARTUP_H
#include "DataFlash_Backend.h" #include "DataFlash_Backend.h"
@ -112,6 +111,3 @@ private:
DFMessageWriter_WriteSysInfo _writesysinfo; DFMessageWriter_WriteSysInfo _writesysinfo;
DFMessageWriter_WriteEntireMission _writeentiremission; DFMessageWriter_WriteEntireMission _writeentiremission;
}; };
#endif

View File

@ -3,8 +3,7 @@
/* ************************************************************ */ /* ************************************************************ */
/* Test for DataFlash Log library */ /* Test for DataFlash Log library */
/* ************************************************************ */ /* ************************************************************ */
#ifndef DataFlash_h #pragma once
#define DataFlash_h
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include <AP_Common/AP_Common.h> #include <AP_Common/AP_Common.h>
@ -179,5 +178,3 @@ private:
DataFlash_Backend *backends[DATAFLASH_MAX_BACKENDS]; DataFlash_Backend *backends[DATAFLASH_MAX_BACKENDS];
const char *_firmware_string; const char *_firmware_string;
}; };
#endif

View File

@ -1,5 +1,4 @@
#ifndef DATAFLASH_BACKEND_H #pragma once
#define DATAFLASH_BACKEND_H
#include "DataFlash.h" #include "DataFlash.h"
@ -134,5 +133,3 @@ private:
uint32_t _last_periodic_1Hz; uint32_t _last_periodic_1Hz;
uint32_t _last_periodic_10Hz; uint32_t _last_periodic_10Hz;
}; };
#endif

View File

@ -3,9 +3,7 @@
/* /*
DataFlash logging - block oriented variant DataFlash logging - block oriented variant
*/ */
#pragma once
#ifndef DataFlash_block_h
#define DataFlash_block_h
#include "DataFlash_Backend.h" #include "DataFlash_Backend.h"
@ -125,6 +123,3 @@ protected:
#include "DataFlash_SITL.h" #include "DataFlash_SITL.h"
#endif // DataFlash_block_h

View File

@ -6,9 +6,7 @@
This uses posix file IO to create log files called logNN.dat in the This uses posix file IO to create log files called logNN.dat in the
given directory given directory
*/ */
#pragma once
#ifndef DataFlash_File_h
#define DataFlash_File_h
#if HAL_OS_POSIX_IO #if HAL_OS_POSIX_IO
@ -153,5 +151,3 @@ private:
}; };
#endif // HAL_OS_POSIX_IO #endif // HAL_OS_POSIX_IO
#endif // DataFlash_File_h

View File

@ -5,9 +5,7 @@
- transfers blocks of the open log file to a client using MAVLink - transfers blocks of the open log file to a client using MAVLink
*/ */
#pragma once
#ifndef DATAFLASH_MAVLINK_H
#define DATAFLASH_MAVLINK_H
#define DATAFLASH_MAVLINK_SUPPORT 1 #define DATAFLASH_MAVLINK_SUPPORT 1
@ -192,6 +190,3 @@ private:
}; };
#endif // DATAFLASH_MAVLINK_SUPPORT #endif // DATAFLASH_MAVLINK_SUPPORT
#endif // DATAFLASH_MAVLINK_H

View File

@ -1,8 +1,7 @@
/* ************************************************************ */ /* ************************************************************ */
/* DataFlash_SITL Log library */ /* DataFlash_SITL Log library */
/* ************************************************************ */ /* ************************************************************ */
#ifndef __DATAFLASH_SITL_H__ #pragma once
#define __DATAFLASH_SITL_H__
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
@ -49,4 +48,3 @@ public:
}; };
#endif // CONFIG_HAL_BOARD == HAL_BOARD_SITL #endif // CONFIG_HAL_BOARD == HAL_BOARD_SITL
#endif // __DATAFLASH_SITL_H__

View File

@ -1,5 +1,4 @@
#ifndef _LOGSTRUCTURE_H #pragma once
#define _LOGSTRUCTURE_H
/* /*
unfortunately these need to be macros because of a limitation of unfortunately these need to be macros because of a limitation of
@ -983,5 +982,3 @@ enum LogOriginType {
ekf_origin = 0, ekf_origin = 0,
ahrs_home = 1 ahrs_home = 1
}; };
#endif