mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Clean up include guards and EOF newlines (#65)
* Replaced include guards with #pragma once * All source files now have exactly one newline appended Some files had either two newlines at the end or none (which isn't POSIX compliant). This patch fixes that.
This commit is contained in:
committed by
Peter Johnson
parent
d82635bbe1
commit
62812faf62
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef _SIM_MAIN_NODE_H
|
||||
#define _SIM_MAIN_NODE_H
|
||||
#pragma once
|
||||
|
||||
#include <gazebo/gazebo_client.hh>
|
||||
#include <gazebo/transport/transport.hh>
|
||||
@@ -59,5 +58,3 @@ class MainNode {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef _SIM_SPEED_CONTROLLER_H
|
||||
#define _SIM_SPEED_CONTROLLER_H
|
||||
#pragma once
|
||||
|
||||
#ifdef _WIN32
|
||||
// Ensure that Winsock2.h is included before Windows.h, which can get
|
||||
@@ -42,5 +41,3 @@ class SimContinuousOutput {
|
||||
*/
|
||||
float Get();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef _SIM_DIGITAL_INPUT_H
|
||||
#define _SIM_DIGITAL_INPUT_H
|
||||
#pragma once
|
||||
|
||||
#include <gazebo/transport/transport.hh>
|
||||
#include "simulation/gz_msgs/msgs.h"
|
||||
@@ -27,5 +26,3 @@ class SimDigitalInput {
|
||||
transport::SubscriberPtr sub;
|
||||
void callback(const msgs::ConstBoolPtr& msg);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef _SIM_ENCODER_H
|
||||
#define _SIM_ENCODER_H
|
||||
#pragma once
|
||||
|
||||
#include <gazebo/common/Time.hh>
|
||||
#include <gazebo/transport/transport.hh>
|
||||
@@ -33,5 +32,3 @@ class SimEncoder {
|
||||
void positionCallback(const msgs::ConstFloat64Ptr& msg);
|
||||
void velocityCallback(const msgs::ConstFloat64Ptr& msg);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef _SIM_FLOAT_INPUT_H
|
||||
#define _SIM_FLOAT_INPUT_H
|
||||
#pragma once
|
||||
|
||||
#include <gazebo/transport/transport.hh>
|
||||
#include "simulation/gz_msgs/msgs.h"
|
||||
@@ -27,5 +26,3 @@ class SimFloatInput {
|
||||
transport::SubscriberPtr sub;
|
||||
void callback(const msgs::ConstFloat64Ptr& msg);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -5,8 +5,7 @@
|
||||
/* the project. */
|
||||
/*----------------------------------------------------------------------------*/
|
||||
|
||||
#ifndef _SIM_GYRO_H
|
||||
#define _SIM_GYRO_H
|
||||
#pragma once
|
||||
|
||||
#include <gazebo/transport/transport.hh>
|
||||
#include "simulation/gz_msgs/msgs.h"
|
||||
@@ -30,5 +29,3 @@ class SimGyro {
|
||||
void positionCallback(const msgs::ConstFloat64Ptr& msg);
|
||||
void velocityCallback(const msgs::ConstFloat64Ptr& msg);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user