summaryrefslogtreecommitdiff
path: root/src/gtksnippet.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2008-08-31 20:49:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2008-08-31 20:49:30 (GMT)
commitada3040b9b2b6d0a2d6e2157b3f79e772e36b2d7 (patch)
treeb83827a15339d01870c21b181bc9b10ac58451ac /src/gtksnippet.c
parenta9e504c2e6e07d29cee620b3d34492e002d1680e (diff)
Looked for symbols of function.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@23 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtksnippet.c')
-rw-r--r--src/gtksnippet.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/gtksnippet.c b/src/gtksnippet.c
index 6470fcb..7e5e012 100644
--- a/src/gtksnippet.c
+++ b/src/gtksnippet.c
@@ -90,7 +90,30 @@ void delete_code_line_info(code_line_info *line)
}
+/******************************************************************************
+* *
+* Paramètres : a = premières informations à consulter. *
+* b = secondes informations à consulter. *
+* *
+* Description : Etablit la comparaison entre deux lignes de représentation. *
+* *
+* Retour : Bilan : -1 (a < b), 0 (a == b) ou 1 (a > b). *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+int compare_code_line_info(const code_line_info **a, const code_line_info **b)
+{
+ int result; /* Bilan à renvoyer */
+
+ if ((*a)->offset < (*b)->offset) result = -1;
+ else if((*a)->offset > (*b)->offset) result = 1;
+ else result = 0;
+ return result;
+
+}