Changeset ca0e838 in mainline for abi/include/abi/ipc/interfaces.h


Ignore:
Timestamp:
2019-02-23T17:52:16Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
52b44c6
Parents:
ab87db5
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-11 15:28:25)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-23 17:52:16)
Message:

Convert preprocessor macros in abi/ to C constructs

Preprocessor macros are an obsolete concept and they complicate things.
They are also completely unnecessary in most circumstances.

This commit changes untyped numeric constants into anonymous enums,
typed constants into static const variables, and function-like macros
into functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abi/include/abi/ipc/interfaces.h

    rab87db5 rca0e838  
    4040#include <abi/fourcc.h>
    4141
    42 #define IFACE_EXCHANGE_MASK  0x03
    43 #define IFACE_MOD_MASK       0x04
     42enum {
     43        IFACE_EXCHANGE_MASK = 0x03,
     44        IFACE_MOD_MASK      = 0x04,
     45};
    4446
    4547/** Interface exchange management style
Note: See TracChangeset for help on using the changeset viewer.