From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Herbert Euler" Newsgroups: gmane.emacs.devel Subject: Re: `smoothing_enabled' undeclared Date: Sat, 24 Jun 2006 10:16:02 +0800 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1151115391 11535 80.91.229.2 (24 Jun 2006 02:16:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Jun 2006 02:16:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 24 04:16:28 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FtxhD-0004Xy-AB for ged-emacs-devel@m.gmane.org; Sat, 24 Jun 2006 04:16:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FtxhC-00068z-EC for ged-emacs-devel@m.gmane.org; Fri, 23 Jun 2006 22:16:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ftxh1-00068Z-Qw for emacs-devel@gnu.org; Fri, 23 Jun 2006 22:16:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ftxgz-00068N-AR for emacs-devel@gnu.org; Fri, 23 Jun 2006 22:16:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ftxgz-00068H-56 for emacs-devel@gnu.org; Fri, 23 Jun 2006 22:16:13 -0400 Original-Received: from [64.4.26.15] (helo=hotmail.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FtxsI-0008BZ-Cc; Fri, 23 Jun 2006 22:27:54 -0400 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 23 Jun 2006 19:16:07 -0700 Original-Received: from 64.4.26.200 by by112fd.bay112.hotmail.msn.com with HTTP; Sat, 24 Jun 2006 02:16:02 GMT X-Originating-IP: [216.145.54.158] X-Originating-Email: [herberteuler@hotmail.com] X-Sender: herberteuler@hotmail.com In-Reply-To: Original-To: eliz@gnu.org X-OriginalArrivalTime: 24 Jun 2006 02:16:07.0355 (UTC) FILETIME=[26E938B0:01C69734] 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:56137 Archived-At: >From: Eli Zaretskii >Reply-To: Eli Zaretskii >To: "Herbert Euler" >CC: emacs-devel@gnu.org >Subject: Re: `smoothing_enabled' undeclared >Date: Fri, 23 Jun 2006 13:10:54 +0300 > > > From: "Herbert Euler" > > Bcc: > > Date: Fri, 23 Jun 2006 11:20:50 +0800 > > > > It seems HEAD sync was incorrect again. When compiling > > src/w32term.c on Windows: > > > > gcc -I. -DWIN32_LEAN_AND_MEAN -D_WIN32_WINNT=0x0500 -D_X86_=1 -c > > -mno-cygwin -m > > cpu=i686 -O2 -Di386 -D_CRTAPI1=_cdecl -O2 -Demacs=1 -DWINDOWSNT >-DDOS_NT > > -DHAV > > E_CONFIG_H -I../nt/inc -D_UCHAR_T -DHAVE_NTGUI=1 -DUSE_CRT_DLL=1 > > -DPURESIZE=5000 > > 000 -o oo-spd/i386/w32term.o w32term.c > > w32term.c: In function `w32_initialize': > > w32term.c:6551: `smoothing_enabled' undeclared (first use in this >function) > > w32term.c:6551: (Each undeclared identifier is reported only once > > w32term.c:6551: for each function it appears in.) > > w32term.c:6553: `smoothing_type' undeclared (first use in this function) > > make[2]: *** [oo-spd/i386/w32term.o] Error 1 > >I cannot reproduce this: w32term.c compiles for me just fine. And the >error message looks very strange anyway, since w32term.c has only 6474 >lines (and was last modified on 5th June, so if there were a problem, >lots of people would have complained by now). > >Can you see what is going on around the lines that GCC complains >about? The lines around there are: /* Determine if Cleartype is in use. Used to enable a hack in the char metric calculations which adds extra pixels to compensate for the "sub-pixels" that are not counted by the system APIs. */ cleartype_active = SystemParametersInfo (SPI_GETFONTSMOOTHING, 0, &smoothing_enabled, 0) && smoothing_enabled && SystemParametersInfo (SPI_GETFONTSMOOTHINGTYPE, 0, &smoothing_type, 0) && smoothing_type == FE_FONTSMOOTHINGCLEARTYPE; I "grep"ed in src directory, the result is: $ pwd /cygdrive/e/emacs-cvs/src $ grep -nR smoothing * w32term.c:6551: SystemParametersInfo (SPI_GETFONTSMOOTHING, 0, &smoothing_enabled, 0) w32term.c:6552: && smoothing_enabled w32term.c:6553: && SystemParametersInfo (SPI_GETFONTSMOOTHINGTYPE, 0, &smoothing_type, 0) w32term.c:6554: && smoothing_type == FE_FONTSMOOTHINGCLEARTYPE; By the way, it's the Unicode 2 branch. Regards, Guanpeng Xu _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/