From 0de829741aa8a2263800734eba5c6c5c49c6c02f Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Sun, 19 Aug 2018 20:27:45 +0200 Subject: [PATCH] Add synonimous for pointers. --- m-bitset.h | 2 ++ m-string.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/m-bitset.h b/m-bitset.h index e7e17ed6..2e979471 100644 --- a/m-bitset.h +++ b/m-bitset.h @@ -39,6 +39,8 @@ typedef struct bitset_s { size_t alloc; // Alloc is the number of allocated limbs bitset_limb *ptr; // Pointer to the allocated limbs } bitset_t[1]; +typedef struct bitset_s *bitset_ptr; +typedef const struct bitset_s bitset_srcptr; typedef struct bitset_it_s { size_t index; // index to the array of bit diff --git a/m-string.h b/m-string.h index 0fa3fcbc..8d4b9329 100644 --- a/m-string.h +++ b/m-string.h @@ -73,6 +73,8 @@ typedef struct string_s { size_t size, alloc; char *ptr; } string_t[1]; +typedef struct string_s *string_ptr; +typedef const struct string_s string_srcptr; /* Input option for the fgets function */ typedef enum string_fgets_s {