all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* src/config.in: size_t and !HAVE_SIZE_T [PATCH]
@ 2002-12-30 11:05 Richard Dawe
  2002-12-30 17:43 ` Eli Zaretskii
  2002-12-30 17:44 ` Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Dawe @ 2002-12-30 11:05 UTC (permalink / 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 */

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: src/config.in: size_t and !HAVE_SIZE_T [PATCH]
  2002-12-30 11:05 src/config.in: size_t and !HAVE_SIZE_T [PATCH] Richard Dawe
@ 2002-12-30 17:43 ` Eli Zaretskii
  2002-12-30 17:44 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2002-12-30 17:43 UTC (permalink / raw)
  Cc: bug-gnu-emacs

> Date: Mon, 30 Dec 2002 11:05:32 +0000
> From: "Richard Dawe" <rich@phekda.freeserve.co.uk>
> 
> 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?

Yes, it's used when Makefile.in is processed by cpp.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: src/config.in: size_t and !HAVE_SIZE_T [PATCH]
  2002-12-30 11:05 src/config.in: size_t and !HAVE_SIZE_T [PATCH] Richard Dawe
  2002-12-30 17:43 ` Eli Zaretskii
@ 2002-12-30 17:44 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2002-12-30 17:44 UTC (permalink / raw)
  Cc: bug-gnu-emacs

> Date: Mon, 30 Dec 2002 11:05:32 +0000
> From: "Richard Dawe" <rich@phekda.freeserve.co.uk>
> 
> 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.

Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-30 17:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-30 11:05 src/config.in: size_t and !HAVE_SIZE_T [PATCH] Richard Dawe
2002-12-30 17:43 ` Eli Zaretskii
2002-12-30 17:44 ` Eli Zaretskii

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.