added a pseudo implementation of struvt ident to allow easy debugging
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 24 Nov 2005 13:05:25 +0000 (13:05 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 24 Nov 2005 13:05:25 +0000 (13:05 +0000)
[r6981]

ir/ident/ident.c
ir/ident/ident.h

index 8d4dd1d..16192a9 100644 (file)
 #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
  *
index e15fdab..a2707d0 100644 (file)
@@ -35,7 +35,7 @@
  */
 #ifndef _IDENT_TYPEDEF_
 #define _IDENT_TYPEDEF_
-typedef const struct s_ident ident;
+typedef const struct ident ident;
 #endif
 
 /**