From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30246 invoked by alias); 24 May 2005 15:11:48 -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 30218 invoked by uid 22791); 24 May 2005 15:11:41 -0000 Received: from smtp-102-tuesday.noc.nerim.net (HELO mallaury.noc.nerim.net) (62.4.17.102) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 24 May 2005 15:11:41 +0000 Received: from uniton.integrable-solutions.net (gdr.net1.nerim.net [62.212.99.186]) by mallaury.noc.nerim.net (Postfix) with ESMTP id 2031F62D13; Tue, 24 May 2005 17:11:38 +0200 (CEST) Received: from uniton.integrable-solutions.net (localhost [127.0.0.1]) by uniton.integrable-solutions.net (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id j4OGMGLv019467; Tue, 24 May 2005 18:22:16 +0200 Received: (from gdr@localhost) by uniton.integrable-solutions.net (8.12.10/8.12.10/Submit) id j4OGMG0o019466; Tue, 24 May 2005 18:22:16 +0200 X-Authentication-Warning: uniton.integrable-solutions.net: gdr set sender to gdr@integrable-solutions.net using -f To: Paul Koning Cc: zack@codesourcery.com, gcc@gcc.gnu.org, jason@redhat.com, mark@codesourcery.com, dberlin@dberlin.org Subject: Re: Compiling GCC with g++: a report References: <1116907280.9577.31.camel@localhost.localdomain> <87br71kv04.fsf@codesourcery.com> <17043.14455.575632.115175@gargle.gargle.HOWL> From: Gabriel Dos Reis In-Reply-To: <17043.14455.575632.115175@gargle.gargle.HOWL> Date: Tue, 24 May 2005 17:49:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-05/txt/msg01304.txt.bz2 Paul Koning writes: | >>>>> "Gabriel" == Gabriel Dos Reis writes: | | Gabriel> http://www.gnu.org/software/gcc/codingconventions.html | | Gabriel> Avoid the use of identifiers or idioms that would prevent | Gabriel> code compiling with a C++ compiler. Identifiers such as new | Gabriel> or class, that are reserved words in C++, should not be used | Gabriel> as variables or field names. Explicit casts should be used | Gabriel> to convert between void* and other pointer types. | | I hope that doesn't require (void *) casts for pointer arguments | passed to the likes of memcpy... It doesn't. The implicit conversion T* -> void* is OK. (I think that if written properly, we will barely have to see casts explicit in the codes.) -- Gaby