[Freeciv-Dev] Re: PATCH: is_border_pos macro (PR#1006)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, Oct 12, 2001 at 06:08:34AM -0700, jdorje@xxxxxxxxxxxxxxxxxxxxx wrote:
> This teeny-tiny patch introduces the desired topology expression
> IS_BORDER_POS(x, y). This macro returns TRUE iff (x, y) is on the
> "border" of the map; that is, if any of its 8 neighbors are not normal
> (proper). It is not truly needed for any operations (yet), but is of
> use in optimizing adjcancy iterators.
>
> To preserve locality, I stuck the macro definition right in the middle
> of the other is_*** topological functions. It can be moved up above or
> below them as desired.
I will apply this patch if there are no objections.
Raimar
--
email: rf13@xxxxxxxxxxxxxxxxx
"These download files are in Microsoft Word 6.0 format. After
unzipping, these files can be viewed in any text editor, including
all versions of Microsoft Word, WordPad, and Microsoft Word Viewer."
-- http://www.microsoft.com/hwdev/pc99.htm
|
|