From 0f0e7cc54aecab1647bdcd222c84d17275b92313 Mon Sep 17 00:00:00 2001 From: "p37sitdu, corvid" Date: Sat, 12 Jan 2013 20:13:36 +0000 Subject: clean up struct typedefs --- src/decode.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/decode.h') diff --git a/src/decode.h b/src/decode.h index 064177eb..279807a6 100644 --- a/src/decode.h +++ b/src/decode.h @@ -7,15 +7,13 @@ extern "C" { #endif /* __cplusplus */ -typedef struct _Decode Decode; - -struct _Decode { +typedef struct Decode { char *buffer; Dstr *leftover; void *state; - Dstr *(*decode) (Decode *dc, const char *instr, int inlen); - void (*free) (Decode *dc); -}; + Dstr *(*decode) (struct Decode *dc, const char *instr, int inlen); + void (*free) (struct Decode *dc); +} Decode; Decode *a_Decode_transfer_init(const char *format); Decode *a_Decode_content_init(const char *format); -- cgit v1.2.3