diff options
Diffstat (limited to 'include/omc.h')
| -rw-r--r-- | include/omc.h | 36 | 
1 files changed, 36 insertions, 0 deletions
| diff --git a/include/omc.h b/include/omc.h new file mode 100644 index 0000000..6c4821f --- /dev/null +++ b/include/omc.h @@ -0,0 +1,36 @@ +#ifndef OMC_OMC_H +#define OMC_OMC_H +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <limits.h> +#include <unistd.h> + +#define SYSERROR stderr, "%s:%s:%d: %s\n", path_basename(__FILE__), __FUNCTION__, __LINE__, strerror(errno) +#define OMC_BUFSIZ 8192 + +struct OMC_GLOBAL { +    unsigned char verbose; +    unsigned char always_update_base_environment; +    unsigned char continue_on_error; +}; + +#include "utils.h" +#include "ini.h" +#include "conda.h" +#include "environment.h" +#include "deliverable.h" +#include "str.h" +#include "strlist.h" +#include "system.h" +#include "download.h" +#include "recipe.h" +#include "relocation.h" + +#define COE_CHECK_ABORT(COND, MSG) {\ +    if (COND) { \ +        msg(OMC_MSG_ERROR, MSG ": Aborting execution (--continue-on-error/-C is not enabled)\n"); \ +        exit(1); \ +    } \ +} +#endif //OMC_OMC_H | 
