summaryrefslogtreecommitdiff
path: root/src/analysis/scan/exprs/literal-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/analysis/scan/exprs/literal-int.h')
-rw-r--r--src/analysis/scan/exprs/literal-int.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/analysis/scan/exprs/literal-int.h b/src/analysis/scan/exprs/literal-int.h
index 875b3de..b0a0ec5 100644
--- a/src/analysis/scan/exprs/literal-int.h
+++ b/src/analysis/scan/exprs/literal-int.h
@@ -2,7 +2,7 @@
/* Chrysalide - Outil d'analyse de fichiers binaires
* literal-int.h - prototypes internes pour la représentation d'une valeur concrète
*
- * Copyright (C) 2022 Cyrille Bagard
+ * Copyright (C) 2023 Cyrille Bagard
*
* This file is part of Chrysalide.
*
@@ -28,24 +28,22 @@
#include "literal.h"
-#include <stdbool.h>
-
-
#include "../expr-int.h"
/* Expression portant une valeur concrète (instance) */
-struct _GLiteralExpression
+struct _GScanLiteralExpression
{
GScanExpression parent; /* A laisser en premier */
- ExprValueType value_type; /* Type de valeur portée */
+ LiteralValueType value_type; /* Type de valeur portée */
union
{
bool boolean; /* Valeur booléenne */
- unsigned long long integer; /* Valeur entière 64 bits */
+ long long s_integer; /* Valeur entière 64 bits */
+ unsigned long long u_integer; /* Valeur entière 64 bits */
sized_string_t string; /* Chaîne de caractères */
struct
{
@@ -58,7 +56,7 @@ struct _GLiteralExpression
};
/* Expression portant une valeur concrète (classe) */
-struct _GLiteralExpressionClass
+struct _GScanLiteralExpressionClass
{
GScanExpressionClass parent; /* A laisser en premier */
@@ -66,7 +64,7 @@ struct _GLiteralExpressionClass
/* Met en place une expression de valeur concrête. */
-bool g_literal_expression_create(GLiteralExpression *, ExprValueType, ...);
+bool g_scan_literal_expression_create(GScanLiteralExpression *, LiteralValueType, ...);