diff options
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 \ { \ |