-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to c-library, ported libpng + zlib
- Loading branch information
1 parent
4919322
commit 40a667e
Showing
36 changed files
with
7,963 additions
and
4,707 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,3 +216,4 @@ pip-log.txt | |
|
||
#Mr Developer | ||
.mr.developer.cfg | ||
*.cod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,55 @@ | ||
/* Saves registers & stack pointer & ip | ||
* | ||
*/ | ||
/* MollenOS | ||
* | ||
* Copyright 2011 - 2016, Philip Meulengracht | ||
* | ||
* This program is free software : you can redistribute it and / or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation ? , either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program.If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
* | ||
* MollenOS C Library - SetJmp & LongJmp | ||
*/ | ||
|
||
#ifndef __SETJMP_INC__ | ||
#define __SETJMP_INC__ | ||
|
||
//Includes | ||
/* Includes */ | ||
#include <crtdefs.h> | ||
#include <stdint.h> | ||
|
||
//Defines | ||
#define _JBLEN 16 | ||
/* Definitions */ | ||
#define _JBLEN 24 | ||
#define _JBTYPE int | ||
typedef _JBTYPE jmp_buf[_JBLEN]; | ||
|
||
/* C++ Guard */ | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
//Functions | ||
extern int setjmp(jmp_buf env); | ||
extern void longjmp(jmp_buf env, int value); | ||
/* Prototypes */ | ||
|
||
/* The save in time -> jump */ | ||
_CRT_EXTERN int _setjmp(jmp_buf env); | ||
_CRT_EXTERN int _setjmp3(jmp_buf env, int nb_args, ...); | ||
|
||
/* Shorthand */ | ||
#define setjmp(env) _setjmp(env) | ||
|
||
/* Restore time-state -> jmp */ | ||
_CRT_EXTERN void longjmp(jmp_buf env, int value); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif | ||
#endif //!__SETJMP_INC__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.