1 |
// $Header: /cvsroot/esrg/sfesrg/esrgnxpj/sfnthcgi0304/auxfuncs.h,v 1.2 2003/04/17 20:02:05 dtashley Exp $ |
// $Header$ |
2 |
// |
// |
3 |
//******************************************************************************** |
//******************************************************************************** |
4 |
//Copyright (C) 2003 David T. Ashley |
//Copyright (C) 2003 David T. Ashley |
5 |
//******************************************************************************** |
//******************************************************************************** |
6 |
//This program or source file is free software; you can redistribute it and/or |
//This program or source file is free software; you can redistribute it and/or |
7 |
//modify it under the terms of the GNU General Public License as published by |
//modify it under the terms of the GNU General Public License as published by |
8 |
//the Free Software Foundation; either version 2 of the License, or (at your |
//the Free Software Foundation; either version 2 of the License, or (at your |
9 |
//option) any later version. |
//option) any later version. |
10 |
// |
// |
11 |
//This program or source file is distributed in the hope that it will |
//This program or source file is distributed in the hope that it will |
12 |
//be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
//be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 |
//GNU General Public License for more details. |
//GNU General Public License for more details. |
15 |
// |
// |
16 |
//You may have received a copy of the GNU General Public License |
//You may have received a copy of the GNU General Public License |
17 |
//along with this program; if not, write to the Free Software |
//along with this program; if not, write to the Free Software |
18 |
//Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
//Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
19 |
//******************************************************************************** |
//******************************************************************************** |
20 |
// |
// |
21 |
#ifndef AUXFUNCS_H_INCLUDED |
#ifndef AUXFUNCS_H_INCLUDED |
22 |
#define AUXFUNCS_H_INCLUDED |
#define AUXFUNCS_H_INCLUDED |
23 |
|
|
24 |
#ifdef MODULE_AUXFUNCS |
#ifdef MODULE_AUXFUNCS |
25 |
#define DECMOD_AUXFUNCS |
#define DECMOD_AUXFUNCS |
26 |
#else |
#else |
27 |
#define DECMOD_AUXFUNCS extern |
#define DECMOD_AUXFUNCS extern |
28 |
#endif |
#endif |
29 |
|
|
30 |
//CHARACTER CLASSIFICATION FUNCTIONS. |
//CHARACTER CLASSIFICATION FUNCTIONS. |
31 |
DECMOD_AUXFUNCS int AUXFUNCS_is_digit(char c); |
DECMOD_AUXFUNCS int AUXFUNCS_is_digit(char c); |
32 |
DECMOD_AUXFUNCS int AUXFUNCS_digit_to_val(char digit); |
DECMOD_AUXFUNCS int AUXFUNCS_digit_to_val(char digit); |
33 |
|
|
34 |
//SIZE_T INTEGER FUNCTIONS. |
//SIZE_T INTEGER FUNCTIONS. |
35 |
DECMOD_AUXFUNCS size_t AUXFUNCS_size_t_min(size_t a, size_t b); |
DECMOD_AUXFUNCS size_t AUXFUNCS_size_t_min(size_t a, size_t b); |
36 |
DECMOD_AUXFUNCS size_t AUXFUNCS_size_t_max(size_t a, size_t b); |
DECMOD_AUXFUNCS size_t AUXFUNCS_size_t_max(size_t a, size_t b); |
37 |
|
|
38 |
//CONTRACTING STRING FUNCTIONS. |
//CONTRACTING STRING FUNCTIONS. |
39 |
DECMOD_AUXFUNCS void AUXFUNCS_remove_non_digits(char *s); |
DECMOD_AUXFUNCS void AUXFUNCS_remove_non_digits(char *s); |
40 |
DECMOD_AUXFUNCS void AUXFUNCS_remove_leading_zeros(char *s); |
DECMOD_AUXFUNCS void AUXFUNCS_remove_leading_zeros(char *s); |
41 |
|
|
42 |
/****************************************************************/ |
/****************************************************************/ |
43 |
/*** VERSION CONTROL REPORTING FUNCTIONS ********************/ |
/*** VERSION CONTROL REPORTING FUNCTIONS ********************/ |
44 |
/****************************************************************/ |
/****************************************************************/ |
45 |
DECMOD_AUXFUNCS const char *AUXFUNCS_cvcinfo(void); |
DECMOD_AUXFUNCS const char *AUXFUNCS_cvcinfo(void); |
46 |
DECMOD_AUXFUNCS const char *AUXFUNCS_hvcinfo(void); |
DECMOD_AUXFUNCS const char *AUXFUNCS_hvcinfo(void); |
47 |
|
|
48 |
/* Preprocessor string to allow the H-file version to be |
/* Preprocessor string to allow the H-file version to be |
49 |
** compiled into the C-file. |
** compiled into the C-file. |
50 |
*/ |
*/ |
51 |
#define AUXFUNCS_H_VERSION ("$Header: /cvsroot/esrg/sfesrg/esrgnxpj/sfnthcgi0304/auxfuncs.h,v 1.2 2003/04/17 20:02:05 dtashley Exp $") |
#define AUXFUNCS_H_VERSION ("$Header$") |
52 |
|
|
53 |
#endif /* AUXFUNCS_H_INCLUDED */ |
#endif /* AUXFUNCS_H_INCLUDED */ |
54 |
|
|
55 |
//******************************************************************************** |
//******************************************************************************** |
56 |
// $Log: auxfuncs.h,v $ |
// $Log: auxfuncs.h,v $ |
57 |
// Revision 1.2 2003/04/17 20:02:05 dtashley |
// Revision 1.2 2003/04/17 20:02:05 dtashley |
58 |
// License text for the GPL added. All source files are now under the GPL, |
// License text for the GPL added. All source files are now under the GPL, |
59 |
// after some discussion on the GMP list. |
// after some discussion on the GMP list. |
60 |
// |
// |
61 |
// Revision 1.1 2003/04/13 23:46:06 dtashley |
// Revision 1.1 2003/04/13 23:46:06 dtashley |
62 |
// Initial checkin. |
// Initial checkin. |
63 |
//******************************************************************************** |
//******************************************************************************** |
64 |
// End of AUXFUNCS.H. |
// End of AUXFUNCS.H. |
65 |
//******************************************************************************** |
//******************************************************************************** |