Add Include macro guards
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef _TOKENS_H_
|
||||
#define _TOKENS_H_
|
||||
|
||||
#include "os.h"
|
||||
|
||||
typedef struct tokenDefinition_t {
|
||||
@@ -66,3 +69,5 @@ extern tokenDefinition_t const TOKENS_GOCHAIN[NUM_TOKENS_GOCHAIN];
|
||||
extern tokenDefinition_t const TOKENS_MIX[NUM_TOKENS_MIX];
|
||||
extern tokenDefinition_t const TOKENS_REOSC[NUM_TOKENS_REOSC];
|
||||
extern tokenDefinition_t const TOKENS_HPB[NUM_TOKENS_HPB];
|
||||
|
||||
#endif /* _TOKENS_H_ */
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef _ETHUSTREAM_H_
|
||||
#define _ETHUSTREAM_H_
|
||||
|
||||
#include "os.h"
|
||||
#include "cx.h"
|
||||
#include <stdbool.h>
|
||||
@@ -96,3 +99,5 @@ parserStatus_e processTx(txContext_t *context, uint8_t *buffer,
|
||||
parserStatus_e continueTx(txContext_t *context);
|
||||
void copyTxData(txContext_t *context, uint8_t *out, uint32_t length);
|
||||
uint8_t readTxByte(txContext_t *context);
|
||||
|
||||
#endif /* _ETHUSTREAM_H_ */
|
||||
@@ -15,6 +15,9 @@
|
||||
* limitations under the License.
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef _ETHUTILS_H_
|
||||
#define _ETHUTILS_H_
|
||||
|
||||
#include "os.h"
|
||||
#include "cx.h"
|
||||
|
||||
@@ -46,3 +49,5 @@ void getEthAddressStringFromBinary(uint8_t *address, uint8_t *out,
|
||||
|
||||
bool adjustDecimals(char *src, uint32_t srcLength, char *target,
|
||||
uint32_t targetLength, uint8_t decimals);
|
||||
|
||||
#endif /* _ETHUTILS_H_ */
|
||||
@@ -17,6 +17,9 @@
|
||||
|
||||
// Adapted from https://github.com/calccrypto/uint256_t
|
||||
|
||||
#ifndef _UINT256_H_
|
||||
#define _UINT256_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
@@ -63,3 +66,5 @@ bool tostring128(uint128_t *number, uint32_t base, char *out,
|
||||
uint32_t outLength);
|
||||
bool tostring256(uint256_t *number, uint32_t base, char *out,
|
||||
uint32_t outLength);
|
||||
|
||||
#endif /* _UINT256_H_ */
|
||||
Reference in New Issue
Block a user