From a3f3775c0a3a2509f679583c6a7adcb1ea3b740f Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Tue, 22 Oct 2024 10:06:10 -0700 Subject: [PATCH] Add missing includes and include file if compiling with COLOR defined. File rawcolordefs.h was completely missing. Both llcolordefs.h and rawcolordefs.h must be included in subr.c if -DCOLOR Make newColorizeFont8() local to rawcolor.c --- inc/rawcolordefs.h | 8 ++++++++ src/rawcolor.c | 2 +- src/subr.c | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 inc/rawcolordefs.h diff --git a/inc/rawcolordefs.h b/inc/rawcolordefs.h new file mode 100644 index 0000000..8c8d2c0 --- /dev/null +++ b/inc/rawcolordefs.h @@ -0,0 +1,8 @@ +#ifndef RAWCOLORDEFS_H +#define RAWCOLORDEFS_H 1 +#include "lispemul.h" /* for LispPTR */ +void C_slowbltchar(LispPTR *args); +LispPTR Colorize_Bitmap(LispPTR args[]); +void Draw_8BppColorLine(LispPTR *args); +void Uncolorize_Bitmap(LispPTR args[]); +#endif diff --git a/src/rawcolor.c b/src/rawcolor.c index 8bb35a1..2850e7d 100644 --- a/src/rawcolor.c +++ b/src/rawcolor.c @@ -419,7 +419,7 @@ loop: /* */ /************************************************************************/ -void newColorizeFont8(PILOTBBT *pbt, u_char backcolor, u_char forecolor, LispPTR srctype, LispPTR ope) +static void newColorizeFont8(PILOTBBT *pbt, u_char backcolor, u_char forecolor, LispPTR srctype, LispPTR ope) { DLword *nbase; u_char *dbase; diff --git a/src/subr.c b/src/subr.c index 8a3b931..f1153b0 100644 --- a/src/subr.c +++ b/src/subr.c @@ -64,6 +64,11 @@ #include "uutilsdefs.h" // for suspend_lisp, check_unix_password, unix_fu... #include "vmemsavedefs.h" // for lisp_finish, vmem_save0 +#ifdef COLOR +#include "rawcolordefs.h" +#include "llcolordefs.h" +#endif + extern LispPTR *PENDINGINTERRUPT68k; /***********************************************************/