summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-08-18 00:07:39 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-08-18 00:07:39 (GMT)
commit2424c52c4f3bc44ce5f36348442cfa103e0989c2 (patch)
treef68aea488f403b234d4fcc6fd6e0f7b88a628ac8 /src/common
parent1c5a0e67186def152536d9c506e2e6c3a3a265c5 (diff)
Create some modifiers and handle match properties inside ROST.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/cpp.h2
-rw-r--r--src/common/szstr.h6
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 \
{ \