12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- /* Copyright (C) 1989, 1992, 1993, 1994, 1998, 1999 Aladdin Enterprises. All rights reserved.
-
- This software is provided AS-IS with no warranty, either express or
- implied.
-
- This software is distributed under license and may not be copied,
- modified or distributed except as expressly authorized under the terms
- of the license contained in the file LICENSE in this distribution.
-
- For more information about licensing, please refer to
- http://www.ghostscript.com/licensing/. For information on
- commercial licensing, go to http://www.artifex.com/licensing/ or
- contact Artifex Software, Inc., 101 Lucas Valley Road #110,
- San Rafael, CA 94903, U.S.A., +1(415)492-9861.
- */
- /* $Id: string_.h,v 1.4 2002/02/21 22:24:54 giles Exp $ */
- /* Generic substitute for Unix string.h */
- #ifndef string__INCLUDED
- # define string__INCLUDED
- /* We must include std.h before any file that includes sys/types.h. */
- #include "std.h"
- #ifdef BSD4_2
- # include <strings.h>
- # define strchr index
- #else
- # ifdef MEMORY__NEED_MEMMOVE
- # undef memmove /* This is disgusting, but so is GCC */
- # endif
- # include <string.h>
- # if defined(THINK_C)
- /* Patch strlen to return a uint rather than a size_t. */
- # define strlen (uint)strlen
- # endif
- # ifdef MEMORY__NEED_MEMMOVE
- # define memmove(dest,src,len) gs_memmove(dest,src,len)
- # endif
- #endif
- #endif /* string__INCLUDED */
|