Changeset 525 for trunk


Ignore:
Timestamp:
Aug 30, 2018, 10:25:58 PM (6 years ago)
Author:
viala@…
Message:

[boot] Uniformisation of style on some prototypes.

Location:
trunk/boot/tsar_mips32
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/boot/tsar_mips32/boot_utils.c

    r523 r525  
    222222
    223223///////////////////////////////////////////////////////
    224 void boot_memcpy(void * dst, void * src, uint32_t size)
     224void boot_memcpy( void * dst, const void * src, uint32_t size )
    225225{
    226226    uint32_t * wdst = dst;
    227     uint32_t * wsrc = src;
     227    const uint32_t * wsrc = src;
    228228
    229229    // word-by-word copy if both addresses are word-aligned
     
    238238
    239239    unsigned char * cdst = (unsigned char *)wdst;
    240     unsigned char * csrc = (unsigned char *)wsrc;
     240    const unsigned char * csrc = (const unsigned char *)wsrc;
    241241
    242242    // byte-by-byte copy if:
     
    250250
    251251////////////////////////////////////////////////////
    252 void boot_memset(void * dst, int val, uint32_t size)
     252void boot_memset( void * dst, int val, uint32_t size )
    253253{
    254254    val &= 0xFF;
  • trunk/boot/tsar_mips32/boot_utils.h

    r523 r525  
    107107 * @ size   : size of memory block to be copied in bytes.
    108108 ****************************************************************************/
    109 void boot_memcpy(void* dest, void* src, uint32_t size);
     109void boot_memcpy( void * dest, const void * src, uint32_t size );
    110110
    111111/****************************************************************************
     
    116116 * @ size   : size of memory block to be filled in bytes.   
    117117 ****************************************************************************/
    118 void boot_memset(void* base, int val,   uint32_t size);
     118void boot_memset( void * base, int val, uint32_t size );
    119119
    120120/****************************************************************************
     
    127127 * @ returns the converted letter, or 'c' if conversion not possible.
    128128 ****************************************************************************/
    129 static inline unsigned char boot_to_lower(unsigned char c)
     129static inline unsigned char boot_to_lower( unsigned char c )
    130130{
    131131    return ((c >= 'A') && (c <= 'Z')) ? (c | 0x20) : c;
    132 
    133132} // boot_to_lower()
    134133
     
    138137 * @ returns the converted letter, or 'c' if conversion not possible.
    139138 ****************************************************************************/
    140 static inline unsigned char boot_to_upper(unsigned char c)
     139static inline unsigned char boot_to_upper( unsigned char c )
    141140{
    142141    return ((c >= 'a') && (c <= 'z')) ? (c & ~(0x20)) : c;
    143 
    144142} // boot_to_upper()
    145143
Note: See TracChangeset for help on using the changeset viewer.