… | |
… | |
8 | /* |
8 | /* |
9 | * Some handy, nonstandard functions. Note that the original may |
9 | * Some handy, nonstandard functions. Note that the original may |
10 | * be both faster and better. ``better'', if your compiler allows |
10 | * be both faster and better. ``better'', if your compiler allows |
11 | * cleaner use of such functions by proper use of ``const''. |
11 | * cleaner use of such functions by proper use of ``const''. |
12 | * |
12 | * |
13 | * $Id: fptools.h,v 1.3 2002/02/10 22:47:18 root Exp $ |
13 | * $Id: fptools.h,v 1.3.2.1 2002/03/31 19:51:28 root Exp $ |
14 | */ |
14 | */ |
15 | |
15 | |
16 | #ifndef FPTOOLS_H__ |
16 | #ifndef __FPTOOLS_H__ |
17 | #define FPTOOLS_H__ |
17 | #define __FPTOOLS_H__ |
18 | |
18 | |
19 | typedef signed char schar; |
19 | #ifndef _ANSI_ARGS_ |
20 | typedef unsigned char uchar; |
20 | #ifdef PROTOTYPES |
|
|
21 | #define _ANSI_ARGS_(c) c |
|
|
22 | #else |
|
|
23 | #define _ANSI_ARGS_(c) () |
|
|
24 | #endif |
|
|
25 | #endif |
21 | |
26 | |
22 | #ifndef TOOLEXPORT |
27 | #ifndef TOOLEXPORT |
23 | #define TOOLEXPORT |
28 | #define TOOLEXPORT |
24 | #endif |
29 | #endif |
25 | |
30 | |
26 | #ifdef __cplusplus |
31 | #ifdef __cplusplus |
27 | extern "C" { |
32 | extern "C" { |
28 | #endif |
33 | #endif |
29 | |
34 | |
30 | void TOOLEXPORT FP_free (void *); |
35 | void TOOLEXPORT _FP_free _ANSI_ARGS_((void *)); |
31 | char * TOOLEXPORT FP_strdup (char *); |
36 | char * TOOLEXPORT _FP_strdup _ANSI_ARGS_((char *)); |
32 | char * TOOLEXPORT FP_strncpy (char *, char *, int); |
37 | char * TOOLEXPORT _FP_strncpy _ANSI_ARGS_((char *, char *, int)); |
33 | void * TOOLEXPORT FP_memdup (void *, int); |
38 | void * TOOLEXPORT _FP_memdup _ANSI_ARGS_((void *, int)); |
34 | int TOOLEXPORT FP_stricmp (char *, char *); |
39 | int TOOLEXPORT _FP_stricmp _ANSI_ARGS_((char *, char *)); |
35 | int TOOLEXPORT FP_strnicmp (char *, char *, int); |
40 | int TOOLEXPORT _FP_strnicmp _ANSI_ARGS_((char *, char *, int)); |
36 | char * TOOLEXPORT FP_strrstr (char *, char *); |
41 | char * TOOLEXPORT _FP_strrstr _ANSI_ARGS_((char *, char *)); |
37 | char * TOOLEXPORT FP_stoupper (char *); |
42 | char * TOOLEXPORT _FP_stoupper _ANSI_ARGS_((char *)); |
38 | char * TOOLEXPORT FP_stolower (char *); |
43 | char * TOOLEXPORT _FP_stolower _ANSI_ARGS_((char *)); |
39 | int TOOLEXPORT FP_strmatch (char *, char *); |
44 | int TOOLEXPORT _FP_strmatch _ANSI_ARGS_((char *, char *)); |
40 | char * TOOLEXPORT FP_strstr (char *, char *); |
45 | char * TOOLEXPORT _FP_strstr _ANSI_ARGS_((char *, char *)); |
41 | char * TOOLEXPORT FP_stristr (char *, char *); |
46 | char * TOOLEXPORT _FP_stristr _ANSI_ARGS_((char *, char *)); |
42 | char * TOOLEXPORT FP_strirstr (char *, char *); |
47 | char * TOOLEXPORT _FP_strirstr _ANSI_ARGS_((char *, char *)); |
43 | char * TOOLEXPORT FP_strrchr (char *, int); |
48 | char * TOOLEXPORT _FP_strrchr _ANSI_ARGS_((char *, int)); |
44 | char * TOOLEXPORT FP_fgets (char *, int, FILE *); |
49 | char * TOOLEXPORT _FP_fgets _ANSI_ARGS_((char *, int, FILE *)); |
45 | char * TOOLEXPORT FP_strpbrk (char *, char *); |
50 | char * TOOLEXPORT _FP_strpbrk _ANSI_ARGS_((char *, char *)); |
46 | char * TOOLEXPORT FP_strtok (char *, char *); |
51 | char * TOOLEXPORT _FP_strtok _ANSI_ARGS_((char *, char *)); |
47 | char * TOOLEXPORT FP_cutdir (char *); |
52 | char * TOOLEXPORT _FP_cutdir _ANSI_ARGS_((char *)); |
48 | char * TOOLEXPORT FP_strerror (int); |
53 | char * TOOLEXPORT _FP_strerror _ANSI_ARGS_((int)); |
49 | #ifndef HAVE_MKSTEMP |
|
|
50 | char * TOOLEXPORT FP_tempnam (char *, char *); |
54 | char * TOOLEXPORT _FP_tempnam _ANSI_ARGS_((char *, char *)); |
51 | #endif /* HAVE_MKSTEMP */ |
|
|
52 | |
55 | |
53 | #ifdef __cplusplus |
56 | #ifdef __cplusplus |
54 | } |
57 | } |
55 | #endif |
58 | #endif |
56 | #endif |
59 | #endif |