From c36c76cf094f43f4c7565819f861bbb5971ecac2 Mon Sep 17 00:00:00 2001 From: hanwen Date: Fri, 15 Oct 2004 09:31:05 +0000 Subject: [PATCH] (enum Direction): add DIRECTION_LIMIT --- ChangeLog | 9 +++++++++ flower/include/direction.hh | 11 +++++++++++ 2 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7f78d444c7..75b088ebbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2004-10-15 Han-Wen Nienhuys + + * flower/include/direction.hh (enum Direction): add + DIRECTION_LIMIT + +2004-10-14 Han-Wen Nienhuys + + * po/fr.po: new po file. + 2004-10-15 Jan Nieuwenhuizen * Documentation/user/macros.itexi: Do not construct external diff --git a/flower/include/direction.hh b/flower/include/direction.hh index 0572f786ce..aa0a28f211 100644 --- a/flower/include/direction.hh +++ b/flower/include/direction.hh @@ -25,6 +25,17 @@ enum Direction BIGGER=1, START = -1, STOP = 1, + + /* + This is necessary to safely write loops, + since + + dir <= RIGHT + + is otherwise transformed into true unconditionally. + */ + DIRECTION_LIMIT = 2, + DIRECTION_NEG_LIMIT = -2, }; inline Direction -- 2.39.5