1. 05 Jul, 2011 3 commits
    • Paul Eggert's avatar
      [ChangeLog] · 9cfdb3ec
      Paul Eggert authored
      Assume support for memcmp, memcpy, memmove, memset.
      This simplifies the code a bit.  All current platforms have these,
      as they are required for C89.  If this turns into a problem we
      can add the gnulib modules for these (a 1-line change to Makefile.in).
      * configure.in: Don't check for memcmp, memcpy, memmove, memset.
      [lib-src/ChangeLog]
      Assume support for memcmp, memcpy, memmove, memset.
      * etags.c (absolute_filename): Assume memmove exists.
      [src/ChangeLog]
      Assume support for memcmp, memcpy, memmove, memset.
      * lisp.h, sysdep.c (memcmp, memcpy, memmove, memset):
      * regex.c (memcmp, memcpy):
      Remove; we assume C89 now.
      
      * gmalloc.c (memcpy, memset, memmove): Remove; we assume C89 now.
      (__malloc_safe_bcopy): Remove; no longer needed.
      9cfdb3ec
    • Paul Eggert's avatar
      * lisp.h (struct vectorlike_header, struct Lisp_Subr): Signed sizes. · 6089c567
      Paul Eggert authored
      Use EMACS_INT, not EMACS_UINT, for sizes.  The code works equally
      well either way, and we prefer signed to unsigned.
      6089c567
    • Paul Eggert's avatar
      Random fixes. E.g., (random) never returned negative values. · d8ed26bd
      Paul Eggert authored
      * fns.c (Frandom): Use GET_EMACS_TIME for random seed, and add the
      subseconds part to the entropy, as that's a bit more random.
      Prefer signed to unsigned, since the signedness doesn't matter and
      in general we prefer signed.  When given a limit, use a
      denominator equal to INTMASK + 1, not to VALMASK + 1, because the
      latter isn't right if USE_2_TAGS_FOR_INTS.
      * sysdep.c (get_random): Return a value in the range 0..INTMASK,
      not 0..VALMASK.  Don't discard "excess" bits that random () returns.
      d8ed26bd
  2. 04 Jul, 2011 37 commits