From 494f9678cb6b08b3c64f771f31bf06ca7236bacd Mon Sep 17 00:00:00 2001 From: fred Date: Mon, 10 Feb 1997 14:37:15 +0000 Subject: [PATCH] flower-1.0.25 --- flower/sstack.hh | 29 ----------------------------- flower/textstr.hh | 4 ++-- 2 files changed, 2 insertions(+), 31 deletions(-) delete mode 100644 flower/sstack.hh diff --git a/flower/sstack.hh b/flower/sstack.hh deleted file mode 100644 index adbc66b4e5..0000000000 --- a/flower/sstack.hh +++ /dev/null @@ -1,29 +0,0 @@ -/* - sstack.hh -- part of Flower lib - - (c) 1996 Han-Wen Nienhuys -*/ - -#ifndef SSTACK_HH -#define SSTACK_HH - -#include "varray.hh" - -/// A simple stack based on Array. -template -struct sstack : Array { - T top()const { return last(); } - T pop() { - assert(!empty()); - T l = last(); - Array::pop(); - return l; - } -}; -/** - Same as for #Array# goes here. -*/ - - -#endif // SSTACK_HH - diff --git a/flower/textstr.hh b/flower/textstr.hh index 63369ac258..c89f58cf8d 100644 --- a/flower/textstr.hh +++ b/flower/textstr.hh @@ -4,7 +4,7 @@ #include #include #include "string.hh" -#include "sstack.hh" +#include "varray.hh" /// line counting input stream. class Text_stream @@ -13,7 +13,7 @@ class Text_stream // could just have used streams. FILE *f; - sstack pushback; + Array pushback; String name; public: -- 2.11.4.GIT