baddc

integer-precision dc(1)
git clone git://bvnf.space/baddc.git
Log | Files | Refs | README

commit 92af5e8e4c3614880d5fd51b0e030b6bfe9a952b
parent 42ef7d6c16a9567330f015f30d1c1d3b2b5e2005
Author: phoebos <ben@bvnf.space>
Date:   Mon, 10 Oct 2022 17:58:13 +0100

rename dup -> duplicate to avoid collision with dup(2)

Diffstat:
Mbaddc.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/baddc.c b/baddc.c @@ -69,7 +69,7 @@ void view_stack(void) { oprint(*p); } -void dup(void) { +void duplicate(void) { RETURN_IF_FEWER_THAN(1); push(peek()); } @@ -169,7 +169,7 @@ struct { void (*f)(void); } ops[] = { { 'f', view_stack }, - { 'd', dup }, + { 'd', duplicate }, { 'c', clear }, { '+', add }, { '-', subtract },