Changeset a5c78a18 in mainline for uspace/lib/c/arch/abs32le


Ignore:
Timestamp:
2019-02-03T14:35:44Z (7 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:
b4f1171
Parents:
67ca359
Message:

Rename context_t to context_t

<libarch/fibril_context.h> is included from <setjmp.h> where it can interfere
with identifiers used in third-party code.
The simplest solution here is just to prefix the names with double underscore
which is reserved for use by the implementation.

Location:
uspace/lib/c/arch/abs32le
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/abs32le/include/libarch/fibril_context.h

    r67ca359 ra5c78a18  
    3636 * need to be preserved across function calls.
    3737 */
    38 typedef struct context {
     38typedef struct __context {
    3939        uintptr_t sp;
    4040        uintptr_t fp;
    4141        uintptr_t pc;
    4242        uintptr_t tls;
    43 } context_t;
     43} __context_t;
    4444
    4545#endif
  • uspace/lib/c/arch/abs32le/src/fibril.c

    r67ca359 ra5c78a18  
    3333#include <stdbool.h>
    3434
    35 int __setjmp(context_t *ctx)
     35int __setjmp(__context_t *ctx)
    3636{
    3737        return 0;
    3838}
    3939
    40 void __longjmp(context_t *ctx, int val)
     40void __longjmp(__context_t *ctx, int val)
    4141{
    4242        while (true)
Note: See TracChangeset for help on using the changeset viewer.