From f8293d9ac93fd89f4a041d0719387b11f12f8827 Mon Sep 17 00:00:00 2001
From: Dominik Loidolt <dominik.loidolt@univie.ac.at>
Date: Wed, 6 Nov 2024 11:06:27 +0100
Subject: [PATCH] Simplify function pointer declaration in encoder_setup

Replace typedef'd function pointer type with direct declaration in struct.
---
 lib/icu_compress/cmp_icu.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/lib/icu_compress/cmp_icu.c b/lib/icu_compress/cmp_icu.c
index bab0f2d..6c8830a 100644
--- a/lib/icu_compress/cmp_icu.c
+++ b/lib/icu_compress/cmp_icu.c
@@ -67,20 +67,13 @@ static uint64_t (*get_timestamp)(void) = default_get_timestamp;
 static uint32_t version_identifier;
 
 
-/**
- * @brief pointer to a code word generation function
- */
-
-typedef uint32_t (*generate_cw_f_pt)(uint32_t value, uint32_t encoder_par1,
-				     uint32_t encoder_par2, uint32_t *cw);
-
-
 /**
  * @brief structure to hold a setup to encode a value
  */
 
 struct encoder_setup {
-	generate_cw_f_pt generate_cw_f; /**< function pointer to a code word encoder */
+	uint32_t (*generate_cw_f)(uint32_t value, uint32_t encoder_par1,
+				  uint32_t encoder_par2, uint32_t *cw); /**< function pointer to a code word encoder */
 	uint32_t (*encode_method_f)(uint32_t data, uint32_t model, uint32_t stream_len,
 				    const struct encoder_setup *setup); /**< pointer to the encoding function */
 	uint32_t *bitstream_adr; /**< start address of the compressed data bitstream */
-- 
GitLab