Changeset ee820ff in mainline for uspace/lib/c/include/macros.h


Ignore:
Timestamp:
2018-02-22T19:39:53Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0539c14
Parents:
5fe3f954 (diff), df368491 (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 commit 'df368491aa1c0ce3024a51c602b7d0cbe4bd84d3'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/macros.h

    r5fe3f954 ree820ff  
    5555            | ((((uint64_t) (up)) & 0xffffffff) << 32))
    5656
    57 #ifndef member_to_inst
    5857#define member_to_inst(ptr_member, type, member_identif) \
    59         ((type*) (((void*)(ptr_member)) - ((void*)&(((type*)0)->member_identif))))
    60 #endif
     58        ((type *) (((void *) (ptr_member)) - \
     59            ((void *) &(((type *) 0)->member_identif))))
    6160
     61#define _paddname(line)     PADD_ ## line ## __
     62#define _padd(width, line)  uint ## width ## _t _paddname(line)
     63
     64#define PADD32  _padd(32, __LINE__)
     65#define PADD16  _padd(16, __LINE__)
     66#define PADD8   _padd(8, __LINE__)
    6267
    6368#endif
    6469
    65 #define _paddname(line) PADD_ ## line ## __
    66 #define _padd(width, line) uint ## width ## _t _paddname(line)
    67 #define PADD32 _padd(32, __LINE__)
    68 #define PADD16 _padd(16, __LINE__)
    69 #define PADD8 _padd(8, __LINE__)
    70 
    7170/** @}
    7271 */
Note: See TracChangeset for help on using the changeset viewer.