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

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

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

projs/ets/trunk/src/lib_c/c_cmode/ccmalloc.h revision 233 by dashley, Sun Jul 22 16:09:29 2018 UTC projs/ets/trunk/src/lib_c/c_datd/cmalloc.h revision 234 by dashley, Mon Jul 30 02:54:27 2018 UTC
# Line 24  Line 24 
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 CMALLOC_H_INCLUDED
36     #define CCMALLOC_H_INCLUDED     #define CMALLOC_H_INCLUDED
37    
38     #ifdef MODULE_CCMALLOC     #ifdef MODULE_CMALLOC
39        #define DECMOD_CCMALLOC        #define DECMOD_CMALLOC
40     #else     #else
41        #define DECMOD_CCMALLOC extern        #define DECMOD_CMALLOC extern
42     #endif     #endif
43    
44     #define CCMALLOC_H_VERSION ("$Header$")     #define CMALLOC_H_VERSION ("$Header$")
45    
46     DECMOD_CCMALLOC void *CCMALLOC_malloc( size_t size );     DECMOD_CMALLOC void *CMALLOC_malloc( size_t size );
47     DECMOD_CCMALLOC void *CCMALLOC_calloc( size_t num, size_t size );     DECMOD_CMALLOC void *CMALLOC_calloc( size_t num, size_t size );
48     DECMOD_CCMALLOC void *CCMALLOC_realloc( void *memblock, size_t size );     DECMOD_CMALLOC void *CMALLOC_realloc( void *memblock, size_t size );
49     DECMOD_CCMALLOC void CCMALLOC_free( void *memblock );     DECMOD_CMALLOC void CMALLOC_free( void *memblock );
50     DECMOD_CCMALLOC const char *CCMALLOC_cvcinfo(void);     DECMOD_CMALLOC const char *CMALLOC_cvcinfo(void);
51     DECMOD_CCMALLOC const char *CCMALLOC_hvcinfo(void);     DECMOD_CMALLOC const char *CMALLOC_hvcinfo(void);
52  #endif  #endif
53    
54  //End of ccmalloc.h.  //End of cmalloc.h.

Legend:
Removed from v.233  
changed lines
  Added in v.234

dashley@gmail.com
ViewVC Help
Powered by ViewVC 1.1.25