summaryrefslogtreecommitdiff
path: root/lib/memchr.c
AgeCommit message (Collapse)Author
2006-08-21Remove from CVS, since the bootstrap script generates them automatically.Paul Eggert
2005-09-22Sync from gnulib.Paul Eggert
2005-05-14Update FSF postal mail address.Jim Meyering
2004-08-02Don't include inttypes.h or stdint.h.Paul Eggert
(UNALIGNED_P): Remove. (__memchr): Use size_t, not uintptr_t, to test alignment.
2004-07-30Fix copyright year.Paul Eggert
2004-07-29(UNALIGNED_P): Use sizeof, not alignof.Paul Eggert
2004-07-28Include <stddef.h>, not <stdlib.h> and <sys/types.h>.Paul Eggert
(LONG_MAX_32_BITS): Remove. Include <inttypes.h> and <stdint.h> if available. (alignof, UNALIGNEDP): New macro, portable to all C89 hosts. (__memchr): Don't assume unsigned long int is either 4 or 8 bytes; let it be any number of bytes greater than or equal to 4. * memrchr.c: Likewise, with __memrchr.
2003-09-10(__ptr_t): Remove; all uses changed to void *.Jim Meyering
Include <string.h> unconditionally. Include <limits.h> unconditionally. Include <stdlib.h> unconditionally. (LONG_MAX): Remove. (__memchr): Define via a prototype.
2000-10-28Update from libc.Jim Meyering
Adjust for portability: [HAVE_STDLIB_H]: Include stdlib.h. [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h. Undef __memchr, too. [!weak_alias]: Define __memchr to memchr.
2000-08-07back out Copyright date changes for files with no changes yearJim Meyering
2000-07-09update copyright dateJim Meyering
1999-07-10cpp indentJim Meyering
1997-02-18.Jim Meyering
1996-07-14update FSF address in copyrightJim Meyering
1995-05-28merge with 1.11.4aJim Meyering
1995-05-21merge with 1.11.1bJim Meyering
1995-03-21merge with 1.11.dJim Meyering
1995-03-12Update from glibc.Jim Meyering
1994-10-02merge with 1.9.1gJim Meyering
1994-04-25.Jim Meyering
1993-10-21merge with 1.8dJim Meyering
1993-10-21* memchr.c (memchr): Do the 32-bit assignment only if !LONG_64_BITS.Jim Meyering
In the 64-bit assignment, be careful to cast the shift operand to long. Abort if sizeof (unsigned long) > 8.
1992-11-08Initial revisionJim Meyering