Changeset 55f068c in mainline for uspace/lib/c/generic/context.c


Ignore:
Timestamp:
2018-03-11T17:15:15Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
12ae6d8
Parents:
615e83d
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-11 17:07:39)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-11 17:15:15)
Message:

Rename setjmp function to setjmp, use _Noreturn instead of attribute((noreturn)), minor comment changes.

Renaming for consistency with longjmp, and to better express that the implementation
of
setjmp has additional properties not defined by the C standard.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/context.c

    r615e83d r55f068c  
    4343void context_swap(context_t *self, context_t *other)
    4444{
    45         if (!setjmp(self))
     45        if (!__setjmp(self))
    4646                __longjmp(other, 1);
    4747}
     
    4949void context_create(context_t *context, const context_create_t *arg)
    5050{
    51         setjmp(context);
     51        __setjmp(context);
    5252        context_set(context, FADDR(arg->fn), arg->stack_base,
    5353            arg->stack_size, arg->tls);
Note: See TracChangeset for help on using the changeset viewer.