From 15714f5466df151f1e7552789c328f7e7beff04b Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 24 Nov 2005 13:05:25 +0000 Subject: [PATCH] added a pseudo implementation of struvt ident to allow easy debugging [r6981] --- ir/ident/ident.c | 8 ++++++-- ir/ident/ident.h | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ir/ident/ident.c b/ir/ident/ident.c index 8d4dd1d1a..16192a917 100644 --- a/ir/ident/ident.c +++ b/ir/ident/ident.c @@ -23,7 +23,11 @@ #include "ident_t.h" #include "set.h" -typedef const struct set_entry ident_s; +/* for debugging only, not the real implementation */ +struct ident { + char reserved[sizeof(unsigned) + sizeof(size_t)]; + char data[1]; +}; /** The current ident module implementation. */ static ident_if_t impl; @@ -33,7 +37,7 @@ static ident_if_t impl; * * @param handle the handle for the set * @param str the string which shall be stored - * @param len lenght of str in bytes + * @param len length of str in bytes * * @return id - a handle for the generated ident * diff --git a/ir/ident/ident.h b/ir/ident/ident.h index e15fdabba..a2707d024 100644 --- a/ir/ident/ident.h +++ b/ir/ident/ident.h @@ -35,7 +35,7 @@ */ #ifndef _IDENT_TYPEDEF_ #define _IDENT_TYPEDEF_ -typedef const struct s_ident ident; +typedef const struct ident ident; #endif /** -- 2.20.1