/[dtapublic]/projs/dtats/trunk/projs/2018/20180707_cgi_web_tools_aux_exe/auxfuncs.h
ViewVC logotype

Diff of /projs/dtats/trunk/projs/2018/20180707_cgi_web_tools_aux_exe/auxfuncs.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 170 by dashley, Sun Jul 8 21:12:48 2018 UTC revision 175 by dashley, Mon Jul 9 00:00:34 2018 UTC
# Line 1  Line 1 
1  // $Header: /cvsroot/esrg/sfesrg/esrgnxpj/sfnthcgi0304/auxfuncs.h,v 1.2 2003/04/17 20:02:05 dtashley Exp $  // $Header$
2  //  //********************************************************************************
3  //********************************************************************************  //Copyright (c) 2003, 2018 David T. Ashley.
4  //Copyright (C) 2003 David T. Ashley  //********************************************************************************
5  //********************************************************************************  //This file is part of "arith_large_cgi", a program that is designed to be
6  //This program or source file is free software; you can redistribute it and/or  //invoked by a PHP script as part of serving a web page that performs
7  //modify it under the terms of the GNU General Public License as published by  //calculations involving large integers.  (A secondary compiled program is
8  //the Free Software Foundation; either version 2 of the License, or (at your  //used because a compiled program can perform certain  calculation-intensive
9  //option) any later version.  //tasks far more efficiently than a PHP script.)  This program is provided by
10  //  //David T. Ashley (dashley@gmail.com) under the MIT License (reproduced
11  //This program or source file is distributed in the hope that it will  //immediately below).
12  //be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of  //********************************************************************************
13  //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  //Permission is hereby granted, free of charge, to any person obtaining a copy
14  //GNU General Public License for more details.  //of this software and associated documentation files (the "Software"), to deal
15  //  //in the Software without restriction, including without limitation the rights
16  //You may have received a copy of the GNU General Public License  //to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17  //along with this program; if not, write to the Free Software  //copies of the Software, and to permit persons to whom the Software is
18  //Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  //furnished to do so, subject to the following conditions:
19  //********************************************************************************  //
20  //  //The above copyright notice and this permission notice shall be included in all
21  #ifndef AUXFUNCS_H_INCLUDED  //copies or substantial portions of the Software.
22     #define AUXFUNCS_H_INCLUDED  //
23    //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24     #ifdef MODULE_AUXFUNCS  //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25        #define DECMOD_AUXFUNCS  //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26     #else  //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
27        #define DECMOD_AUXFUNCS extern  //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
28     #endif  //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
29    //SOFTWARE.
30     //CHARACTER CLASSIFICATION FUNCTIONS.  //********************************************************************************
31     DECMOD_AUXFUNCS int AUXFUNCS_is_digit(char c);  //
32     DECMOD_AUXFUNCS int AUXFUNCS_digit_to_val(char digit);  #ifndef AUXFUNCS_H_INCLUDED
33       #define AUXFUNCS_H_INCLUDED
34     //SIZE_T INTEGER FUNCTIONS.  
35     DECMOD_AUXFUNCS size_t AUXFUNCS_size_t_min(size_t a, size_t b);     #ifdef MODULE_AUXFUNCS
36     DECMOD_AUXFUNCS size_t AUXFUNCS_size_t_max(size_t a, size_t b);        #define DECMOD_AUXFUNCS
37       #else
38     //CONTRACTING STRING FUNCTIONS.        #define DECMOD_AUXFUNCS extern
39     DECMOD_AUXFUNCS void AUXFUNCS_remove_non_digits(char *s);     #endif
40     DECMOD_AUXFUNCS void AUXFUNCS_remove_leading_zeros(char *s);  
41       //CHARACTER CLASSIFICATION FUNCTIONS.
42     /****************************************************************/     DECMOD_AUXFUNCS int AUXFUNCS_is_digit(char c);
43     /***   VERSION CONTROL REPORTING FUNCTIONS   ********************/     DECMOD_AUXFUNCS int AUXFUNCS_digit_to_val(char digit);
44     /****************************************************************/  
45     DECMOD_AUXFUNCS const char *AUXFUNCS_cvcinfo(void);     //SIZE_T INTEGER FUNCTIONS.
46     DECMOD_AUXFUNCS const char *AUXFUNCS_hvcinfo(void);     DECMOD_AUXFUNCS size_t AUXFUNCS_size_t_min(size_t a, size_t b);
47       DECMOD_AUXFUNCS size_t AUXFUNCS_size_t_max(size_t a, size_t b);
48     /* Preprocessor string to allow the H-file version to be  
49     ** compiled into the C-file.     //CONTRACTING STRING FUNCTIONS.
50     */     DECMOD_AUXFUNCS void AUXFUNCS_remove_non_digits(char *s);
51     #define AUXFUNCS_H_VERSION ("$Header: /cvsroot/esrg/sfesrg/esrgnxpj/sfnthcgi0304/auxfuncs.h,v 1.2 2003/04/17 20:02:05 dtashley Exp $")     DECMOD_AUXFUNCS void AUXFUNCS_remove_leading_zeros(char *s);
52    
53  #endif /* AUXFUNCS_H_INCLUDED */     /****************************************************************/
54       /***   VERSION CONTROL REPORTING FUNCTIONS   ********************/
55  //********************************************************************************     /****************************************************************/
56  // $Log: auxfuncs.h,v $     DECMOD_AUXFUNCS const char *AUXFUNCS_cvcinfo(void);
57  // Revision 1.2  2003/04/17 20:02:05  dtashley     DECMOD_AUXFUNCS const char *AUXFUNCS_hvcinfo(void);
58  // License text for the GPL added.  All source files are now under the GPL,  
59  // after some discussion on the GMP list.     /* Preprocessor string to allow the H-file version to be
60  //     ** compiled into the C-file.
61  // Revision 1.1  2003/04/13 23:46:06  dtashley     */
62  // Initial checkin.     #define AUXFUNCS_H_VERSION ("$Header$")
63  //********************************************************************************  
64  // End of AUXFUNCS.H.  #endif /* AUXFUNCS_H_INCLUDED */
65  //********************************************************************************  
66    //********************************************************************************
67    // End of AUXFUNCS.H.
68    //********************************************************************************

Legend:
Removed from v.170  
changed lines
  Added in v.175

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25