Changeset 8c193d83 in mainline for uspace/lib/c/generic/rtld/symbol.c


Ignore:
Timestamp:
2019-02-23T17:47:52Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
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:47:52)
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
  • uspace/lib/c/generic/rtld/symbol.c

    rab87db5 r8c193d83  
    262262void *symbol_get_addr(elf_symbol_t *sym, module_t *m, tcb_t *tcb)
    263263{
    264         if (ELF_ST_TYPE(sym->st_info) == STT_TLS) {
     264        if (elf_st_type(sym->st_info) == STT_TLS) {
    265265                if (tcb == NULL)
    266266                        return NULL;
Note: See TracChangeset for help on using the changeset viewer.