* scm_t_bits versus uintptr_t @ 2003-05-23 23:03 Kevin Ryde 2003-06-01 21:22 ` Marius Vollmer 0 siblings, 1 reply; 3+ messages in thread From: Kevin Ryde @ 2003-05-23 23:03 UTC (permalink / raw) While looking at some preprocessor output I noticed scm_t_bits is coming out as plain unsigned long on my i386 debian with gcc 3.3. It seems INTPTR_MAX and INTPTR_MIN are defined in stdint.h in glibc (2.3.1) and not in limits.h, so tags.h decides intptr_t can't be used. It might be necessary to include inttypes.h or stdint.h, or whichever is available, if the intention is to use intptr_t when possible. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: scm_t_bits versus uintptr_t 2003-05-23 23:03 scm_t_bits versus uintptr_t Kevin Ryde @ 2003-06-01 21:22 ` Marius Vollmer 2003-06-06 22:29 ` Kevin Ryde 0 siblings, 1 reply; 3+ messages in thread From: Marius Vollmer @ 2003-06-01 21:22 UTC (permalink / raw) Cc: guile-devel Kevin Ryde <user42@zip.com.au> writes: > It might be necessary to include inttypes.h or stdint.h, or whichever > is available, if the intention is to use intptr_t when possible. Yes, that is the intention. Could you fix this? -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: scm_t_bits versus uintptr_t 2003-06-01 21:22 ` Marius Vollmer @ 2003-06-06 22:29 ` Kevin Ryde 0 siblings, 0 replies; 3+ messages in thread From: Kevin Ryde @ 2003-06-06 22:29 UTC (permalink / raw) [-- Attachment #1: Type: text/plain, Size: 223 bytes --] Marius Vollmer <mvo@zagadka.de> writes: > > Yes, that is the intention. Could you fix this? * tags.h: Use inttypes.h and stdint.h when available, for INTPTR_MAX and friends required by scm_t_bits setups. [-- Attachment #2: tags.h.inttypes.diff --] [-- Type: text/plain, Size: 484 bytes --] --- tags.h.~1.100.~ 2003-06-05 00:30:58.000000000 +1000 +++ tags.h 2003-06-07 08:26:00.000000000 +1000 @@ -29,6 +29,14 @@ /* picks up scmconfig.h too */ #include "libguile/__scm.h" +#if HAVE_INTTYPES_H +# include <inttypes.h> /* for INTPTR_MAX and friends */ +#else +# if HAVE_STDINT_H +# include <stdint.h> /* for INTPTR_MAX and friends */ +# endif +#endif + /* In the beginning was the Word: */ #if SCM_SIZEOF_INTPTR_T != 0 && defined(INTPTR_MAX) && defined(INTPTR_MIN) [-- Attachment #3: Type: text/plain, Size: 142 bytes --] _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-06-06 22:29 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2003-05-23 23:03 scm_t_bits versus uintptr_t Kevin Ryde 2003-06-01 21:22 ` Marius Vollmer 2003-06-06 22:29 ` Kevin Ryde
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).