diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-08-18 00:07:39 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-08-18 00:07:39 (GMT) |
commit | 2424c52c4f3bc44ce5f36348442cfa103e0989c2 (patch) | |
tree | f68aea488f403b234d4fcc6fd6e0f7b88a628ac8 /src/common | |
parent | 1c5a0e67186def152536d9c506e2e6c3a3a265c5 (diff) |
Create some modifiers and handle match properties inside ROST.
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/cpp.h | 2 | ||||
-rw-r--r-- | src/common/szstr.h | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/common/cpp.h b/src/common/cpp.h index b1606ed..39e7676 100644 --- a/src/common/cpp.h +++ b/src/common/cpp.h @@ -46,6 +46,8 @@ #define SIZE_T_MAXLEN strlen(XSTR(LONG_MAX)) +#define ULLONG_MAXLEN (sizeof(XSTR(ULLONG_MAX)) + 1) + /** * Emprunt au noyau Linux (cf. include/linux/bug.h) pour les vérifications à la compilation. diff --git a/src/common/szstr.h b/src/common/szstr.h index d73e489..0091482 100644 --- a/src/common/szstr.h +++ b/src/common/szstr.h @@ -30,6 +30,7 @@ #include "sort.h" +#include "../arch/archbase.h" @@ -42,6 +43,9 @@ typedef struct _sized_string_t } sized_string_t; +typedef sized_string_t sized_binary_t; + + #define init_szstr(s) \ do \ { \ @@ -59,6 +63,8 @@ typedef struct _sized_string_t } \ while (0) +#define copy_szstr(d, s) (d) = (s); + #define exit_szstr(s) \ do \ { \ |