make: Return the pushed back character in back() - scc - simple c99 compiler (HTM) git clone git://git.simple-cc.org/scc (DIR) Log (DIR) Files (DIR) Refs (DIR) Submodules (DIR) README (DIR) LICENSE --- (DIR) commit 663c99ffd0f9f02049d200e33414cab1bebb8156 (DIR) parent efd759bbfba531565f41843ec10d252a917f8cde (HTM) Author: Roberto E. Vargas Caballero <k0ga@shike2.com> Date: Thu, 25 Jan 2024 15:32:00 +0100 make: Return the pushed back character in back() Diffstat: M src/cmd/make/parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/src/cmd/make/parser.c b/src/cmd/make/parser.c @@ -357,7 +357,7 @@ back(int c) if (c == EOF) return c; assert(input->pos > 0); - input->buf[--input->pos] = c; + return input->buf[--input->pos] = c; } static void