Changeset 55f068c in mainline for uspace/lib/c/include/setjmp.h


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/include/setjmp.h

    r615e83d r55f068c  
    3838typedef context_t jmp_buf[1];
    3939
    40 extern int setjmp(jmp_buf) __attribute__((returns_twice));
    41 extern void longjmp(jmp_buf, int) __attribute__((noreturn));
    42 extern void __longjmp(jmp_buf, int) __attribute__((noreturn));
     40extern int __setjmp(jmp_buf) __attribute__((returns_twice));
     41extern _Noreturn void __longjmp(jmp_buf, int);
     42
     43#define setjmp __setjmp
     44extern _Noreturn void longjmp(jmp_buf, int);
    4345
    4446#endif
Note: See TracChangeset for help on using the changeset viewer.