From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: MAC_OS_X cpp macro? Date: Tue, 11 Dec 2007 10:08:18 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <55f7df060711230241y6aeee7cfr12e61c493002014b@mail.gmail.com> <200711232300.lANN08Up005153@oogie-boogie.ics.uci.edu> <55f7df060711240239p651eecp50739107676ff941@mail.gmail.com> <55f7df060712010430s167704capce5d46fb624a0a0d@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1197335318 24896 80.91.229.12 (11 Dec 2007 01:08:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Dec 2007 01:08:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Dec 11 02:08:49 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J1tc8-0000hf-8G for ged-emacs-devel@m.gmane.org; Tue, 11 Dec 2007 02:08:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1tbq-000675-GN for ged-emacs-devel@m.gmane.org; Mon, 10 Dec 2007 20:08:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J1tbm-00064M-1l for emacs-devel@gnu.org; Mon, 10 Dec 2007 20:08:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J1tbk-00063y-JJ for emacs-devel@gnu.org; Mon, 10 Dec 2007 20:08:25 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J1tbk-00063v-GA for emacs-devel@gnu.org; Mon, 10 Dec 2007 20:08:24 -0500 Original-Received: from ntp.math.s.chiba-u.ac.jp ([133.82.132.2] helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J1tbj-000638-Qr for emacs-devel@gnu.org; Mon, 10 Dec 2007 20:08:24 -0500 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id B03A42C45; Tue, 11 Dec 2007 10:08:18 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/23.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-kernel: by monty-python.gnu.org: NetBSD 3.0 (DF) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:85020 Archived-At: >>>>> On Mon, 10 Dec 2007 11:47:56 -0500, Stefan Monnier said: >> On a related note: do we have somewhere a list of such CPP defines >> with their intended meanings? If so, where? If not, then let's >> make one. > While taking a look at this idea, I bumped into the following in > mac.c: > [...] #ifndef MAC_OS_X [...] > AFAICT it's the only occurrence of MAC_OS_X in an ifdef/ifndef, > whereas there are many occurrences of MAC_OSX. Is that a typo? Yes, it is a typo and does not do harm at this particular place. I was planning to fix it when merging the Mac-related changes as of the before-merge-multi-tty-to-trunk tag to EMACS_22_BASE after the Emacs 22.2 release. And some comments about some Mac-related defines in admin/CPP-DEFINES: > MAC_OS Compiling for some version of Mac OS? In short, it corresponds to (eq window-system 'mac), or is equivalent to `MAC_OS8 || (MAC_OSX && HAVE_CARBON)'. Currently it can be said as "Compile support for the Mac native GUI", but this will no longer be true if the Cocoa port is merged. > MAC_OS8 Compiling for Mac OS version 8. Requires MAC_OS? Compiling for Mac OS Classic (8 or 9). > MAC_OSX Compiling for Mac OS X? Is that also valid for Darwin? Compiling for Mac OS X. Not valid for bare Darwin. Also, DARWIN should not be defined for Mac OS X because it is used for distinguishing them in CoreFoundation.h. > HAVE_CARBON Compile support for the Carbon GUI. Requires MAC_OS? Yes. For MAC_OS8, either of HAVE_CARBON and !HAVE_CARBON is possible and the native GUI is used anyway. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp