diff options
| author | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2025-11-01 15:18:03 -0400 |
|---|---|---|
| committer | Douglas B. Rumbaugh <doug@douglasrumbaugh.com> | 2025-11-01 15:18:03 -0400 |
| commit | f84e64b593c6e6fda9e2a907d25ed99d8742d619 (patch) | |
| tree | b82322106129d3a86b246657886b5d596e2640a7 /include/builtin.h | |
| parent | ddcf611815c145b1fadca042e65648a7a81cc497 (diff) | |
| download | hush-f84e64b593c6e6fda9e2a907d25ed99d8742d619.tar.gz | |
Added support for required builtins
Diffstat (limited to 'include/builtin.h')
| -rw-r--r-- | include/builtin.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/builtin.h b/include/builtin.h new file mode 100644 index 0000000..1c99ef5 --- /dev/null +++ b/include/builtin.h @@ -0,0 +1,20 @@ +/* + * + */ +#ifndef H_HUSH_BUILTIN +#define H_HUSH_BUILTIN + +#include <limits.h> +#include <unistd.h> + +#include "command.h" +#include "variables.h" + +/* + * Check if the provided command corresponds with a known built-in + * function. If so, run the builtin and return true. If not, return + * false. + */ +bool run_builtin(command *cmd); + +#endif |