From owner-p4-projects@FreeBSD.ORG Sun Nov 15 14:53:53 2009 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 219A0106568F; Sun, 15 Nov 2009 14:53:53 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE362106568B for ; Sun, 15 Nov 2009 14:53:52 +0000 (UTC) (envelope-from rene@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A2C088FC15 for ; Sun, 15 Nov 2009 14:53:52 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nAFErqFA041566 for ; Sun, 15 Nov 2009 14:53:52 GMT (envelope-from rene@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nAFErq9X041564 for perforce@freebsd.org; Sun, 15 Nov 2009 14:53:52 GMT (envelope-from rene@FreeBSD.org) Date: Sun, 15 Nov 2009 14:53:52 GMT Message-Id: <200911151453.nAFErq9X041564@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to rene@FreeBSD.org using -f From: Rene Ladan To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 170641 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2009 14:53:53 -0000 http://p4web.freebsd.org/chv.cgi?CH=170641 Change 170641 by rene@rene_self on 2009/11/15 14:53:01 [porters handbook/clang]: * Add missing text [1] [2] * Elaborate a bit on CC and CXX variables [1] * Mention that "int main(void)" is also valid for Clang [2] * Mention the default C standards used Submitted by: remko [1], Oliver Fromme [2] Affected files ... .. //depot/projects/docproj_nl/en_US.ISO8859-1/books/porters-handbook/book.sgml#51 edit Differences ... ==== //depot/projects/docproj_nl/en_US.ISO8859-1/books/porters-handbook/book.sgml#51 (text+ko) ==== @@ -13613,15 +13613,16 @@ - Respect CC and CXX. Do - not any of cc, c99, - gcc, c++, or - g++ directly. + Respect the CC and CXX + variables. Do not use any of the programs cc, + c99, gcc, + c++, or g++ in a port + directly. Respect LD, do not use - ld directly. + ld in a port directly. @@ -13632,10 +13633,11 @@ - If there are link errors related to missing or already - defined functions, try to add CSTD=gnu89 to - Makefile. The function vsnprintf() is - already built in. + Clang uses the C99 standard by default, while GCC uses the C89 + standard by default. Therefore, if there are any errors related + to missing or already defined functions, try to add + CSTD=gnu89 to + Makefile. @@ -13652,9 +13654,13 @@ - The main function must be properly declared as + The main function must be properly declared as: int main(int argc, char **argv) + + or, if there are no parameters, as: + + int main(void)