1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
/*
* SPDX-FileCopyrightText: Stone Tickle <lattis@mochiro.moe>
* SPDX-License-Identifier: GPL-3.0-only
*/
#ifndef MUON_FUNCTIONS_KERNEL_H
#define MUON_FUNCTIONS_KERNEL_H
#include "lang/func_lookup.h"
#include "coerce.h"
extern const struct func_impl impl_tbl_kernel[];
extern const struct func_impl impl_tbl_kernel_internal[];
extern const struct func_impl impl_tbl_kernel_opts[];
struct find_program_ctx {
struct args_kw *default_options;
obj *res;
uint32_t node, version_node;
obj version, version_argument;
obj dirs;
enum requirement_type requirement;
enum machine_kind machine;
bool found;
};
bool find_program(struct workspace *wk, struct find_program_ctx *ctx, obj prog);
bool find_program_check_override(struct workspace *wk, struct find_program_ctx *ctx, obj prog);
#endif
|