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


Ignore:
Timestamp:
2013-11-12T13:38:22Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4a3892b
Parents:
9ed3e1a
Message:

setjmp for all architectures (thx Jiri Zarevucky)

Generic solution instead of architecture-specific assembler.

File:
1 edited

Legend:

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

    r9ed3e1a ra070eff  
    11/*
    22 * Copyright (c) 2008 Josef Cejka
     3 * Copyright (c) 2013 Vojtech Horky
    34 * All rights reserved.
    45 *
     
    3637#define LIBC_SETJMP_H_
    3738
    38 #include <libarch/fibril.h>
    39 
    40 typedef context_t jmp_buf[1];
     39/*
     40 * We hide the structure to allow smooth inclusion from libposix
     41 * as no other types are necessary (and thus no includes are needed).
     42 */
     43struct jmp_buf_interal;
     44typedef struct jmp_buf_interal *jmp_buf;
    4145
    4246extern int setjmp(jmp_buf env);
Note: See TracChangeset for help on using the changeset viewer.