From f6eb2ebf878bb2568fdf7e18d3904fecbb0795370e7e61155f55b60893b38ecf Mon Sep 17 00:00:00 2001 From: ADAM David Alan Martin Date: Mon, 18 Aug 2025 03:13:39 -0400 Subject: [PATCH] Ready to start C++ifying a virtual base... --- src/cache.cc | 2 +- src/decode.hh | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cache.cc b/src/cache.cc index 328b733..343650e 100644 --- a/src/cache.cc +++ b/src/cache.cc @@ -51,7 +51,7 @@ struct CacheEntry_t ~CacheEntry_t(); std::unique_ptr< const DilloUrl > Url; /**< Cached Url. Url is used as a primary Key */ - std::string TypeDet; /**< MIME type string (detected from data) */ + std::string TypeDet; /**< MIME type string (detected from data) */ char *TypeHdr; /**< MIME type string as from the HTTP Header */ char *TypeMeta; /**< MIME type string from META HTTP-EQUIV */ char *TypeNorm; /**< MIME type string normalized */ diff --git a/src/decode.hh b/src/decode.hh index 3d90d38..42214d1 100644 --- a/src/decode.hh +++ b/src/decode.hh @@ -7,22 +7,22 @@ extern "C" { #endif /* __cplusplus */ -typedef struct Decode { +struct Decode { char *buffer; Dstr *leftover; void *state; Dstr *(*decode) (struct Decode *dc, const char *instr, int inlen); void (*free) (struct Decode *dc); -} Decode; +}; /* I'm not going to shoehorn the decoders into the same form anymore. They * can evolve independently. */ -typedef struct DecodeTransfer { +struct DecodeTransfer { Dstr *leftover; void *state; bool_t finished; /**< has the terminating chunk been seen? */ -} DecodeTransfer; +}; DecodeTransfer *a_Decode_transfer_init(const char *format); Dstr *a_Decode_transfer_process(DecodeTransfer *dc, const char *instr,