/* change.h * * - definitions diverses et variables d'environnement * pour chaque compilateur. Voir aussi le "makefile". * - various definitions for each compiler. See also * the "makefile" file for operating systems/compilers * supporting makefiles. * * (EL) 05/05/2008 : v1.33, no change * (EL) 21/04/2008 : v1.32, no change * (EL) 29/04/2007 : v1.31, no change * (EL) 13/01/2007 : v1.30 E. Lazard, no change * (SN) 01/04/2001 : v1.29 Stephane Nicolet */ /* * The following symbols allow conditional compilation * of the new features introduced in PAPP since v1.17 */ #ifndef OPTIONS_GLOBALES_PAPP #define OPTIONS_GLOBALES_PAPP /* on pose un verrou */ #define VERROU #define NUMEROS_TABLES #define AFFICH_COUPLAGES_ALPHA #define COMPENSATION_FLOATS #define ELITISME #define USE_DEMI_PIONS #endif /* #ifndef OPTIONS_GLOBALES_PAPP ... */ /* * The following blocks allow to make * specific compilators changes */ #ifndef OPTIONS_COMPILATEUR #define OPTIONS_COMPILATEUR /* -- compilateur Codewarrior 9 pour Macintosh -- */ #if defined(__MWERKS__) && defined(macintosh) #include "SIOUX.H" #include "SIOUXMenus.h" #include "SIOUXGlobals.h" #include #include #include #include #include #include #define PAPP_MAC_METROWERKS __MWERKS__ /* debuguer les penalites */ #define DEBUG_PEN 1 /* mais pas le reste */ #undef EDEBUG /* ecrire sur disque la matrice utilisee par edmonds.c */ #undef SAVE_MATRIX /* on utilise un curseur en video inverse */ #define CURSEUR /* Semble manquer dans CodeWarrior */ #define ENOENT (-43) /* -43 = FileNotFoundErr */ /* On ralonge goodbye et beep pour eviter des conflits avec des librairies obscures */ #define goodbye Papp_goodbye #define beep Papp_beep /* On redefinit assert pour avoir le temps de lire les messages d'erreur */ #define USE_PAPP_ASSERT #ifdef USE_PAPP_ASSERT #undef assert #define assert papp_assert #define papp_assert(test) \ ((test) ? (void)0 : ( erreur_fatale("\nassert failed: " __FILE__ ":" _STR(__LINE__) " " #test) , (void)0)) #endif /* CodeWarrior ne connait pas alloca */ #define alloca malloc /* no need do duplicate the files before parsing them on Macintosh */ #undef DUPLIQUE_FICHIER_PARSER #endif /* -- compilateur THINK C pour Macintosh OS 9-- */ #ifdef __THINK_C__ #define DEBUG_PEN 1 /* on n'utilise pas ~ comme curseur */ #undef CURSEUR /* THINK C ne connait pas alloca */ #define alloca malloc /* On redefinit assert pour avoir le temps de lire les messages d'erreur */ #define USE_PAPP_ASSERT #ifdef USE_PAPP_ASSERT #undef assert #define assert papp_assert #define papp_assert(test) \ ((test) ? (void)0 : ( erreur_fatale("\nassert failed: " __FILE__ ":" _STR(__LINE__) " " #test) , (void)0)) #endif /* no need do duplicate the files before parsing them on Macintosh */ #undef DUPLIQUE_FICHIER_PARSER #endif /* -- compilateur Codewarrior 9 pour Windows -- */ #if defined(__MWERKS__) && defined(__INTEL__) #define PAPP_WINDOWS_METROWERKS 1 /* debuguer les penalites */ #define DEBUG_PEN 1 /* mais pas le reste */ #undef EDEBUG /* on utilise un curseur en video inverse */ #define CURSEUR #include #include #include #include #include /* on definit les synonymes usuels*/ #define isatty _isatty #define fileno _fileno /* On redefinit assert pour avoir le temps de lire les messages d'erreur */ #undef USE_PAPP_ASSERT #ifdef USE_PAPP_ASSERT #undef assert #define assert papp_assert #define papp_assert(test) \ ((test) ? (void)0 : ( erreur_fatale("\nassert failed: " __FILE__ ":" _STR(__LINE__) " " #test) , (void)0)) #endif /* CodeWarrior ne connait pas alloca */ #define alloca malloc /* no need do duplicate the files before parsing them on Macintosh */ #define DUPLIQUE_FICHIER_PARSER #endif /* -- Borland C++ pour Windows. Jakub Tesinsky */ /* -- Attention : compiler avec le modele "Far" de memoire ! */ #ifdef __BORLANDC__ /* we have to duplicate the files before parsing them, */ /* because of some limitation in PC Flex. */ #define DUPLIQUE_FICHIER_PARSER #endif /* -- Ms-Dos compilation -- */ #if defined(__MSDOS__) /* maybe we need do duplicate the files before parsing */ /* them on MS-Dos, because of some limitation in PC Flex. */ /* if so, change the following #undef to #define */ #undef DUPLIQUE_FICHIER_PARSER #endif /* -- Unix compilation -- */ /* -- Voir aussi le fichier "makefile" -- */ #if defined(UNIX_SYSV) || defined(UNIX_BSD) /* no need do duplicate the files before parsing them on unix */ #undef DUPLIQUE_FICHIER_PARSER #endif #endif /* #ifndef OPTIONS_COMPILATEUR ... */