mbk C++ compliant ...

This commit is contained in:
Christophe Alexandre 2002-05-14 09:10:29 +00:00
parent 43abe0d317
commit 0a09c1b716
6 changed files with 54 additions and 10 deletions

View File

@ -26,12 +26,16 @@
* Date : 05/08/93 * Date : 05/08/93
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr> * Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98 * Modified by Czo <Olivier.Sirol@lip6.fr> 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_ #ifndef _MLO_H_
#define _MLO_H_ #define _MLO_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifndef __P #ifndef __P
# if defined(__STDC__) || defined(__GNUC__) # if defined(__STDC__) || defined(__GNUC__)
# define __P(x) x # define __P(x) x
@ -175,6 +179,8 @@ losig_list;
extern void delloconuser __P((locon_list*)); extern void delloconuser __P((locon_list*));
extern void dellofiguser __P((lofig_list*)); extern void dellofiguser __P((lofig_list*));
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !MLO */ #endif /* !MLO */

View File

@ -26,12 +26,16 @@
* Date : 05/08/93 * Date : 05/08/93
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr> * Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98 * Modified by Czo <Olivier.Sirol@lip6.fr> 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_ #ifndef _MLU_H_
#define _MLU_H_ #define _MLU_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifndef __P #ifndef __P
# if defined(__STDC__) || defined(__GNUC__) # if defined(__STDC__) || defined(__GNUC__)
# define __P(x) x # define __P(x) x
@ -66,5 +70,8 @@
extern int guessextdir __P((lofig_list *lof)); extern int guessextdir __P((lofig_list *lof));
extern int restorealldir __P((lofig_list *lf)); extern int restorealldir __P((lofig_list *lf));
#endif /* !MLU */ #ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !MLU */

View File

@ -26,12 +26,16 @@
* Date : 05/08/93 * Date : 05/08/93
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr> * Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98 * Modified by Czo <Olivier.Sirol@lip6.fr> 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_ #ifndef _MPH_H_
#define _MPH_H_ #define _MPH_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifndef __P #ifndef __P
# if defined(__STDC__) || defined(__GNUC__) # if defined(__STDC__) || defined(__GNUC__)
# define __P(x) x # 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 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(()); extern void viewph __P(());
#endif /* !MPH */ #ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !MPH */

View File

@ -26,12 +26,16 @@
* Date : 05/08/93 * Date : 05/08/93
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr> * Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98 * Modified by Czo <Olivier.Sirol@lip6.fr> 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_ #ifndef _MPU_H_
#define _MPU_H_ #define _MPU_H_
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifndef __P #ifndef __P
# if defined(__STDC__) || defined(__GNUC__) # if defined(__STDC__) || defined(__GNUC__)
# define __P(x) x # define __P(x) x
@ -48,5 +52,8 @@
extern void savephfig __P((phfig_list *ptfig)); extern void savephfig __P((phfig_list *ptfig));
extern void mphdebug __P((void *head_pnt, char *stru_name)); extern void mphdebug __P((void *head_pnt, char *stru_name));
#endif /* !MPU */ #ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !MPU */

View File

@ -26,7 +26,7 @@
* Date : 31/08/93 * Date : 31/08/93
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr> * Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98 * Modified by Czo <Olivier.Sirol@lip6.fr> 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_ #ifndef _MUT_H_
@ -36,6 +36,10 @@
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#ifndef __P #ifndef __P
# if defined(__STDC__) || defined(__GNUC__) # if defined(__STDC__) || defined(__GNUC__)
# define __P(x) x # define __P(x) x
@ -307,4 +311,8 @@ extern void vlogsavelofig();
extern void mgnloadphfig(); extern void mgnloadphfig();
extern void mgnsavephfig(); extern void mgnsavephfig();
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !MUTL */ #endif /* !MUTL */

View File

@ -21,7 +21,7 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * 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 * * rcn : constantes, externs, and data-structures *
@ -41,6 +41,10 @@
#ifndef RCNH #ifndef RCNH
#define RCNH #define RCNH
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* layer of wire */ /* layer of wire */
#define RCN_WIRE_UNKNOW ((unsigned char) 0x00000001) #define RCN_WIRE_UNKNOW ((unsigned char) 0x00000001)
#define RCN_WIRE_POLY ((unsigned char) 0x00000002) #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 reduce_rcn __P(( losig_list* ));
extern int connexe __P(( losig_list* )); extern int connexe __P(( losig_list* ));
extern int cleanrcnet __P(( losig_list* )); extern int cleanrcnet __P(( losig_list* ));
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !RCNH */ #endif /* !RCNH */