From: "Herbert Euler" <herberteuler@hotmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: `smoothing_enabled' undeclared
Date: Sat, 24 Jun 2006 10:16:02 +0800 [thread overview]
Message-ID: <BAY112-F52C3D188AD7CDFB0457DBDA7B0@phx.gbl> (raw)
In-Reply-To: <uzmg49o7l.fsf@gnu.org>
>From: Eli Zaretskii <eliz@gnu.org>
>Reply-To: Eli Zaretskii <eliz@gnu.org>
>To: "Herbert Euler" <herberteuler@hotmail.com>
>CC: emacs-devel@gnu.org
>Subject: Re: `smoothing_enabled' undeclared
>Date: Fri, 23 Jun 2006 13:10:54 +0300
>
> > From: "Herbert Euler" <herberteuler@hotmail.com>
> > 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/
next prev parent reply other threads:[~2006-06-24 2:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-23 3:20 `smoothing_enabled' undeclared Herbert Euler
2006-06-23 10:10 ` Eli Zaretskii
2006-06-24 2:16 ` Herbert Euler [this message]
2006-06-24 2:38 ` Nick Roberts
2006-07-02 16:13 ` Stefan Monnier
2006-07-02 22:51 ` Nick Roberts
2006-07-02 23:33 ` Miles Bader
2006-07-03 15:40 ` Bob Rogers
2006-07-06 22:27 ` Stefan Monnier
2006-06-24 6:27 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BAY112-F52C3D188AD7CDFB0457DBDA7B0@phx.gbl \
--to=herberteuler@hotmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).