summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-09-12 04:43:02 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-09-12 04:45:25 (GMT)
commitfed4c10b9bb1c6f99440dba3839a1e7b56b40359 (patch)
treed544bde345c16a5eff19c0f9a074c09b366f7dbe /src/common
parent155c500b8933d2c7269215ea1d141d341de0a44f (diff)
Save current state with some ROST extra features.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/szstr.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/common/szstr.h b/src/common/szstr.h
index 0091482..aad1920 100644
--- a/src/common/szstr.h
+++ b/src/common/szstr.h
@@ -37,7 +37,11 @@
/* Structure associant une chaîne et sa taille */
typedef struct _sized_string_t
{
- char *data; /* Chaîne de caractères */
+ union {
+ const char *static_data; /* Données non modifiées */
+ char *data; /* Chaîne de caractères */
+ };
+
size_t len; /* Taille correspondante */
} sized_string_t;