Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
some new files used to check Tesh
[simgrid.git] / tools / tesh2 / include / def.h
index 273c02f..ea3bd26 100644 (file)
@@ -1,6 +1,15 @@
 #ifndef __DEF_H
 #define __DEF_H
 
+#if (defined(__BUILTIN) && !defined(__CHKCMD) && !defined(WARN_DEF_MISMATCH))
+#ifdef WIN32
+#pragma message(Macro definition mismatch : __BUILTIN defined but __CHKCMD not defined)
+#else
+#warning "Macro definition mismatch : __BUILTIN defined but __CHKCMD not defined"
+#endif
+#define WARN_DEF_MISMATCH      1
+#endif
+
 /* must be defined first */
 #ifdef WIN32
 
@@ -14,8 +23,7 @@
        
 #endif
 
-
-#include <error.h>
+#include <xerrno.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -42,27 +50,22 @@ extern "C" {
        #define INDEFINITE_FD   ((int)-1)       
 #endif
 
-#ifndef MAX_PATH
-       #define MAX_PATH                ((unsigned int)255)
+#ifndef PATH_MAX
+       #define PATH_MAX                ((unsigned int)260)
 #endif
 
+#ifndef VAR_NAME_MAX
+       #define VAR_NAME_MAX    ((unsigned int) 80)
+#endif
 
 #define INDEFINITE                                             ((int)-1)
 #define INDEFINITE_SIGNAL                              NULL
+#define        MAX_SUFFIX                                              ((unsigned int)9)
 
-#define DEFAULT_FSTREAMS_CAPACITY              ((int)128)
-#define DEFAULT_INCLUDE_DIRS_CAPACITY  DEFAULT_FSTREAMS_CAPACITY
-#define DEFAULT_UNITS_CAPACITY                 ((int)64)
-#define DEFAULT_INCLUDES                               ((int)8)
-#define DEFAULT_COMMANDS_CAPACITY              ((int)512)
-#define DEFAULT_SUITES_CAPACITY                        ((int)32)
-
-#define                                                                        MAX_SUFFIX ((unsigned int)9)
 
 #ifdef __cplusplus
 }
 #endif
 
-
 #endif /* !__DEF_H */