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


Ignore:
Timestamp:
2019-02-03T14:56:13Z (6 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:
8f99dbf
Parents:
a5c78a18
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-03 14:49:38)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-03 14:56:13)
Message:

Rename setjmp/longjmp to context_save/context_restore

Once upon a time, I renamed context_save/context_restore to
setjmp/longjmp with the reasoning that they are almost
the same as setjmp/longjmp. I never got rid of the "almost",
so it ended up being somewhat confusing.
This is just a late correction of the old change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/setjmp.h

    ra5c78a18 rb4f1171  
    4343typedef __context_t jmp_buf[1];
    4444
    45 extern int __setjmp(jmp_buf) __attribute__((returns_twice));
    46 extern __noreturn void __longjmp(jmp_buf, int);
     45extern int __context_save(__context_t *) __attribute__((returns_twice));
     46extern __noreturn void __context_restore(__context_t *, int);
    4747
    48 #define setjmp __setjmp
     48#define setjmp __context_save
    4949extern __noreturn void longjmp(jmp_buf, int);
    5050
Note: See TracChangeset for help on using the changeset viewer.