From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31041 invoked by alias); 12 Dec 2003 12:48:09 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 31034 invoked from network); 12 Dec 2003 12:48:08 -0000 Received: from unknown (HELO dvmwest.gt.owl.de) (62.52.24.140) by sources.redhat.com with SMTP; 12 Dec 2003 12:48:08 -0000 Received: by dvmwest.gt.owl.de (Postfix, from userid 1001) id 968A54B497; Fri, 12 Dec 2003 13:48:07 +0100 (CET) Date: Fri, 12 Dec 2003 13:07:00 -0000 From: Jan-Benedict Glaw To: gcc@gcc.gnu.org Subject: Re: (printf) ("hello world\n"); Message-ID: <20031212124807.GV29648@lug-owl.de> References: <20031209204037.906D84B412@berman.michael-chastain.com> <3FD6DD9B.E35C742@eyal.emu.id.au> <3FD71140.2070506@gnat.com> <4F621C55-2B1A-11D8-8ABB-000A95A4DC02@kernel.crashing.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZplOxUIsrEyrgofR" Content-Disposition: inline In-Reply-To: X-Operating-System: Linux mail 2.4.18 X-gpg-fingerprint: 250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB X-gpg-key: wwwkeys.de.pgp.net User-Agent: Mutt/1.5.4i X-SW-Source: 2003-12/txt/msg00717.txt.bz2 --ZplOxUIsrEyrgofR Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1231 On Thu, 2003-12-11 09:01:51 -0800, Geoff Keating wrote in message : > Segher Boessenkool writes: > > That does not prevent you from declaring and defining your own > > printf() function (with a different prototype) though; it only requires > > that you make that function have external linkage. >=20 > You mean 'internal linkage'. You can define your own function named > printf only if you (a) do not include stdio.h and (b) declare it > 'static'. Um, I think: - You may include as long as your new printf() has compatible arguments. It's a Bad Thing, though, because declaration in doesn't really belong to your new function. - You may also have your own function non-static. Then, it depends on link-order which function (yours or libc's) is used. Of course, that's horrible, too:) MfG, JBG --=20 Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg fuer einen Freien Staat voll Freier B=FCrger" | im Internet! | im Ira= k! ret =3D do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TC= PA)); --ZplOxUIsrEyrgofR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline Content-length: 189 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/2bkHHb1edYOZ4bsRAhNDAJ0bFkkJ0K/ir5wWbvC94M7SDpU57gCdFFZ3 D9ZD9C/jvn+qptvusKdG9/4= =Jw7D -----END PGP SIGNATURE----- --ZplOxUIsrEyrgofR--