From 0d32dec9b39858e8f6d4325bf382b84facdca336 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sat, 31 May 2003 06:43:27 +0000 Subject: [PATCH] Now uses UIFC32. --- src/sbbs3/umonitor/GNUmakefile | 13 ++++++++++++- src/sbbs3/umonitor/umonitor.c | 4 ++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/sbbs3/umonitor/GNUmakefile b/src/sbbs3/umonitor/GNUmakefile index be86d3eac6..f82273b693 100644 --- a/src/sbbs3/umonitor/GNUmakefile +++ b/src/sbbs3/umonitor/GNUmakefile @@ -13,6 +13,9 @@ # $Id$ +#USE_CURSES := 1 #Use old curses UIFC implementation +USE_UIFC32 := 1 # Use new uifc32 implementation + # Macros ifndef RELEASE ifndef DEBUG @@ -89,7 +92,6 @@ vpath %.cpp $(SBBS3) OBJS := $(LIBODIR)/filewrap.o \ $(LIBODIR)/chat.o \ - $(LIBODIR)/uifcc.o \ $(LIBODIR)/sockwrap.o \ $(LIBODIR)/dirwrap.o \ $(LIBODIR)/genwrap.o \ @@ -111,6 +113,15 @@ OBJS := $(LIBODIR)/filewrap.o \ $(LIBODIR)/getmail.o \ $(LIBODIR)/umonitor.o +ifdef USE_CURSES + OBJS += $(LIBODIR)/uifcc.o +endif + +ifdef USE_UIFC32 + OBJS += $(LIBODIR)/uifc32.o \ + $(LIBODIR)/ciowrap.o +endif + all: $(LIBODIR) $(BUILD_DEPENDS)$(EXEODIR)/umonitor FORCE$(EXEODIR)/umonitor: $(EXEODIR) $(OBJS) $(BUILD_DEPENDS) diff --git a/src/sbbs3/umonitor/umonitor.c b/src/sbbs3/umonitor/umonitor.c index 169e9ed6c6..14fa5ad42b 100644 --- a/src/sbbs3/umonitor/umonitor.c +++ b/src/sbbs3/umonitor/umonitor.c @@ -500,7 +500,11 @@ int main(int argc, char** argv) { signal(SIGPIPE, SIG_IGN); uifc.size=sizeof(uifc); +#ifdef USE_CURSES i=uifcinic(&uifc); /* curses */ +#else + i=uifcini32(&uifc); /* curses */ +#endif if(i!=0) { printf("uifc library init returned error %d\n",i); exit(1); -- GitLab