bshell: re-organise build into three separate components
bshell: the front-end binary bshell.runtime: contains the parser, compiler, and classes needed to run bshell scripts bshell.core: contains the builtin commandlets and aliases
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
#ifndef BSHELL_COMMAND_ALIAS_H_
|
||||
#define BSHELL_COMMAND_ALIAS_H_
|
||||
|
||||
#include "../verb.h"
|
||||
|
||||
#include <fx/macros.h>
|
||||
#include <fx/string.h>
|
||||
|
||||
FX_DECLS_BEGIN;
|
||||
|
||||
struct bshell_runtime;
|
||||
|
||||
#define BSHELL_TYPE_ALIAS (bshell_alias_get_type())
|
||||
|
||||
FX_DECLARE_TYPE(bshell_alias);
|
||||
|
||||
FX_TYPE_CLASS_DECLARATION_BEGIN(bshell_alias)
|
||||
const char *a_callable_name;
|
||||
const char *a_target_name;
|
||||
const char *(*a_get_callable_name)(const bshell_alias *);
|
||||
const char *(*a_get_target_name)(const bshell_alias *);
|
||||
FX_TYPE_CLASS_DECLARATION_END(bshell_alias)
|
||||
|
||||
extern fx_type_id bshell_alias_get_type(void);
|
||||
|
||||
extern enum bshell_status bshell_alias_get_callable_name(
|
||||
const bshell_alias *alias,
|
||||
fx_string *out);
|
||||
extern enum bshell_status bshell_alias_get_target_name(
|
||||
const bshell_alias *alias,
|
||||
fx_string *out);
|
||||
|
||||
FX_DECLS_END;
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user