Minimize includes in header files to what they depend on

This commit is contained in:
Alexandre Paillier
2022-03-08 17:59:36 +01:00
parent c548aba364
commit 23202f6a63
21 changed files with 43 additions and 25 deletions

View File

@@ -1,5 +1,6 @@
#ifdef HAVE_ETH2
#include <string.h>
#include "shared_context.h"
uint32_t set_result_get_eth2_publicKey() {
@@ -9,4 +10,4 @@ uint32_t set_result_get_eth2_publicKey() {
return tx;
}
#endif
#endif // HAVE_ETH2

View File

@@ -1,3 +1,4 @@
#include <string.h>
#include "shared_context.h"
uint32_t set_result_get_publicKey() {

View File

@@ -1,3 +1,4 @@
#include "os_io_seproxyhal.h"
#include "shared_context.h"
#include "ui_callbacks.h"

View File

@@ -1,3 +1,4 @@
#include "os_io_seproxyhal.h"
#include "shared_context.h"
#include "ui_callbacks.h"

View File

@@ -1,3 +1,4 @@
#include "os_io_seproxyhal.h"
#include "shared_context.h"
#include "utils.h"
#include "ui_callbacks.h"

View File

@@ -1,5 +1,6 @@
#ifdef HAVE_STARKWARE
#include <string.h>
#include "shared_context.h"
#include "feature_stark_getPublicKey.h"
@@ -10,4 +11,4 @@ uint32_t set_result_get_stark_publicKey() {
return tx;
}
#endif
#endif // HAVE_STARKWARE

View File

@@ -1,5 +1,6 @@
#ifdef HAVE_STARKWARE
#include "os_io_seproxyhal.h"
#include "shared_context.h"
#include "stark_utils.h"
#include "ui_callbacks.h"
@@ -32,4 +33,4 @@ unsigned int io_seproxyhal_touch_stark_ok(__attribute__((unused)) const bagl_ele
return 0; // do not redraw the widget
}
#endif
#endif // HAVE_STARKWARE

View File

@@ -1,5 +1,6 @@
#ifdef HAVE_STARKWARE
#include "os_io_seproxyhal.h"
#include "shared_context.h"
#include "stark_utils.h"
#include "ui_callbacks.h"
@@ -38,4 +39,4 @@ unsigned int io_seproxyhal_touch_stark_unsafe_sign_ok(__attribute__((unused))
return 0; // do not redraw the widget
}
#endif
#endif // HAVE_STARKWARE