summaryrefslogtreecommitdiff
path: root/include/vm.h
diff options
context:
space:
mode:
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().