From c7fd28a4389801466c7b3bbf876cf0bed491c83e Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Thu, 9 Dec 2021 14:57:45 -0800 Subject: [PATCH] Removed unused (and unimplemented) stackcheck() and stackoverflow() routines These routines were stubs that did nothing and were not called from anywhere so lack value in even providing a template or hook for a fuller implementation. Also note that "stackcheck" conflicts with a predefined symbol in some runtime libraries. Should these be implemented in the future they should use a maiko-specific name. --- inc/commondefs.h | 2 -- src/common.c | 36 ------------------------------------ 2 files changed, 38 deletions(-) diff --git a/inc/commondefs.h b/inc/commondefs.h index aab3035..20ba38e 100644 --- a/inc/commondefs.h +++ b/inc/commondefs.h @@ -3,6 +3,4 @@ void stab(void); void warn(const char *s); int error(const char *s); -int stackcheck(void); -void stackoverflow(void); #endif diff --git a/src/common.c b/src/common.c index 486bcce..94d85be 100644 --- a/src/common.c +++ b/src/common.c @@ -141,39 +141,3 @@ uraidloop: void warn(const char *s) { printf("\nWARN: %s \n", s); } - -/***************************************************************** -stackcheck - - common sub-routine. - - Not Implemented. - - 1.check Stack overflow. - (check CurrentStackPTR) - 2.if overflow, return T (not 0). - Otherwise, return F (0). -******************************************************************/ -int stackcheck() { -#ifdef TRACE2 - printf("TRACE:stackcheck()\n"); -#endif - return (0); -} - -/***************************************************************** -stackoverflow - - common sub-routine. - - Not Implemented. - - 1.error handling of stack overflow. -******************************************************************/ - -void stackoverflow() { -#ifdef TRACE2 - printf("TRACE:stackoverflow()\n"); -#endif - printf("stackoverflow \n"); -}