diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-09-12 04:43:02 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-09-12 04:45:25 (GMT) |
commit | fed4c10b9bb1c6f99440dba3839a1e7b56b40359 (patch) | |
tree | d544bde345c16a5eff19c0f9a074c09b366f7dbe /src/common | |
parent | 155c500b8933d2c7269215ea1d141d341de0a44f (diff) |
Save current state with some ROST extra features.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/szstr.h | 6 |
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; |