/[dtapublic]/projs/ets/trunk/src/lib_c/c_datd/memory/cmalloc.h
ViewVC logotype

Annotation of /projs/ets/trunk/src/lib_c/c_datd/memory/cmalloc.h

Parent Directory Parent Directory | Revision Log Revision Log


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

Properties

Name Value
svn:eol-style native
svn:keywords Header

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25