Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Nov 1997 21:47:40 +0100
From:      j@uriah.heep.sax.de (J Wunsch)
To:        hackers@FreeBSD.ORG
Subject:   Re: A stylistic question...
Message-ID:  <19971116214740.JL63294@uriah.heep.sax.de>
In-Reply-To: <199711120858.JAA06510@labinfo.iet.unipi.it>; from Luigi Rizzo on Nov 12, 1997 09:58:14 %2B0100
References:  <199711120858.JAA06510@labinfo.iet.unipi.it>

next in thread | previous in thread | raw e-mail | index | archive | help
As Luigi Rizzo wrote:

> I have always wondered about this: most if not all programs, and some
> pieces of the kernel as well (e.g. userconfig.c)
> have a menu/usage function which is written like this:
> 
>     usage()
>     {
> 	printf( "bla bla bla...\n" );
> 	printf( "bla bla bla...\n" );
> 	printf( "bla bla bla...\n" );
> 	...
> 	printf( "bla bla bla...\n" );
>     }
> 
> instead of what in my opinion would be much better:
> 
>     usage()
>     {
> 	printf( "%s", "bla bla bla...\n"
> 		"bla bla bla...\n"
> 		...
> 		"bla bla bla...\n");
>     }

The first piece has probably been written by people who still adhere
to the Old Testament.  I use split (ANSI) strings all over the place,
and don't care anymore for non-ANSI compilers.  If you ask *me*, go
ahead and remove all the __P() garbage in the code...

(Well, i actually know exactly one non-ANSI compiler i'm rather fond
of to know: bcc.  "Bruce's C compiler", it's in the ports, and seems
to be the only way to generate 16-bit x86 code on FreeBSD.)

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971116214740.JL63294>