mirror of
https://github.com/preble/libpinproc
synced 2026-02-24 18:25:23 +01:00
Added include guards
This commit is contained in:
@@ -27,6 +27,12 @@
|
||||
* pinproctest.cpp
|
||||
* libpinproc
|
||||
*/
|
||||
#ifndef PINPROCTEST_PINPROCTEST_H
|
||||
#define PINPROCTEST_PINPROCTEST_H
|
||||
#if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
@@ -75,3 +81,5 @@ void ConfigureDMD(PRHandle proc);
|
||||
void UpdateDots(unsigned char * dots, unsigned int dotOffset);
|
||||
|
||||
void UpdateAlphaDisplay(PRHandle, int);
|
||||
|
||||
#endif /* PINPROCTEST_PINPROCTEST_H */
|
||||
|
||||
@@ -27,9 +27,11 @@
|
||||
* @brief libpinproc, P-ROC Layer 1 API (Preliminary)
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _PINPROC_H_
|
||||
#define _PINPROC_H_
|
||||
#ifndef PINPROC_PINPROC_H
|
||||
#define PINPROC_PINPROC_H
|
||||
#if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
/*
|
||||
* 3rd party "stdint.h" replacement available for Visual C++ before version 2010.
|
||||
@@ -535,4 +537,4 @@ PR_EXTERN_C_END
|
||||
* This is the documentation for libpinproc, the P-ROC Layer 1 API.
|
||||
*/
|
||||
|
||||
#endif // _PINPROC_H_
|
||||
#endif /* PINPROC_PINPROC_H */
|
||||
|
||||
@@ -22,8 +22,11 @@
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#ifndef _PRCOMMON_H_
|
||||
#define _PRCOMMON_H_
|
||||
#ifndef PINPROC_PRCOMMON_H
|
||||
#define PINPROC_PRCOMMON_H
|
||||
#if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#ifdef NDEBUG
|
||||
# define DEBUG(block)
|
||||
@@ -34,4 +37,4 @@
|
||||
void PRLog(PRLogLevel level, const char *format, ...);
|
||||
void PRSetLastErrorText(const char *format, ...);
|
||||
|
||||
#endif // _PRCOMMON_H_
|
||||
#endif /* PINPROC_PRCOMMON_H */
|
||||
|
||||
@@ -27,6 +27,11 @@
|
||||
* PRDevice.h
|
||||
* libpinproc
|
||||
*/
|
||||
#ifndef PINPROC_PRDEVICE_H
|
||||
#define PINPROC_PRDEVICE_H
|
||||
#if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include "pinproc.h"
|
||||
#include "PRCommon.h"
|
||||
@@ -167,3 +172,5 @@ protected:
|
||||
queue<uint32_t> freeSwitchRuleIndexes; /**< Indexes of available switch rules. */
|
||||
PRSwitchRuleInternal *GetSwitchRuleByIndex(uint16_t index);
|
||||
};
|
||||
|
||||
#endif /* PINPROC_PRDEVICE_H */
|
||||
|
||||
@@ -23,8 +23,11 @@
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
#ifndef _PROC_HARDWARE_H_
|
||||
#define _PROC_HARDWARE_H_
|
||||
#ifndef PINPROC_PRHARDWARE_H
|
||||
#define PINPROC_PRHARDWARE_H
|
||||
#if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include <stdint.h>
|
||||
#include "pinproc.h"
|
||||
@@ -274,4 +277,4 @@ void PRHardwareClose();
|
||||
int PRHardwareRead(uint8_t *buffer, int maxBytes);
|
||||
int PRHardwareWrite(uint8_t *buffer, int bytes);
|
||||
|
||||
#endif // _PROC_HARDWARE_H_
|
||||
#endif /* PINPROC_PRHARDWARE_H */
|
||||
|
||||
@@ -3,9 +3,11 @@
|
||||
/* abstract: This file contains a description of the */
|
||||
/* data structure "lenval". */
|
||||
/*******************************************************/
|
||||
|
||||
#ifndef lenval_dot_h
|
||||
#define lenval_dot_h
|
||||
#ifndef PINPROCFW_LENVAL_H
|
||||
#define PINPROCFW_LENVAL_H
|
||||
#if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
/* the lenVal structure is a byte oriented type used to store an */
|
||||
/* arbitrary length binary value. As an example, the hex value */
|
||||
@@ -90,5 +92,4 @@ extern void SetBit(lenVal *lv, int byte, int bit, short val);
|
||||
/* read from XSVF numBytes bytes of data into x */
|
||||
extern void readVal(lenVal *x, short numBytes);
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* PINPROCFW_LENVAL_H */
|
||||
|
||||
@@ -10,8 +10,11 @@
|
||||
* in the readByte() function.
|
||||
* FINALLY - Call xsvfExecute().
|
||||
*****************************************************************************/
|
||||
#ifndef PINPROCFW_H
|
||||
#define PINPROCFW_H
|
||||
#ifndef PINPROCFW_PINPROCFW_H
|
||||
#define PINPROCFW_PINPROCFW_H
|
||||
#if !defined(__GNUC__) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || (__GNUC__ >= 4) // GCC supports "pragma once" correctly since 3.4
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#if defined(__WIN32__) || defined(_WIN32)
|
||||
#include <windows.h>
|
||||
@@ -67,5 +70,4 @@ void readByte(unsigned char *data);
|
||||
void waitTime(long microsec);
|
||||
|
||||
|
||||
#endif /* PINPROCFW_H */
|
||||
|
||||
#endif /* PINPROCFW_PINPROCFW_H */
|
||||
|
||||
Reference in New Issue
Block a user