1 /* @(#) pf_clib.h 96/12/18 1.10 */
5 /***************************************************************
6 ** Include file for PForth tools
9 ** Copyright 1994 3DO, Phil Burk, Larry Polansky, David Rosenboom
11 ** The pForth software code is dedicated to the public domain,
12 ** and any third party may reproduce, distribute and modify
13 ** the pForth software code or any derivative works thereof
14 ** without any compensation or license. The pForth software
15 ** code is provided on an "as is" basis without any warranty
16 ** of any kind, including, without limitation, the implied
17 ** warranties of merchantability and fitness for a particular
18 ** purpose and their equivalents under the laws of any jurisdiction.
20 ***************************************************************/
28 cell_t pfCStringLength( const char *s );
29 void *pfSetMemory( void *s, cell_t c, cell_t n );
30 void *pfCopyMemory( void *s1, const void *s2, cell_t n);
31 #define EXIT(n) {while(1);}
37 #else /* PF_NO_CLIB */
42 /* Use stdlib functions if available because they are probably faster. */
43 #define pfCStringLength strlen
44 #define pfSetMemory memset
45 #define pfCopyMemory memcpy
46 #define EXIT(n) exit(n)
47 #endif /* PF_USER_CLIB */
49 #endif /* !PF_NO_CLIB */
55 /* Always use my own functions to avoid macro expansion problems with tolower(*s++) */
56 char pfCharToUpper( char c );
57 char pfCharToLower( char c );
63 #endif /* _pf_clib_h */