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

Contents of /projs/emts/trunk/src/lib_c/c_datd/memory/cmalloc.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 269 - (show annotations) (download)
Sat Jun 1 21:29:58 2019 UTC (5 years, 4 months ago) by dashley
File MIME type: text/plain
File size: 2706 byte(s)
Rename from ETS to EMTS.
1 //$Header$
2 //{a08e4749-1ca1-4865-bdeb-7c5b02e94411}
3 //-------------------------------------------------------------------------------------------------
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 /*
29 This module defines a wrapper around the standard "C" memory allocation
30 function for simple console-mode applications. If there are any memory
31 allocation errors encountered (such as out of memory), the behavior will
32 simply be to write an error message and to terminate. This is adequate
33 for data-driven console mode applications.
34 */
35
36 #ifndef CMALLOC_H_INCLUDED
37 #define CMALLOC_H_INCLUDED
38
39 #ifdef MODULE_CMALLOC
40 #define DECMOD_CMALLOC
41 #else
42 #define DECMOD_CMALLOC extern
43 #endif
44
45 #define CMALLOC_H_VERSION ("$Header$")
46
47 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 #endif
54
55 //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