Changeset a4683611 for src/libcfa/stdlib


Ignore:
Timestamp:
Jun 2, 2017, 5:01:19 PM (6 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
2c6c893
Parents:
421a287
Message:

third attempt at memory-allocation routines

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/stdlib

    r421a287 ra4683611  
    1010// Created On       : Thu Jan 28 17:12:35 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Thu Jun  1 22:46:43 2017
    13 // Update Count     : 216
     12// Last Modified On : Fri Jun  2 15:51:03 2017
     13// Update Count     : 218
    1414//
    1515
     
    127127static inline forall( dtype T | sized(T) ) T * memset( T dest[], size_t dim, char c ) {
    128128        //printf( "X19\n" );
    129         return memset( dest, c, dim * sizeof(T) );
     129        return (void *)memset( dest, c, dim * sizeof(T) );      // C memset
    130130} // memset
    131131static inline forall( dtype T | sized(T) ) T * memcpy( T dest[], const T src[], size_t dim ) {
Note: See TracChangeset for help on using the changeset viewer.