Re: [crossfire] Volunteer for Windows builds?

2008-02-10 Thread Nicolas Weeger
Hello.

Windows binaries for 1.11.0 released to Sourceforce.

Links:
* client 
http://downloads.sourceforge.net/crossfire/crossfire-client-1.11.0.exe
* server 
http://downloads.sourceforge.net/crossfire/crossfire-server-1.11.0.exe
* maps 
http://downloads.sourceforge.net/crossfire/crossfire-server-bigworld-maps-1.11.0.exe

(SF may need a few hours to update)

Nicolas
-- 
http://nicolas.weeger.org [Petit site d'images, de textes, de code, bref de 
l'aléatoire !]


signature.asc
Description: This is a digitally signed message part.
___
crossfire mailing list
crossfire@metalforge.org
http://mailman.metalforge.org/mailman/listinfo/crossfire


Re: [crossfire] [Crossfire-cvs] SF.net SVN: crossfire: [8406] client/trunk/gtk-v2/src/config.c

2008-02-10 Thread Andreas Kirschbaum
Crossfire CVS repository messages. wrote:
 Revision: 8406
   http://crossfire.svn.sourceforge.net/crossfire/?rev=8406view=rev
 Author:   kbulgrien
 Date: 2008-02-09 23:21:50 -0800 (Sat, 09 Feb 2008)

 Log Message:
 ---
 - Reformat LOG() calls to break long lines.
[...]
 +LOG(LOG_WARNING, config.c::load_defaults,
 +Ignoring iconscale value read from gdefaults2 file.\n
 +Invalid iconscale range (%d), valid range for -iconscale 
 +is 25 through 200, want_config[CONFIG_ICONSCALE]);

I'd like to question these changes. Background is that I often use grep
to find messages or uses of variable names. Such wrapped lines make this
process very inefficient:

 - You are never sure if some occurrences are missing from the result
   set. For example, a grep 'for -iconscale is' will not find the
   above example.

 - The grep output is not very useful because it lacks context. For
   example, a rgrep want_config gtk-v2 returns
[...]
gtk-v2/src/config.c: if (want_config[CONFIG_MAPSCALE] 25 || 
want_config[CONFIG_MAPSCALE]200) {
gtk-v2/src/config.c: is 25 through 200, want_config[CONFIG_MAPSCALE]);
gtk-v2/src/config.c: want_config[CONFIG_MAPSCALE] = use_config[CONFIG_MAPSCALE];
[...]

   This is not very helpful -- you have to check the source to find out
   what this 25..200 range means in this context.

   Using unwrapped lines, the whole LOG() statement would have been
   printed. This almost always gives enough information to quickly
   decide which lines belong to the issue I'm working on.

The only (slight) advantage of such wrapped lines I can see is when
using a text editor not being able to automatically wrap long lines.

I think the disadvantages of wrapped lines outnumber the benefits.
Therefore I propose to not normally wrap long lines rather than fixing
editor shortcomings with source code formatting.

Of course, there are exceptions for the do not wrap line rule:
extremely long or repetitive expressions for example. Generally, I'd
prefer rewriting very long lines into multiple simpler statements using
suitably named temporary variables over wrapping.

___
crossfire mailing list
crossfire@metalforge.org
http://mailman.metalforge.org/mailman/listinfo/crossfire