summaryrefslogtreecommitdiff
path: root/usr.bin/dc/extern.h
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2003-11-04 08:10:07 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2003-11-04 08:10:07 +0000
commitb8d0aaee5832dbe3573e099413c8d983768cbbc5 (patch)
tree21f3cc09d52f63de73b952f070fdc78953642fc9 /usr.bin/dc/extern.h
parent504f47951d34b0d731259bc032ba27f595c14046 (diff)
Duh, a stack machine without swap; implement GNU compatible 'r'
(swap) operator. Prompted by Michael Knudsen <e at molioner dot dk>
Diffstat (limited to 'usr.bin/dc/extern.h')
-rw-r--r--usr.bin/dc/extern.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/dc/extern.h b/usr.bin/dc/extern.h
index 3c0dc8de205..386b3bc7c51 100644
--- a/usr.bin/dc/extern.h
+++ b/usr.bin/dc/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.1 2003/09/19 17:58:25 otto Exp $ */
+/* $OpenBSD: extern.h,v 1.2 2003/11/04 08:10:06 otto Exp $ */
/*
* Copyright (c) 2003, Otto Moerbeek <otto@drijf.net>
@@ -43,6 +43,7 @@ void bn_checkp(const void *);
void stack_init(struct stack *);
void stack_free_value(struct value *);
struct value *stack_dup_value(const struct value *, struct value *);
+void stack_swap(struct stack *);
int stack_size(const struct stack *);
void stack_dup(struct stack *);
void stack_pushnumber(struct stack *, struct number *);