update all HCFILE vars and related code

This commit is contained in:
Gabriele Gristina
2019-07-02 21:30:35 +02:00
parent 2db6dfcd4e
commit 3d39d2fc91
11 changed files with 94 additions and 117 deletions

View File

@@ -10,7 +10,7 @@ typedef struct extra_info_straight
{
u64 pos;
HCFILE *fp;
HCFILE fp;
u64 rule_pos_prev;
u64 rule_pos;

View File

@@ -1161,12 +1161,12 @@ typedef struct hc_device_param
u32 *brain_link_out_buf;
#endif
char *scratch_buf;
char *scratch_buf;
HCFILE combs_fp;
pw_t *combs_buf;
HCFILE combs_fp;
pw_t *combs_buf;
void *hooks_buf;
void *hooks_buf;
pw_idx_t *pws_idx;
u32 *pws_comp;
@@ -1555,11 +1555,12 @@ typedef aes_context_t aes_ctx;
typedef struct debugfile_ctx
{
bool enabled;
HCFILE fp;
HCFILE *fp;
char *filename;
u32 mode;
bool enabled;
char *filename;
u32 mode;
} debugfile_ctx_t;
@@ -1600,11 +1601,12 @@ typedef struct dictstat_ctx
typedef struct loopback_ctx
{
bool enabled;
bool unused;
HCFILE fp;
HCFILE *fp;
char *filename;
bool enabled;
bool unused;
char *filename;
} loopback_ctx_t;
@@ -1617,12 +1619,12 @@ typedef struct mf
typedef struct outfile_ctx
{
char *filename;
HCFILE fp;
HCFILE *fp;
u32 outfile_format;
bool outfile_autohex;
u32 outfile_format;
bool outfile_autohex;
char *filename;
} outfile_ctx_t;
@@ -1637,9 +1639,10 @@ typedef struct pot
typedef struct potfile_ctx
{
HCFILE fp;
bool enabled;
HCFILE fp;
char *filename;
u8 *out_buf; // allocates [HCBUFSIZ_LARGE];
@@ -1721,10 +1724,10 @@ typedef struct pidfile_ctx
typedef struct out
{
HCFILE *fp;
HCFILE fp;
char buf[HCBUFSIZ_SMALL];
int len;
char buf[HCBUFSIZ_SMALL];
int len;
} out_t;