From 0a09c1b71683821659dc921ae52be43bf30faacf Mon Sep 17 00:00:00 2001 From: Christophe Alexandre Date: Tue, 14 May 2002 09:10:29 +0000 Subject: [PATCH] mbk C++ compliant ... --- alliance/src/mbk/src/mlo.h | 10 ++++++++-- alliance/src/mbk/src/mlu.h | 11 +++++++++-- alliance/src/mbk/src/mph.h | 11 +++++++++-- alliance/src/mbk/src/mpu.h | 11 +++++++++-- alliance/src/mbk/src/mut.h | 10 +++++++++- alliance/src/mbk/src/rcn.h | 11 ++++++++++- 6 files changed, 54 insertions(+), 10 deletions(-) diff --git a/alliance/src/mbk/src/mlo.h b/alliance/src/mbk/src/mlo.h index 7610dd45..fabfafb8 100644 --- a/alliance/src/mbk/src/mlo.h +++ b/alliance/src/mbk/src/mlo.h @@ -26,12 +26,16 @@ * Date : 05/08/93 * Author : Frederic Petrot * Modified by Czo 1997,98 - * $Id: mlo.h,v 1.1 2002/03/08 13:51:05 fred Exp $ + * $Id: mlo.h,v 1.2 2002/05/14 09:10:29 xtof Exp $ */ #ifndef _MLO_H_ #define _MLO_H_ +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #ifndef __P # if defined(__STDC__) || defined(__GNUC__) # define __P(x) x @@ -175,6 +179,8 @@ losig_list; extern void delloconuser __P((locon_list*)); extern void dellofiguser __P((lofig_list*)); +#ifdef __cplusplus +} +#endif /* __cplusplus */ #endif /* !MLO */ - diff --git a/alliance/src/mbk/src/mlu.h b/alliance/src/mbk/src/mlu.h index 673372b9..84163b5c 100644 --- a/alliance/src/mbk/src/mlu.h +++ b/alliance/src/mbk/src/mlu.h @@ -26,12 +26,16 @@ * Date : 05/08/93 * Author : Frederic Petrot * Modified by Czo 1997,98 - * $Id: mlu.h,v 1.1 2002/03/08 13:51:05 fred Exp $ + * $Id: mlu.h,v 1.2 2002/05/14 09:10:29 xtof Exp $ */ #ifndef _MLU_H_ #define _MLU_H_ +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #ifndef __P # if defined(__STDC__) || defined(__GNUC__) # define __P(x) x @@ -66,5 +70,8 @@ extern int guessextdir __P((lofig_list *lof)); extern int restorealldir __P((lofig_list *lf)); -#endif /* !MLU */ +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* !MLU */ diff --git a/alliance/src/mbk/src/mph.h b/alliance/src/mbk/src/mph.h index 5debfa34..2743ae45 100644 --- a/alliance/src/mbk/src/mph.h +++ b/alliance/src/mbk/src/mph.h @@ -26,12 +26,16 @@ * Date : 05/08/93 * Author : Frederic Petrot * Modified by Czo 1997,98 - * $Id: mph.h,v 1.1 2002/03/08 13:51:05 fred Exp $ + * $Id: mph.h,v 1.2 2002/05/14 09:10:29 xtof Exp $ */ #ifndef _MPH_H_ #define _MPH_H_ +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #ifndef __P # if defined(__STDC__) || defined(__GNUC__) # define __P(x) x @@ -249,5 +253,8 @@ extern phfig_list *HEAD_PHFIG; /* physical figure list head */ extern void invxyflat __P((long *x, long *y, long xout, long yout, long xins, long yins, long x1, long y1, long x2, long y2, char trsf)); extern void viewph __P(()); -#endif /* !MPH */ +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* !MPH */ diff --git a/alliance/src/mbk/src/mpu.h b/alliance/src/mbk/src/mpu.h index d6d88e94..ab75569e 100644 --- a/alliance/src/mbk/src/mpu.h +++ b/alliance/src/mbk/src/mpu.h @@ -26,12 +26,16 @@ * Date : 05/08/93 * Author : Frederic Petrot * Modified by Czo 1997,98 - * $Id: mpu.h,v 1.1 2002/03/08 13:51:05 fred Exp $ + * $Id: mpu.h,v 1.2 2002/05/14 09:10:29 xtof Exp $ */ #ifndef _MPU_H_ #define _MPU_H_ +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #ifndef __P # if defined(__STDC__) || defined(__GNUC__) # define __P(x) x @@ -48,5 +52,8 @@ extern void savephfig __P((phfig_list *ptfig)); extern void mphdebug __P((void *head_pnt, char *stru_name)); -#endif /* !MPU */ +#ifdef __cplusplus +} +#endif /* __cplusplus */ +#endif /* !MPU */ diff --git a/alliance/src/mbk/src/mut.h b/alliance/src/mbk/src/mut.h index a4e90f1f..6fb03a2e 100644 --- a/alliance/src/mbk/src/mut.h +++ b/alliance/src/mbk/src/mut.h @@ -26,7 +26,7 @@ * Date : 31/08/93 * Author : Frederic Petrot * Modified by Czo 1997,98 - * $Id: mut.h,v 1.3 2002/05/11 17:03:37 xtof Exp $ + * $Id: mut.h,v 1.4 2002/05/14 09:10:29 xtof Exp $ */ #ifndef _MUT_H_ @@ -36,6 +36,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #ifndef __P # if defined(__STDC__) || defined(__GNUC__) # define __P(x) x @@ -307,4 +311,8 @@ extern void vlogsavelofig(); extern void mgnloadphfig(); extern void mgnsavephfig(); +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* !MUTL */ diff --git a/alliance/src/mbk/src/rcn.h b/alliance/src/mbk/src/rcn.h index 1837d509..8b5a8639 100644 --- a/alliance/src/mbk/src/rcn.h +++ b/alliance/src/mbk/src/rcn.h @@ -21,7 +21,7 @@ * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#ident "$Id: rcn.h,v 1.1 2002/03/08 13:51:05 fred Exp $" +#ident "$Id: rcn.h,v 1.2 2002/05/14 09:10:29 xtof Exp $" /******************************************************************************* * rcn : constantes, externs, and data-structures * @@ -41,6 +41,10 @@ #ifndef RCNH #define RCNH +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + /* layer of wire */ #define RCN_WIRE_UNKNOW ((unsigned char) 0x00000001) #define RCN_WIRE_POLY ((unsigned char) 0x00000002) @@ -220,4 +224,9 @@ extern int breakloop __P(( losig_list* )); extern int reduce_rcn __P(( losig_list* )); extern int connexe __P(( losig_list* )); extern int cleanrcnet __P(( losig_list* )); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + #endif /* !RCNH */