extern "C" added
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 30 Dec 2005 15:29:21 +0000 (15:29 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 30 Dec 2005 15:29:21 +0000 (15:29 +0000)
renamed struct _ident to struct ident for better debugging

[r7171]

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

index 49abd69..f735810 100644 (file)
@@ -35,7 +35,7 @@
 #include "set.h"
 
 /* for debugging only, not the real implementation */
-struct ident {
+struct _ident {
   char reserved[sizeof(unsigned) + sizeof(size_t)];
   char data[1];
 };
index 9843e35..eab7d9d 100644 (file)
 #include <wchar.h>
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* Identifiers */
 
 /**
@@ -35,7 +39,7 @@
  */
 #ifndef _IDENT_TYPEDEF_
 #define _IDENT_TYPEDEF_
-typedef const struct ident ident;
+typedef const struct _ident ident;
 #endif
 
 /**
@@ -281,4 +285,8 @@ int id_contains_wchar (ident *id, wchar_t c);
 
 #endif /* FIRM_ENABLE_WCHAR */
 
+#ifdef __cplusplus
+}
+#endif
+
 # endif /* _IDENT_H_ */