all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Richard Dawe" <rich@phekda.freeserve.co.uk>
Subject: src/config.in: size_t and !HAVE_SIZE_T [PATCH]
Date: Mon, 30 Dec 2002 11:05:32 +0000	[thread overview]
Message-ID: <E18Sxiu-0000Ni-00@phekda.freeserve.co.uk> (raw)

Hello.

I tried to build Emacs CVS against DJGPP CVS yesterday.

The DJGPP build uses DJGPP's <sys/config.h>, which defines HAVE_*
and other things that configure scripts detect. DJGPP's <sys/config.h>
does not define HAVE_SIZE_T, so the definition of size_t is used
from Emacs's src/config.in. Unfortunately there appears to be a typo
in the definition.

Below is a patch to fix the typo. One thing: why is it enclosed in
#ifdef NOT_C_CODE/#endif? Is src/config.h used in non-C code?

2002-12-30  Richard Dawe  <rich@phekda.freeserve.co.uk>

	* src/config.in (!HAVE_SIZE_T): Fix order of arguments in
	type definition of size_t.

Regards, Rich =]

Index: src/config.in
===================================================================
RCS file: /cvsroot/emacs/emacs/src/config.in,v
retrieving revision 1.178
diff -p -u -3 -r1.178 config.in
--- src/config.in	29 Nov 2002 06:25:05 -0000	1.178
+++ src/config.in	30 Dec 2002 10:28:12 -0000
@@ -961,7 +961,7 @@ char *alloca ();
 # endif /* HAVE_ALLOCA_H */
 #endif /* __GNUC__ */
 #ifndef HAVE_SIZE_T
-typedef size_t unsigned
+typedef unsigned size_t;
 #endif
 #endif /* NOT_C_CODE */

             reply	other threads:[~2002-12-30 11:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-30 11:05 Richard Dawe [this message]
2002-12-30 17:43 ` src/config.in: size_t and !HAVE_SIZE_T [PATCH] Eli Zaretskii
2002-12-30 17:44 ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E18Sxiu-0000Ni-00@phekda.freeserve.co.uk \
    --to=rich@phekda.freeserve.co.uk \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.