Skip to content

Commit

Permalink
Remove now-redundant definitions of inline
Browse files Browse the repository at this point in the history
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
  • Loading branch information
gilles-peskine-arm committed Nov 25, 2022
1 parent 53740c8 commit d551413
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 35 deletions.
5 changes: 0 additions & 5 deletions library/aria.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@

#include "mbedtls/platform_util.h"

#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \
!defined(inline) && !defined(__cplusplus)
#define inline __inline
#endif

/* Parameter validation macros */
#define ARIA_VALIDATE_RET( cond ) \
MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_ARIA_BAD_INPUT_DATA )
Expand Down
5 changes: 0 additions & 5 deletions library/chacha20.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@

#if !defined(MBEDTLS_CHACHA20_ALT)

#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \
!defined(inline) && !defined(__cplusplus)
#define inline __inline
#endif

/* Parameter validation macros */
#define CHACHA20_VALIDATE_RET( cond ) \
MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA )
Expand Down
5 changes: 0 additions & 5 deletions library/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
#include <stdio.h>
#include <string.h>

#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \
!defined(inline) && !defined(__cplusplus)
#define inline __inline
#endif

#define DEBUG_BUF_SIZE 512

static int debug_threshold = 0;
Expand Down
5 changes: 0 additions & 5 deletions library/ecp.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,6 @@
#endif
#endif /* MBEDTLS_ECP_NO_INTERNAL_RNG */

#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \
!defined(inline) && !defined(__cplusplus)
#define inline __inline
#endif

#if defined(MBEDTLS_SELF_TEST)
/*
* Counts of point addition and doubling, and field multiplications.
Expand Down
5 changes: 0 additions & 5 deletions library/ecp_curves.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
#define ECP_VALIDATE( cond ) \
MBEDTLS_INTERNAL_VALIDATE( cond )

#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \
!defined(inline) && !defined(__cplusplus)
#define inline __inline
#endif

#define ECP_MPI_INIT(s, n, p) {s, (n), (mbedtls_mpi_uint *)(p)}

#define ECP_MPI_INIT_ARRAY(x) \
Expand Down
5 changes: 0 additions & 5 deletions library/mps_reader.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@

#include <string.h>

#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \
!defined(inline) && !defined(__cplusplus)
#define inline __inline
#endif

#if defined(MBEDTLS_MPS_ENABLE_TRACE)
static int mbedtls_mps_trace_id = MBEDTLS_MPS_TRACE_BIT_READER;
#endif /* MBEDTLS_MPS_ENABLE_TRACE */
Expand Down
5 changes: 0 additions & 5 deletions library/poly1305.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@

#if !defined(MBEDTLS_POLY1305_ALT)

#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \
!defined(inline) && !defined(__cplusplus)
#define inline __inline
#endif

/* Parameter validation macros */
#define POLY1305_VALIDATE_RET( cond ) \
MBEDTLS_INTERNAL_VALIDATE_RET( cond, MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA )
Expand Down

0 comments on commit d551413

Please sign in to comment.