Changeset 89ac5513 in mainline for kernel/generic/src/main/main.c


Ignore:
Timestamp:
2013-06-23T19:54:53Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ddb1922
Parents:
3abf0760 (diff), 96cbd18 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/main/main.c

    r3abf0760 r89ac5513  
    8989#include <lib/ra.h>
    9090
     91/* Ensure [u]int*_t types are of correct size.
     92 *
     93 * Probably, this is not the best place for such tests
     94 * but this file is compiled on all architectures.
     95 */
     96#define CHECK_INT_TYPE_(signness, size) \
     97        STATIC_ASSERT_VERBOSE(sizeof(signness##size##_t) * 8 == size, \
     98            #signness #size "_t does not have " #size " bits");
     99
     100#define CHECK_INT_TYPE(size) \
     101        CHECK_INT_TYPE_(int, size); \
     102        CHECK_INT_TYPE_(uint, size)
     103
     104CHECK_INT_TYPE(8);
     105CHECK_INT_TYPE(16);
     106CHECK_INT_TYPE(32);
     107CHECK_INT_TYPE(64);
     108
    91109/** Global configuration structure. */
    92110config_t config = {
Note: See TracChangeset for help on using the changeset viewer.