unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Frank P Esposito <fpesposito@gmail.com>
Cc: 14409@debbugs.gnu.org
Subject: bug#14409: emacs 24.3 -- windows
Date: Thu, 16 May 2013 08:33:08 +0300	[thread overview]
Message-ID: <83vc6j4hgr.fsf@gnu.org> (raw)
In-Reply-To: <CAFqEa-CQAFNXAk3cE7rA2rmZ6pafM4kgHQAEjUMe39OgHz1VTQ@mail.gmail.com>

> Date: Wed, 15 May 2013 22:31:48 -0400
> From: Frank P Esposito <fpesposito@gmail.com>
> 
> You need to fix the code, or  update the readme / install (text) files to
> note that this version of emacs  DOES NOT COMPILE with versions of visual
> studio that ARE NOT C99 compliant.

There was no intent to break compilation with Studio 2003.  It's just
that the number of people who use that seems to be vanishingly small,
and in particular none of them tried the pretest version and reported
problems.

> there are references to  defines that are  part of stdint.h (C99) --  you
> need to define them or not use them

We have a replacement stdint.h in nt/inc.  If something is missing
from there, please tell what that is.

> it seems that there is new code in  "charset.c charset.h" that have very
> complex macros that are imbedded in other complex macros
> that expand to something  like (see below)  which is impossible to debug --
> this is causing the error
> 
> coding.c
> coding.c(2604) : error C2065: 'value' : undeclared identifier
> coding.c(2604) : error C2143: syntax error : missing ':' before ')'
> coding.c(2604) : error C2059: syntax error : ')'
> coding.c(2604) : error C2059: syntax error : ')'
> coding.c(2604) : error C2059: syntax error : ')'
> coding.c(2604) : fatal error C1013: compiler limit : too many open
> parentheses

This is about CODING_CHAR_CHARSET, right?  But then I don't understand
the expansion you are showing, which starts with this:

>         charset = (charset_table + (preferred_charset_id));
>         do { ptrdiff_t offset; charset_map_loaded = 0; result = (((((sizeof
> ((c) + 0)) > (sizeof ((0x80) + 0)) ? (sizeof ((c) + 0)) : (sizeof ((0x80) +
> 0))) <= sizeof (unsigned) ? ((c) + (unsigned) 0) < ((0x80) + (unsigned) 0)
> : ((c) + (unsigned long) 0) < ((0x80) + (unsigned long) 0)) &&

I see no "result = ...", or anything that could expand into it, the
definition of CODING_CHAR_CHARSET.  What am I missing?

> I would be willing work to get this cleaned up  -- VC 7.1 supports inline
> functions

Please do, and thanks.  Just one request: try to keep the
MSVC-specific stuff separate, preferably somewhere under the nt/
directory (e.g., nt/inc/ms-w32.h) or in a clearly #ifdef'ed section at
the beginning of a .c or .h file in src/, so that these changes don't
make reading of the code harder.

Thanks.





  reply	other threads:[~2013-05-16  5:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-16  2:31 bug#14409: emacs 24.3 -- windows Frank P Esposito
2013-05-16  5:33 ` Eli Zaretskii [this message]
     [not found]   ` <CAFqEa-DnAzTTHDfSpt_OPxZ50UcV+7UPEvV49S_p1X=Fd7curA@mail.gmail.com>
2013-05-16 17:37     ` Eli Zaretskii
     [not found]   ` <CAFqEa-Af=1qxv-R73CKVAJteD2mG8GG3zzUGCOxgLPBh6k_zWw@mail.gmail.com>
2013-05-16 18:42     ` Eli Zaretskii
2013-05-31  3:26   ` Frank P Esposito
2017-08-09 23:13 ` npostavs

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=83vc6j4hgr.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=14409@debbugs.gnu.org \
    --cc=fpesposito@gmail.com \
    /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).