all repos — hex @ 52d5abbb6c9084c9f87b8d6e29a117628f8f03c3

A tiny, minimalist, slightly-esoteric concatenative programming lannguage.

Increased stdin buffer size.
h3rald h3rald@h3rald.com
Sun, 22 Dec 2024 07:29:54 +0000
commit

52d5abbb6c9084c9f87b8d6e29a117628f8f03c3

parent

cc6ea549329a78473c338de4850c50d7a69d3f95

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/hex.hsrc/hex.h

@@ -21,7 +21,7 @@ #endif

// Constants #define HEX_VERSION "0.2.0" -#define HEX_STDIN_BUFFER_SIZE 256 +#define HEX_STDIN_BUFFER_SIZE 4096 #define HEX_REGISTRY_SIZE 1024 #define HEX_STACK_SIZE 256 #define HEX_STACK_TRACE_SIZE 16
M src/main.csrc/main.c

@@ -108,9 +108,9 @@ static void do_repl(void *v_ctx)

{ hex_context_t *ctx = (hex_context_t *)v_ctx; prompt(); - char line[1024]; + char line[HEX_STDIN_BUFFER_SIZE]; char *p = line; - p = em_fgets(line, 1024); + p = em_fgets(line, HEX_STDIN_BUFFER_SIZE); if (!p) { printf("Error reading output");