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
#define DF_LOGSTARTUP_H
#pragma once
#include "DataFlash_Backend.h"
@ -112,6 +111,3 @@ private:
DFMessageWriter_WriteSysInfo _writesysinfo;
DFMessageWriter_WriteEntireMission _writeentiremission;
};
#endif

View File

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

View File

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

View File

@ -3,9 +3,7 @@
/*
DataFlash logging - block oriented variant
*/
#ifndef DataFlash_block_h
#define DataFlash_block_h
#pragma once
#include "DataFlash_Backend.h"
@ -125,6 +123,3 @@ protected:
#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
given directory
*/
#ifndef DataFlash_File_h
#define DataFlash_File_h
#pragma once
#if HAL_OS_POSIX_IO
@ -153,5 +151,3 @@ private:
};
#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
*/
#ifndef DATAFLASH_MAVLINK_H
#define DATAFLASH_MAVLINK_H
#pragma once
#define DATAFLASH_MAVLINK_SUPPORT 1
@ -192,6 +190,3 @@ private:
};
#endif // DATAFLASH_MAVLINK_SUPPORT
#endif // DATAFLASH_MAVLINK_H

View File

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

View File

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