Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Reduce RAM usage by reducing jmp_buf stack to 2 #1475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
Loading
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 src/Platforms/C2000/UtestPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ extern "C" {
#undef far
#include "CppUTest/PlatformSpecificFunctions.h"

static jmp_buf test_exit_jmp_buf[10];
static jmp_buf test_exit_jmp_buf[2];
static int jmp_buf_index = 0;

#if USE_BUFFER_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Platforms/Dos/UtestPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

#include "CppUTest/PlatformSpecificFunctions.h"

static jmp_buf test_exit_jmp_buf[10];
static jmp_buf test_exit_jmp_buf[2];
static int jmp_buf_index = 0;

TestOutput::WorkingEnvironment PlatformSpecificGetWorkingEnvironment()
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Platforms/Gcc/UtestPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

#include "CppUTest/PlatformSpecificFunctions.h"

static jmp_buf test_exit_jmp_buf[10];
static jmp_buf test_exit_jmp_buf[2];
static int jmp_buf_index = 0;

// There is a possibility that a compiler provides fork but not waitpid.
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Platforms/Iar/UtestPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#undef strndup
#include "CppUTest/PlatformSpecificFunctions.h"

static jmp_buf test_exit_jmp_buf[10];
static jmp_buf test_exit_jmp_buf[2];
static int jmp_buf_index = 0;

TestOutput::WorkingEnvironment PlatformSpecificGetWorkingEnvironment()
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Platforms/Keil/UtestPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

#include "CppUTest/PlatformSpecificFunctions.h"

static jmp_buf test_exit_jmp_buf[10];
static jmp_buf test_exit_jmp_buf[2];
static int jmp_buf_index = 0;

TestOutput::WorkingEnvironment PlatformSpecificGetWorkingEnvironment()
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Platforms/Symbian/UtestPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <stdlib.h>
#include "CppUTest/PlatformSpecificFunctions.h"

static jmp_buf test_exit_jmp_buf[10];
static jmp_buf test_exit_jmp_buf[2];
static int jmp_buf_index = 0;

int PlatformSpecificSetJmp(void (*function) (void* data), void* data)
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Platforms/VisualCpp/UtestPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#define LOCALTIME(_tm, timer) memcpy(_tm, localtime(timer), sizeof(tm));
#endif

static jmp_buf test_exit_jmp_buf[10];
static jmp_buf test_exit_jmp_buf[2];
static int jmp_buf_index = 0;

static int VisualCppSetJmp(void (*function) (void* data), void* data)
Expand Down
2 changes: 1 addition & 1 deletion 2 src/Platforms/armcc/UtestPlatform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

#include "CppUTest/PlatformSpecificFunctions.h"

static jmp_buf test_exit_jmp_buf[10];
static jmp_buf test_exit_jmp_buf[2];
static int jmp_buf_index = 0;

TestOutput::WorkingEnvironment PlatformSpecificGetWorkingEnvironment()
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.