#ifndef on all header files

This commit is contained in:
Philippe Teuwen 2019-04-11 01:16:25 +02:00
commit 2879599ac4
11 changed files with 37 additions and 0 deletions

View file

@ -8,6 +8,8 @@
// Command line parser core commands
//-----------------------------------------------------------------------------
#ifndef __CLIPARSER_H
#define __CLIPARSER_H
#include "argtable3.h"
#include "util.h"
#include <stdbool.h>
@ -39,3 +41,4 @@ void CLIParserFree(void);
int CLIParamHexToBuf(struct arg_str *argstr, uint8_t *data, int maxdatalen, int *datalen);
int CLIParamStrToBuf(struct arg_str *argstr, uint8_t *data, int maxdatalen, int *datalen);
#endif

View file

@ -13,6 +13,9 @@
* Lesser General Public License for more details.
*/
#ifndef __CDA_TEST_H
#define __CDA_TEST_H
#include <stdbool.h>
int exec_cda_test(bool verbose);
#endif

View file

@ -13,6 +13,9 @@
* Lesser General Public License for more details.
*/
#ifndef __CRYPTO_TEST_H
#define __CRYPTO_TEST_H
#include <stdbool.h>
int exec_crypto_test(bool verbose);
#endif

View file

@ -8,6 +8,9 @@
// Crypto algorithms testing
//-----------------------------------------------------------------------------
#ifndef __CRYPTOTEST_H
#define __CRYPTOTEST_H
#include <stdbool.h>
int ExecuteCryptoTests(bool verbose);
#endif

View file

@ -13,6 +13,9 @@
* Lesser General Public License for more details.
*/
#ifndef __DDA_TEST_H
#define __DDA_TEST_H
#include <stdbool.h>
int exec_dda_test(bool verbose);
#endif

View file

@ -13,4 +13,7 @@
* Lesser General Public License for more details.
*/
#ifndef __SDA_TEST_H
#define __SDA_TEST_H
int exec_sda_test(bool verbose);
#endif

View file

@ -34,6 +34,9 @@ on 1 byte), but shoehorning those bytes into integers efficiently is messy.
-------------------------------------------------------------------------------
*/
#ifndef LOOKUP3_H
#define LOOKUP3_H
#include <stdlib.h>
#ifdef HAVE_CONFIG_H
@ -454,3 +457,4 @@ static uint32_t hashlittle(const void *key, size_t length, uint32_t initval) {
final(a, b, c);
return c;
}
#endif

View file

@ -1,4 +1,7 @@
#ifndef __BITLIB_LIMITS_H
#define __BITLIB_LIMITS_H
#define BITLIB_FLOAT_BITS 53
#define BITLIB_FLOAT_MAX 0xfffffffffffffL
#define BITLIB_FLOAT_MIN (-0x10000000000000L)
#define BITLIB_FLOAT_UMAX 0x1fffffffffffffUL
#endif

View file

@ -8,6 +8,9 @@
// GUI functions
//-----------------------------------------------------------------------------
#ifndef __PROXGUI_H
#define __PROXGUI_H
#ifdef __cplusplus
extern "C" {
#endif
@ -53,3 +56,4 @@ extern uint8_t g_debugMode;
#ifdef __cplusplus
}
#endif
#endif

View file

@ -20,6 +20,11 @@
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __GETOPT_H
#define __GETOPT_H
extern char *optarg;
extern int optind, opterr, optopt, pos;
int getopt(int argc, char *argv[], const char *optstring);
#endif

View file

@ -1,3 +1,6 @@
#ifndef __TINYCBOR_VERSION_H
#define __TINYCBOR_VERSION_H
#define TINYCBOR_VERSION_MAJOR 0
#define TINYCBOR_VERSION_MINOR 5
#define TINYCBOR_VERSION_PATCH 3
#endif