Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
source code to manage the Windows Unix and Mac file formats.
[simgrid.git] / tools / tesh2 / include / com.h
index 80ff496..e50682b 100644 (file)
-#ifndef __GLOBAL_H
-#define __GLOBAL_H
-
-#include <types.h>
-
-#include <ctype.h>
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-
-/* 
- * if 1, keep going when some commands can't be founded        
- */
-extern int 
-want_keep_going;
-
-/* if 1, ignore failures from commands                                 
- * the possibles failures are :
- *
- *     - exit code     != expected exit code
- *     - signal        != expected signal
- *     - output        != expected output
- *  - read pipe broken
- *  - write pipe broken
- *  - timeout
- *
- * remark :
- *
- *     a command not found is not a failure, it's an error
- *  to keep going when a command is not found specify the
- *  option --keep-going
- */
-extern int
-want_keep_going_unit;
-
-/* 
- * the semaphore used to synchronize the jobs 
- */
-extern xbt_os_sem_t
-jobs_sem;
-
-/* 
- * the semaphore used by the runner to wait the end of all the units 
- */
-extern xbt_os_sem_t
-units_sem;
-
-/* the dlist of tesh include directories */
-extern vector_t 
-includes;
-
-extern int
-interrupted;
-
-extern int
-exit_code;
-
-extern int
-want_silent;
-
-extern int
-want_dry_run;
-
-extern int 
-want_just_display;
-
-extern int
-dont_want_display_directory;
-
-extern directory_t
-root_directory;
-
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* !__GLOBAL_H */
-
+#ifndef __COM_H\r
+#define __COM_H\r
+\r
+/*\r
+ * include/com.h - contains all common declarations of types and definitions\r
+ * and global variables of tesh.\r
+ *\r
+ * Copyright 2008,2009 Martin Quinson, Malek Cherier All right reserved. \r
+ *\r
+ * This program is free software; you can redistribute it and/or modify it \r
+ * under the terms of the license (GNU LGPL) which comes with this package.\r
+ *\r
+ * Purpose:\r
+ *             This file contains all the declarations common declarations and definitions\r
+ *             and global variables of tesh.\r
+ *\r
+ */\r
+\r
+#include <types.h>\r
+#include <ctype.h>\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+/* \r
+ * the semaphore used by the runner to wait the end of all the units \r
+ */\r
+extern xbt_os_sem_t\r
+units_sem;\r
+\r
+/* \r
+ * the semaphore used to synchronize the jobs \r
+ */\r
+extern xbt_os_sem_t\r
+jobs_sem;\r
+\r
+\r
+/* the list of tesh include directories */\r
+extern xbt_dynar_t\r
+include_dirs;\r
+\r
+/*\r
+ * if 1, an interruption was requested by a command or a\r
+ * unit.\r
+ */\r
+extern int\r
+interrupted;\r
+\r
+/*\r
+ * if 1, tesh doesn't display the commands launched.\r
+ */\r
+extern int\r
+silent_flag;\r
+\r
+/*\r
+ * if 1, tesh simulates the run.\r
+ */\r
+extern int\r
+dry_run_flag;\r
+\r
+/* ? */\r
+extern int \r
+just_print_flag;\r
+\r
+/* if 1, tesh diplay the current directory.\r
+*/\r
+extern int\r
+print_directory_flag;\r
+\r
+/*\r
+ * this directory object represents the root directory.\r
+ */\r
+extern directory_t\r
+root_directory;\r
+\r
+/*\r
+ * if 1, the summary is detailed.\r
+ */\r
+extern int\r
+detail_summary_flag;\r
+\r
+/* \r
+ * the tesh exit code.\r
+ */\r
+extern int\r
+exit_code;\r
+\r
+extern int\r
+err_kind;\r
+\r
+/*\r
+ * the list of the errors of the run.\r
+ */\r
+extern xbt_dynar_t\r
+errors;\r
+\r
+/*\r
+ * if 1, it's the tesh root (the parent of all tesh processes).\r
+ */\r
+extern int\r
+is_tesh_root;\r
+\r
+/* \r
+ * if 1, keep going when some commands can't be founded        \r
+ */\r
+extern int \r
+keep_going_flag;\r
+\r
+/* \r
+ * if 1, ignore failures of units or commands.                                 \r
+ */\r
+extern int\r
+keep_going_unit_flag;\r
+\r
+\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#endif /* !__COM_H */\r