/[dtapublic]/projs/dtats/trunk/shared_source/c_cmode/ccmalloc.h
ViewVC logotype

Diff of /projs/dtats/trunk/shared_source/c_cmode/ccmalloc.h

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

revision 55 by dashley, Sat Oct 29 01:52:13 2016 UTC revision 71 by dashley, Sat Nov 5 11:07:06 2016 UTC
# Line 1  Line 1 
1  //$Header$  //$Header$
2  //-------------------------------------------------------------------------------------------------  //-------------------------------------------------------------------------------------------------
3  //This file is part of "David T. Ashley's Shared Source Code", a set of shared components  //This file is part of "David T. Ashley's Shared Source Code", a set of shared components
4  //integrated into many of David T. Ashley's projects.  //integrated into many of David T. Ashley's projects.
5  //-------------------------------------------------------------------------------------------------  //-------------------------------------------------------------------------------------------------
6  //This source code and any program in which it is compiled/used is provided under the MIT License,  //This source code and any program in which it is compiled/used is provided under the MIT License,
7  //reproduced below.  //reproduced below.
8  //-------------------------------------------------------------------------------------------------  //-------------------------------------------------------------------------------------------------
9  //Permission is hereby granted, free of charge, to any person obtaining a copy of  //Permission is hereby granted, free of charge, to any person obtaining a copy of
10  //this software and associated documentation files(the "Software"), to deal in the  //this software and associated documentation files(the "Software"), to deal in the
11  //Software without restriction, including without limitation the rights to use,  //Software without restriction, including without limitation the rights to use,
12  //copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the  //copy, modify, merge, publish, distribute, sublicense, and / or sell copies of the
13  //Software, and to permit persons to whom the Software is furnished to do so,  //Software, and to permit persons to whom the Software is furnished to do so,
14  //subject to the following conditions :  //subject to the following conditions :
15  //  //
16  //The above copyright notice and this permission notice shall be included in all  //The above copyright notice and this permission notice shall be included in all
17  //copies or substantial portions of the Software.  //copies or substantial portions of the Software.
18  //  //
19  //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20  //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  //IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21  //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE  //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
22  //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  //AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23  //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,  //LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24  //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE  //OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25  //SOFTWARE.  //SOFTWARE.
26  //-------------------------------------------------------------------------------------------------  //-------------------------------------------------------------------------------------------------
27  /*  /*
28  This module defines a wrapper around the standard "C" memory allocation  This module defines a wrapper around the standard "C" memory allocation
29  function for simple console-mode applications.  If there are any memory  function for simple console-mode applications.  If there are any memory
30  allocation errors encountered (such as out of memory), the behavior will  allocation errors encountered (such as out of memory), the behavior will
31  simply be to write an error message and to terminate.  This is adequate  simply be to write an error message and to terminate.  This is adequate
32  for data-driven console mode applications.  for data-driven console mode applications.
33  */  */
34    
35  #ifndef CCMALLOC_H_INCLUDED  #ifndef CCMALLOC_H_INCLUDED
36     #define CCMALLOC_H_INCLUDED     #define CCMALLOC_H_INCLUDED
37    
38     #ifdef MODULE_CCMALLOC     #ifdef MODULE_CCMALLOC
39        #define DECMOD_CCMALLOC        #define DECMOD_CCMALLOC
40     #else     #else
41        #define DECMOD_CCMALLOC extern        #define DECMOD_CCMALLOC extern
42     #endif     #endif
43    
44     #define CCMALLOC_H_VERSION ("$Header$")     #define CCMALLOC_H_VERSION ("$Header$")
45    
46     DECMOD_CCMALLOC void *CCMALLOC_malloc( size_t size );     DECMOD_CCMALLOC void *CCMALLOC_malloc( size_t size );
47     DECMOD_CCMALLOC void *CCMALLOC_calloc( size_t num, size_t size );     DECMOD_CCMALLOC void *CCMALLOC_calloc( size_t num, size_t size );
48     DECMOD_CCMALLOC void *CCMALLOC_realloc( void *memblock, size_t size );     DECMOD_CCMALLOC void *CCMALLOC_realloc( void *memblock, size_t size );
49     DECMOD_CCMALLOC void CCMALLOC_free( void *memblock );     DECMOD_CCMALLOC void CCMALLOC_free( void *memblock );
50     DECMOD_CCMALLOC const char *CCMALLOC_cvcinfo(void);     DECMOD_CCMALLOC const char *CCMALLOC_cvcinfo(void);
51     DECMOD_CCMALLOC const char *CCMALLOC_hvcinfo(void);     DECMOD_CCMALLOC const char *CCMALLOC_hvcinfo(void);
52  #endif  #endif
53    
54  //End of ccmalloc.h.  //End of ccmalloc.h.

Legend:
Removed from v.55  
changed lines
  Added in v.71

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25