ed

[hare] The standard editor
Log | Files | Refs | README | LICENSE

commit a950a2e08a1a2650976d41d43bdd185292da6bb1
parent f78704ab0f94163d970896d6625c40d9e956edf1
Author: Byron Torres <b@torresjrjr.com>
Date:   Sat,  6 Jan 2024 13:08:20 +0000

Makefile: add execute.ha; less debug

Diffstat:
MMakefile | 1+
Mcommand.ha | 12++++++------
Mexecute.ha | 2+-
3 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -6,6 +6,7 @@ source=\ address.ha \ buffer.ha \ command.ha \ + execute.ha \ interaction.ha \ parse.ha \ util.ha \ diff --git a/command.ha b/command.ha @@ -53,17 +53,17 @@ type BufferModified = !void; type NoPrevShCmd = !void; fn command_finish(cmd: *Command) void = { - debug("command_finish(): delete(cmd.linenums[..])"); + //debug("command_finish(): delete(cmd.linenums[..])"); delete(cmd.linenums[..]); - debug("command_finish(): free(cmd.arg1)"); + //debug("command_finish(): free(cmd.arg1)"); free(cmd.arg1); - debug("command_finish(): free(cmd.arg2)"); + //debug("command_finish(): free(cmd.arg2)"); free(cmd.arg2); - debug("command_finish(): free(cmd.arg3)"); + //debug("command_finish(): free(cmd.arg3)"); free(cmd.arg3); - debug("command_finish(): delete(cmd.input[..])"); + //debug("command_finish(): delete(cmd.input[..])"); delete(cmd.textinput[..]); - debug("command_finish(): END"); + //debug("command_finish(): END"); // TODO: free other fields? // TODO: make a separate "fn command_clear()" ? probably not }; diff --git a/execute.ha b/execute.ha @@ -14,7 +14,7 @@ fn execute(s: *Session, cmd: *Command) (void | Error) = { errormsg(s, err); return err; }; - debug("execute(): end"); + //debug("execute(): end"); }; fn exec_addrs(s: *Session, cmd: *Command) (void | CmdError) = {