summaryrefslogtreecommitdiffstats
path: root/src/misc
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2006-03-03 08:01:00 -0800
committerAlan Mishchenko <alanmi@berkeley.edu>2006-03-03 08:01:00 -0800
commit0e57e953062cd2d97573d8428f6f77853ba8535e (patch)
tree44eb008801aae04cd834aa0c02efd6cdd67a64b5 /src/misc
parent9e6f8406e80c55455c464b01033040a88fd12c40 (diff)
downloadabc-0e57e953062cd2d97573d8428f6f77853ba8535e.tar.gz
abc-0e57e953062cd2d97573d8428f6f77853ba8535e.tar.bz2
abc-0e57e953062cd2d97573d8428f6f77853ba8535e.zip
Version abc60303
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/extra/extra.h8
-rw-r--r--src/misc/mvc/mvc.h4
-rw-r--r--src/misc/st/st.h8
-rw-r--r--src/misc/st/stmm.h8
-rw-r--r--src/misc/util/util_hack.h8
-rw-r--r--src/misc/vec/vec.h12
-rw-r--r--src/misc/vec/vecInt.h4
-rw-r--r--src/misc/vec/vecPtr.h4
-rw-r--r--src/misc/vec/vecStr.h4
-rw-r--r--src/misc/vec/vecVec.h4
10 files changed, 52 insertions, 12 deletions
diff --git a/src/misc/extra/extra.h b/src/misc/extra/extra.h
index 666d7388..1b6abaa6 100644
--- a/src/misc/extra/extra.h
+++ b/src/misc/extra/extra.h
@@ -29,6 +29,10 @@
#ifndef __EXTRA_H__
#define __EXTRA_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef _WIN32
#define inline __inline // compatible with MS VS 6.0
#endif
@@ -434,4 +438,8 @@ extern int globalUtilOptind;
/**AutomaticEnd***************************************************************/
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __EXTRA_H__ */
diff --git a/src/misc/mvc/mvc.h b/src/misc/mvc/mvc.h
index 363b1e57..650f698d 100644
--- a/src/misc/mvc/mvc.h
+++ b/src/misc/mvc/mvc.h
@@ -724,9 +724,9 @@ extern Mvc_Manager_t * Mvc_ManagerAllocCube( int nWords );
extern Mvc_Manager_t * Mvc_ManagerFreeCover( Mvc_Cover_t * pCover );
extern Mvc_Manager_t * Mvc_ManagerFreeCube( Mvc_Cover_t * pCube, int nWords );
+#endif
+
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
-#endif
-
diff --git a/src/misc/st/st.h b/src/misc/st/st.h
index 1802cf9b..b15f3c83 100644
--- a/src/misc/st/st.h
+++ b/src/misc/st/st.h
@@ -14,6 +14,10 @@
#ifndef ST_INCLUDED
#define ST_INCLUDED
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct st_table_entry st_table_entry;
struct st_table_entry {
char *key;
@@ -85,4 +89,8 @@ extern void st_free_gen (st_generator *);
#define ST_OUT_OF_MEM -10000
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ST_INCLUDED */
diff --git a/src/misc/st/stmm.h b/src/misc/st/stmm.h
index d7b8a3f3..4330416e 100644
--- a/src/misc/st/stmm.h
+++ b/src/misc/st/stmm.h
@@ -14,6 +14,10 @@
#ifndef STMM_INCLUDED
#define STMM_INCLUDED
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "extra.h"
typedef struct stmm_table_entry stmm_table_entry;
@@ -116,4 +120,8 @@ EXTERN void stmm_clean ARGS ((stmm_table *));
*/
+#ifdef __cplusplus
+}
+#endif
+
#endif /* STMM_INCLUDED */
diff --git a/src/misc/util/util_hack.h b/src/misc/util/util_hack.h
index 57914c47..a9b90e61 100644
--- a/src/misc/util/util_hack.h
+++ b/src/misc/util/util_hack.h
@@ -21,6 +21,10 @@
#ifndef __UTIL_HACK_H__
#define __UTIL_HACK_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -84,4 +88,8 @@ extern char * Extra_UtilFileSearch( char *file, char *path, char *mode );
extern char * globalUtilOptarg;
extern int globalUtilOptind;
+#ifdef __cplusplus
+}
+#endif
+
#endif
diff --git a/src/misc/vec/vec.h b/src/misc/vec/vec.h
index f5ecf9bd..6ab23298 100644
--- a/src/misc/vec/vec.h
+++ b/src/misc/vec/vec.h
@@ -21,6 +21,10 @@
#ifndef __VEC_H__
#define __VEC_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
////////////////////////////////////////////////////////////////////////
/// INCLUDES ///
////////////////////////////////////////////////////////////////////////
@@ -50,9 +54,13 @@
/// FUNCTION DECLARATIONS ///
////////////////////////////////////////////////////////////////////////
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
-#endif
-
diff --git a/src/misc/vec/vecInt.h b/src/misc/vec/vecInt.h
index 06526332..ee848df7 100644
--- a/src/misc/vec/vecInt.h
+++ b/src/misc/vec/vecInt.h
@@ -696,9 +696,9 @@ static inline void Vec_IntSortUnsigned( Vec_Int_t * p )
(int (*)(const void *, const void *)) Vec_IntSortCompareUnsigned );
}
+#endif
+
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
-#endif
-
diff --git a/src/misc/vec/vecPtr.h b/src/misc/vec/vecPtr.h
index 66198eb0..65314af6 100644
--- a/src/misc/vec/vecPtr.h
+++ b/src/misc/vec/vecPtr.h
@@ -529,10 +529,10 @@ static inline void Vec_PtrSort( Vec_Ptr_t * p, int (*Vec_PtrSortCompare)() )
(int (*)(const void *, const void *)) Vec_PtrSortCompare );
}
+#endif
+
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
-#endif
-
diff --git a/src/misc/vec/vecStr.h b/src/misc/vec/vecStr.h
index 86a5046a..5549d374 100644
--- a/src/misc/vec/vecStr.h
+++ b/src/misc/vec/vecStr.h
@@ -501,9 +501,9 @@ static inline void Vec_StrSort( Vec_Str_t * p, int fReverse )
(int (*)(const void *, const void *)) Vec_StrSortCompare1 );
}
+#endif
+
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
-#endif
-
diff --git a/src/misc/vec/vecVec.h b/src/misc/vec/vecVec.h
index f95b334c..8518184a 100644
--- a/src/misc/vec/vecVec.h
+++ b/src/misc/vec/vecVec.h
@@ -256,9 +256,9 @@ static inline void Vec_VecPushUnique( Vec_Vec_t * p, int Level, void * Entry )
Vec_PtrPushUnique( (Vec_Ptr_t*)p->pArray[Level], Entry );
}
+#endif
+
////////////////////////////////////////////////////////////////////////
/// END OF FILE ///
////////////////////////////////////////////////////////////////////////
-#endif
-