summaryrefslogtreecommitdiff
path: root/src/format/mangling/itanium_gram.y
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2010-08-01 14:16:09 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2010-08-01 14:16:09 (GMT)
commitbcfcb4ec8b4cf9a35b77e93d172e7dae81e8872a (patch)
tree49320473d97a18f4c2fcb705358871be5a5e33c0 /src/format/mangling/itanium_gram.y
parent8725bd7f911369b04a507040256bf889517b377e (diff)
Cleaned the code and provided a fast way to demangle strings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@178 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/mangling/itanium_gram.y')
-rw-r--r--src/format/mangling/itanium_gram.y23
1 files changed, 11 insertions, 12 deletions
diff --git a/src/format/mangling/itanium_gram.y b/src/format/mangling/itanium_gram.y
index 9291f57..f8c02a2 100644
--- a/src/format/mangling/itanium_gram.y
+++ b/src/format/mangling/itanium_gram.y
@@ -8,7 +8,6 @@
#include "context-int.h"
-#include "demangler-int.h"
#include "itanium.h"
#include "../../common/extstr.h"
@@ -808,6 +807,12 @@ static GOpenidaType *g_itanium_dcontext_get_item(GItaniumDContext *context, guin
+/* ---------------------------------------------------------------------------------- */
+/* TRAITEMENT DE L'ENCODAGE ITANIUM */
+/* ---------------------------------------------------------------------------------- */
+
+
+
@@ -850,33 +855,27 @@ int yyerror(/*const YYLTYPE *yyloc, bool hunt, char **ucode, unsigned char *inde
-#if 0
+
/******************************************************************************
* *
-* Paramètres : demangler = décodeur à utiliser. *
-* name = chaîne de caractères à analyser. *
+* Paramètres : desc = chaîne de caractères à décoder. *
* *
* Description : Indique si une chaîne peut être traitée par le décodeur. *
* *
-* Retour : Bilan de l'opération. *
+* Retour : Bilan de l'analyse. *
* *
* Remarques : - *
* *
******************************************************************************/
-bool can_be_itanium_demangled(itanium_demangler *itanium, const char *name)
+bool can_be_itanium_demangled(const char *desc)
{
- return (strncmp(name, "_Z", 2) == 0);
+ return (strncmp(desc, "_Z", 2) == 0);
}
-#endif
-
-
-
-
/******************************************************************************
* *
* Paramètres : context = contexte de décodage à utiliser. *