[Freeciv-Dev] Re: Profiling Civserver again
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Sun, Jul 29, 2001 at 10:20:18PM +0200, Gaute B Strokkenes wrote:
> +#define adjc_dir_iterate(center_x, center_y, x_itr, y_itr, dir_itr)
> \
> +{
> \
> + int x_itr, y_itr, dir_itr, border;
> \
You should name the internal macro variable "border" something to be sure there
are
no name clashes. ie
{
int border = 0;
adjc_dir_iterate {
if (A=B)
border++;
} adjc_dir_iterate_end;
printf("%d\n", border);
}
Would give the poor user quite a headache.
I like the idea of prefixing with "_", as seen in Ross W. Wetmore's patches.
(note that you don't have to do this with the arguments.)
-Thue
- [Freeciv-Dev] Re: Profiling Civserver again, (continued)
- [Freeciv-Dev] Re: Profiling Civserver again, Trent Piepho, 2001/07/26
- [Freeciv-Dev] Re: Profiling Civserver again, Trent Piepho, 2001/07/26
- [Freeciv-Dev] map wrapping (was: Profiling Civserver again), Mike Kaufman, 2001/07/26
- [Freeciv-Dev] Re: Profiling Civserver again, Jason Dorje Short, 2001/07/26
- [Freeciv-Dev] Re: Profiling Civserver again, Ross W. Wetmore, 2001/07/26
- [Freeciv-Dev] Re: Profiling Civserver again, Gaute B Strokkenes, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver agai, Vasco Alexandre Da Silva Costa, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again,
Thue Janus Kristensen <=
- [Freeciv-Dev] Re: Profiling Civserver again, Gaute B Strokkenes, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again, Ross W. Wetmore, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again, Ross W. Wetmore, 2001/07/29
- [Freeciv-Dev] Re: Profiling Civserver again, Jason Dorje Short, 2001/07/30
- [Freeciv-Dev] Re: Profiling Civserver again, Trent Piepho, 2001/07/30
- Message not available
- [Freeciv-Dev] Re: Profiling Civserver again, Ross W. Wetmore, 2001/07/30
- Message not available
- Message not available
- Message not available
- Message not available
- [Freeciv-Dev] Re: Profiling Civserver again, Paul Zastoupil, 2001/07/31
- [Freeciv-Dev] Re: Profiling Civserver again, Jason Dorje Short, 2001/07/31
- [Freeciv-Dev] Re: Profiling Civserver again, Thue, 2001/07/31
- [Freeciv-Dev] Re: Profiling Civserver again, Ross W. Wetmore, 2001/07/31
|
|