~lattis/muon

ref: f9a8cbad39b665a9496cd3adb4756e85ee5ec97c muon/include/coerce.h -rw-r--r-- 723 bytes
f9a8cbadStone Tickle print stdout/stderr of failing test 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef MUON_COERCE_H
#define MUON_COERCE_H
#include "functions/common.h"

enum requirement_type {
	requirement_skip,
	requirement_required,
	requirement_auto,
};

bool coerce_string(struct workspace *wk, uint32_t node, uint32_t val, const char **res);
bool coerce_executable(struct workspace *wk, uint32_t node, uint32_t val, uint32_t *res);
bool coerce_requirement(struct workspace *wk, struct args_kw *kw_required, enum requirement_type *requirement);
bool coerce_files(struct workspace *wk, uint32_t node, uint32_t val, uint32_t *res);
bool coerce_dirs(struct workspace *wk, uint32_t node, uint32_t val, uint32_t *res);
bool coerce_output_files(struct workspace *wk, uint32_t node, uint32_t val, uint32_t *res);
#endif