summaryrefslogtreecommitdiff
path: root/src/glibext/gbinarycursor.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-14 13:15:59 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-14 13:15:59 (GMT)
commit9441aee9dfb31332ffbfa64204b5e4466249d563 (patch)
treec7e2b826dada2e39127a1f85536de71063f9be0f /src/glibext/gbinarycursor.c
parent078b2ffd38da040ab87a9686bcc2e796841cccb7 (diff)
Deleted a few more references to concrete locations in buffer displays.
Diffstat (limited to 'src/glibext/gbinarycursor.c')
-rw-r--r--src/glibext/gbinarycursor.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/glibext/gbinarycursor.c b/src/glibext/gbinarycursor.c
index 470022c..c614058 100644
--- a/src/glibext/gbinarycursor.c
+++ b/src/glibext/gbinarycursor.c
@@ -60,6 +60,9 @@ static void g_binary_cursor_finalize(GBinaryCursor *);
/* Compare deux suivis d'emplacements. */
static int g_binary_cursor_compare(const GBinaryCursor *, const GBinaryCursor *);
+/* Détermine si un suivi d'emplacement est valide ou non. */
+static bool g_binary_cursor_is_valid(const GBinaryCursor *);
+
/* Détermine le type du gestionnaire de largeurs associées aux lignes. */
@@ -91,6 +94,7 @@ static void g_binary_cursor_class_init(GBinaryCursorClass *class)
line = G_LINE_CURSOR_CLASS(class);
line->compare = (compare_cursor_fc)g_binary_cursor_compare;
+ line->is_valid = (is_cursor_valid_fc)g_binary_cursor_is_valid;
}
@@ -201,6 +205,29 @@ static int g_binary_cursor_compare(const GBinaryCursor *cursor, const GBinaryCur
/******************************************************************************
* *
+* Paramètres : cursor = suivi d'emplacement à consulter. *
+* *
+* Description : Détermine si un suivi d'emplacement est valide ou non. *
+* *
+* Retour : Bilan de validité. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+static bool g_binary_cursor_is_valid(const GBinaryCursor *cursor)
+{
+ bool result; /* Bilan à renvoyer */
+
+ result = !is_invalid_vmpa(&cursor->addr);
+
+ return result;
+
+}
+
+
+/******************************************************************************
+* *
* Paramètres : cursor = suivi de positions à mettre à jour. *
* addr = emplacement dans le binaire visé. *
* *