mumble

A Lisp written in C, following the *Build Your Own Lisp* book
Log | Files | Refs | README

commit 1a1b5c956af1a3af41ce9dab9f8d32c4feefc727
parent a94877dc1c6f2ea877761314fb57d51f1a1c31e1
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Sun, 30 Apr 2023 10:06:10 -0400

tweak: r -> result refactor

Diffstat:
Msrc/mumble.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mumble.c b/src/mumble.c @@ -35,15 +35,15 @@ int main(int argc, char** argv) puts(""); } else { /* Attempt to Parse the user Input */ - mpc_result_t r; - if (mpc_parse("<stdin>", input, Mumble, &r)) { + mpc_result_t result; + if (mpc_parse("<stdin>", input, Mumble, &result)) { /* On Success Print the AST */ - mpc_ast_print(r.output); - mpc_ast_delete(r.output); + mpc_ast_print(result.output); + mpc_ast_delete(result.output); } else { /* Otherwise Print the Error */ - mpc_err_print(r.error); - mpc_err_delete(r.error); + mpc_err_print(result.error); + mpc_err_delete(result.error); } // printf("Did you say \"%s\"?\n", input); add_history(input);