bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gnulib] SIZE_MAX and gl_SIZE_MAX


From: Bruno Haible
Subject: Re: [bug-gnulib] SIZE_MAX and gl_SIZE_MAX
Date: Thu, 28 Sep 2006 21:58:29 +0200
User-agent: KMail/1.9.1

Paul Eggert wrote:
> gl_SIZE_MAX should be retired, and I assume it will be once the next
> gettext release is out.

Code used in the intl/ directory will continue to use gl_SIZE_MAX for a
while, so that the autoconf checks done by AM_GNU_GETTEXT don't get too
time consuming.

But in other modules, we can switch to <stdint.h> immediately.

2006-09-28  Bruno Haible  <address@hidden>

        * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
        * modules/linkedhash-list (Depends-on): Likewise.
        * modules/rbtreehash-list (Depends-on): Likewise.
        * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
        * lib/gl_linkedhash_list.c: Likewise.
        * lib/gl_rbtreehash_list.c: Likewise.

diff -c -3 -r1.2 gl_avltreehash_list.c
*** lib/gl_avltreehash_list.c   14 Sep 2006 14:18:36 -0000      1.2
--- lib/gl_avltreehash_list.c   28 Sep 2006 19:53:59 -0000
***************
*** 21,32 ****
  /* Specification.  */
  #include "gl_avltreehash_list.h"
  
  #include <stdlib.h>
  
  #include "gl_avltree_oset.h"
  #include "xalloc.h"
  #include "xsize.h"
- #include "size_max.h"
  
  #ifndef uintptr_t
  # define uintptr_t unsigned long
--- 21,32 ----
  /* Specification.  */
  #include "gl_avltreehash_list.h"
  
+ #include <stdint.h> /* for SIZE_MAX */
  #include <stdlib.h>
  
  #include "gl_avltree_oset.h"
  #include "xalloc.h"
  #include "xsize.h"
  
  #ifndef uintptr_t
  # define uintptr_t unsigned long
diff -c -3 -r1.3 gl_linkedhash_list.c
*** lib/gl_linkedhash_list.c    14 Sep 2006 14:18:36 -0000      1.3
--- lib/gl_linkedhash_list.c    28 Sep 2006 19:53:59 -0000
***************
*** 21,31 ****
  /* Specification.  */
  #include "gl_linkedhash_list.h"
  
  #include <stdlib.h>
  
  #include "xalloc.h"
  #include "xsize.h"
- #include "size_max.h"
  
  #ifndef uintptr_t
  # define uintptr_t unsigned long
--- 21,31 ----
  /* Specification.  */
  #include "gl_linkedhash_list.h"
  
+ #include <stdint.h> /* for SIZE_MAX */
  #include <stdlib.h>
  
  #include "xalloc.h"
  #include "xsize.h"
  
  #ifndef uintptr_t
  # define uintptr_t unsigned long
diff -c -3 -r1.2 gl_rbtreehash_list.c
*** lib/gl_rbtreehash_list.c    14 Sep 2006 14:18:36 -0000      1.2
--- lib/gl_rbtreehash_list.c    28 Sep 2006 19:53:59 -0000
***************
*** 21,32 ****
  /* Specification.  */
  #include "gl_rbtreehash_list.h"
  
  #include <stdlib.h>
  
  #include "gl_rbtree_oset.h"
  #include "xalloc.h"
  #include "xsize.h"
- #include "size_max.h"
  
  #ifndef uintptr_t
  # define uintptr_t unsigned long
--- 21,32 ----
  /* Specification.  */
  #include "gl_rbtreehash_list.h"
  
+ #include <stdint.h> /* for SIZE_MAX */
  #include <stdlib.h>
  
  #include "gl_rbtree_oset.h"
  #include "xalloc.h"
  #include "xsize.h"
  
  #ifndef uintptr_t
  # define uintptr_t unsigned long
diff -c -3 -r1.1 avltreehash-list
*** modules/avltreehash-list    17 Jul 2006 11:31:28 -0000      1.1
--- modules/avltreehash-list    28 Sep 2006 19:53:59 -0000
***************
*** 16,22 ****
  Depends-on:
  list
  avltree-oset
! size_max
  xalloc
  xsize
  
--- 16,22 ----
  Depends-on:
  list
  avltree-oset
! stdint
  xalloc
  xsize
  
diff -c -3 -r1.1 linkedhash-list
*** modules/linkedhash-list     17 Jul 2006 11:30:30 -0000      1.1
--- modules/linkedhash-list     28 Sep 2006 19:53:59 -0000
***************
*** 11,17 ****
  
  Depends-on:
  list
! size_max
  xalloc
  xsize
  
--- 11,17 ----
  
  Depends-on:
  list
! stdint
  xalloc
  xsize
  
diff -c -3 -r1.1 rbtreehash-list
*** modules/rbtreehash-list     17 Jul 2006 11:32:23 -0000      1.1
--- modules/rbtreehash-list     28 Sep 2006 19:53:59 -0000
***************
*** 16,22 ****
  Depends-on:
  list
  rbtree-oset
! size_max
  xalloc
  xsize
  
--- 16,22 ----
  Depends-on:
  list
  rbtree-oset
! stdint
  xalloc
  xsize
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]