summaryrefslogtreecommitdiff
path: root/include/vm.h
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2022-03-07 22:08:20 +0000
committerStefan Eßer <se@FreeBSD.org>2022-03-07 22:08:20 +0000
commit3673adf1ee311d6f83176d3e43cf0efb314764e4 (patch)
treee0025bff2224059a1b5a8b538cc8a7cd0a3df637 /include/vm.h
parent4dfc0fa2870c28e6a44c223860375a46e52fdade (diff)
Diffstat (limited to 'include/vm.h')
-rw-r--r--include/vm.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/vm.h b/include/vm.h
index 6f69712a804b..cf7eb5238870 100644
--- a/include/vm.h
+++ b/include/vm.h
@@ -754,13 +754,20 @@ void* bc_vm_realloc(void *ptr, size_t n);
char* bc_vm_strdup(const char *str);
/**
- * Reads a line into BcVm's buffer field.
+ * Reads a line from stdin into BcVm's buffer field.
* @param clear True if the buffer should be cleared first, false otherwise.
* @return True if a line was read, false otherwise.
*/
bool bc_vm_readLine(bool clear);
/**
+ * Reads a line from the command-line expressions into BcVm's buffer field.
+ * @param clear True if the buffer should be cleared first, false otherwise.
+ * @return True if a line was read, false otherwise.
+ */
+bool bc_vm_readBuf(bool clear);
+
+/**
* A convenience and portability function for OpenBSD's pledge().
* @param promises The promises to pledge().
* @param execpromises The exec promises to pledge().