From 99550aaa7cfbe7bb93ff3051f707e27382d57b4f Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Wed, 6 Nov 2024 13:31:46 -0800 Subject: [PATCH] Renames return.h to retmacro.h and updates all uses --- CMakeLists.txt | 2 +- bin/makefile-dos | 4 ++-- bin/makefile-tail | 14 +++++++------- inc/{return.h => retmacro.h} | 8 ++++---- src/bbtsub.c | 2 +- src/hardrtn.c | 2 +- src/llstk.c | 2 +- src/main.c | 2 +- src/return.c | 2 +- src/xc.c | 2 +- 10 files changed, 20 insertions(+), 20 deletions(-) rename inc/{return.h => retmacro.h} (97%) diff --git a/CMakeLists.txt b/CMakeLists.txt index 555525a..fabeb4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -400,8 +400,8 @@ SET(MAIKO_HDRS inc/pilotbbt.h inc/print.h inc/rawrs232c.h + inc/retmacro.h inc/returndefs.h - inc/return.h inc/rpcdefs.h inc/rplconsdefs.h inc/rs232c.h diff --git a/bin/makefile-dos b/bin/makefile-dos index 270b3e7..176e8f3 100644 --- a/bin/makefile-dos +++ b/bin/makefile-dos @@ -18,7 +18,7 @@ SRCFILES = conspage.c gcoflow.c shift.c dbgtool.c gcr.c gcrcell.c llstk. OFILES = conspage.obj gcoflow.obj shift.obj dbgtool.obj gcr.obj gcrcell.obj llstk.obj gcscan.obj loopsops.obj storage.obj allocmds.obj dir.obj gvar2.obj lowlev1.obj subr.obj arithops.obj lowlev2.obj subr0374.obj doscomm.obj hardrtn.obj lsthandl.obj sxhash.obj draw.obj main.obj testtool.obj array.obj dsk.obj inet.obj misc7.obj timer.obj array2.obj dspif.obj initdsp.obj miscn.obj typeof.obj array3.obj initkbd.obj ubf1.obj array4.obj dspsubrs.obj initsout.obj mkatom.obj ubf2.obj array5.obj eqf.obj intcall.obj mkcell.obj ubf3.obj array6.obj ether.obj ufn.obj atom.obj findkey.obj kbdsubrs.obj mouseif.obj ufs.obj bbtsub.obj foreign.obj keyevent.obj unixcomm.obj bin.obj fp.obj binds.obj fvar.obj mvs.obj unwind.obj bitblt.obj gc.obj uraid.obj blt.obj gc2.obj kprint.obj osmsg.obj usrsubr.obj byteswap.obj gcarray.obj perrno.obj uutils.obj carcdr.obj asmbbt.obj gccode.obj vars3.obj gcfinal.obj ldsout.obj return.obj vmemsave.obj chardev.obj gchtfind.obj lineblt8.obj rpc.obj xc.obj common.obj gcmain3.obj lisp2c.obj rplcons.obj z2.obj vdate.obj $(COLORFILES) $(ARCHFILES) $(LPFILES) -HFILES = address.h adr68k.h arithopsdefs.h arith.h cell.h dbprint.h display.h dspif.h ifpage.h iopage.h lispemul.h lispmap.h lsptypes.h miscstat.h lspglob.h array.h bb.h bitblt.h debug.h devconf.h dspdata.h fast_dsp.h gcdata.h initatms.h inlinec.h keyboard.h lispver1.h lispver2.h lldsp.h locfile.h medleyfp.h mouseif.h my.h opcodes.h osmsgprint.h pilotbbt.h print.h return.h stack.h stream.h subrs.h timeout.h tos1defs.h tosfns.h tosret.h xdefs.h xbitmaps.h xkeymap.h +HFILES = address.h adr68k.h arithopsdefs.h arith.h cell.h dbprint.h display.h dspif.h ifpage.h iopage.h lispemul.h lispmap.h lsptypes.h miscstat.h lspglob.h array.h bb.h bitblt.h debug.h devconf.h dspdata.h fast_dsp.h gcdata.h initatms.h inlinec.h keyboard.h lispver1.h lispver2.h lldsp.h locfile.h medleyfp.h mouseif.h my.h opcodes.h osmsgprint.h pilotbbt.h print.h retmacro.h stack.h stream.h subrs.h timeout.h tos1defs.h tosfns.h tosret.h xdefs.h xbitmaps.h xkeymap.h @@ -35,7 +35,7 @@ emul.exe : $(OFILES) del copts @ echo "Executable is now named '$@'" -main.o : lispemul.h address.h lsptypes.h adr68k.h stack.h lspglob.h lispmap.h ifpage.h iopage.h return.h debug.h +main.o : lispemul.h address.h lsptypes.h adr68k.h stack.h lspglob.h lispmap.h ifpage.h iopage.h retmacro.h debug.h diff --git a/bin/makefile-tail b/bin/makefile-tail index 2d4ded9..b1ac3bb 100644 --- a/bin/makefile-tail +++ b/bin/makefile-tail @@ -192,7 +192,7 @@ $(OBJECTDIR)ldeether.o: $(SRCDIR)ldeether.c $(REQUIRED-INCS) $(OBJECTDIR)main.o: $(SRCDIR)main.c $(REQUIRED-INCS) \ $(INCDIR)lispemul.h $(INCDIR)dbprint.h \ $(INCDIR)emlglob.h $(INCDIR)address.h $(INCDIR)adr68k.h $(INCDIR)stack.h \ - $(INCDIR)return.h $(INCDIR)lspglob.h $(INCDIR)ifpage.h $(INCDIR)iopage.h \ + $(INCDIR)retmacro.h $(INCDIR)lspglob.h $(INCDIR)ifpage.h $(INCDIR)iopage.h \ $(INCDIR)miscstat.h $(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)debug.h \ $(INCDIR)timeout.h $(INCDIR)maindefs.h $(INCDIR)commondefs.h \ $(INCDIR)dirdefs.h $(INCDIR)dspifdefs.h $(INCDIR)devif.h \ @@ -308,7 +308,7 @@ $(OBJECTDIR)bbtsub.o: $(SRCDIR)bbtsub.c $(REQUIRED-INCS) \ $(INCDIR)xdefs.h $(INCDIR)lispemul.h $(INCDIR)lspglob.h $(INCDIR)ifpage.h \ $(INCDIR)iopage.h $(INCDIR)miscstat.h $(INCDIR)lispmap.h $(INCDIR)lsptypes.h \ $(INCDIR)emlglob.h $(INCDIR)adr68k.h $(INCDIR)address.h $(INCDIR)arith.h \ - $(INCDIR)stack.h $(INCDIR)return.h $(INCDIR)cell.h $(INCDIR)gcdata.h \ + $(INCDIR)stack.h $(INCDIR)retmacro.h $(INCDIR)cell.h $(INCDIR)gcdata.h \ $(INCDIR)bbtsubdefs.h $(INCDIR)car-cdrdefs.h $(INCDIR)commondefs.h \ $(INCDIR)gcarraydefs.h $(INCDIR)initdspdefs.h $(INCDIR)kprintdefs.h \ $(INCDIR)llstkdefs.h $(INCDIR)returndefs.h $(INCDIR)bb.h $(INCDIR)bitblt.h \ @@ -423,7 +423,7 @@ $(OBJECTDIR)fp.o: $(SRCDIR)fp.c $(REQUIRED-INCS) \ $(OBJECTDIR)intcall.o: $(SRCDIR)intcall.c $(REQUIRED-INCS) \ $(INCDIR)lispemul.h $(INCDIR)address.h \ $(INCDIR)adr68k.h $(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)stack.h \ - $(INCDIR)return.h $(INCDIR)emlglob.h $(INCDIR)lspglob.h $(INCDIR)ifpage.h \ + $(INCDIR)retmacro.h $(INCDIR)emlglob.h $(INCDIR)lspglob.h $(INCDIR)ifpage.h \ $(INCDIR)iopage.h $(INCDIR)miscstat.h $(INCDIR)initatms.h $(INCDIR)cell.h \ $(INCDIR)tosfns.h $(INCDIR)intcalldefs.h $(INCDIR)commondefs.h \ $(INCDIR)llstkdefs.h $(INCDIR)returndefs.h @@ -632,7 +632,7 @@ $(OBJECTDIR)hardrtn.o: $(SRCDIR)hardrtn.c $(REQUIRED-INCS) \ $(INCDIR)lispemul.h $(INCDIR)lispmap.h \ $(INCDIR)lsptypes.h $(INCDIR)adr68k.h $(INCDIR)address.h $(INCDIR)lspglob.h \ $(INCDIR)ifpage.h $(INCDIR)iopage.h $(INCDIR)miscstat.h $(INCDIR)emlglob.h \ - $(INCDIR)cell.h $(INCDIR)stack.h $(INCDIR)return.h $(INCDIR)hardrtndefs.h \ + $(INCDIR)cell.h $(INCDIR)stack.h $(INCDIR)retmacro.h $(INCDIR)hardrtndefs.h \ $(INCDIR)commondefs.h $(INCDIR)llstkdefs.h $(CC) $(RFLAGS) $(SRCDIR)hardrtn.c -o $(OBJECTDIR)hardrtn.o @@ -698,7 +698,7 @@ $(OBJECTDIR)llstk.o: $(SRCDIR)llstk.c $(REQUIRED-INCS) \ $(INCDIR)lispemul.h $(INCDIR)lispmap.h \ $(INCDIR)adr68k.h $(INCDIR)address.h $(INCDIR)lsptypes.h $(INCDIR)initatms.h \ $(INCDIR)lspglob.h $(INCDIR)ifpage.h $(INCDIR)iopage.h $(INCDIR)miscstat.h \ - $(INCDIR)emlglob.h $(INCDIR)cell.h $(INCDIR)stack.h $(INCDIR)return.h \ + $(INCDIR)emlglob.h $(INCDIR)cell.h $(INCDIR)stack.h $(INCDIR)retmacro.h \ $(INCDIR)llstkdefs.h $(INCDIR)commondefs.h $(INCDIR)dbgtooldefs.h \ $(INCDIR)testtooldefs.h $(INCDIR)kprintdefs.h $(INCDIR)storagedefs.h $(CC) $(RFLAGS) $(SRCDIR)llstk.c -o $(OBJECTDIR)llstk.o @@ -766,7 +766,7 @@ $(OBJECTDIR)return.o: $(SRCDIR)return.c $(REQUIRED-INCS) \ $(INCDIR)lispemul.h $(INCDIR)address.h \ $(INCDIR)adr68k.h $(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)stack.h \ $(INCDIR)emlglob.h $(INCDIR)lspglob.h $(INCDIR)ifpage.h $(INCDIR)iopage.h \ - $(INCDIR)miscstat.h $(INCDIR)initatms.h $(INCDIR)cell.h $(INCDIR)return.h \ + $(INCDIR)miscstat.h $(INCDIR)initatms.h $(INCDIR)cell.h $(INCDIR)retmacro.h \ $(INCDIR)returndefs.h $(INCDIR)commondefs.h $(CC) $(RFLAGS) $(SRCDIR)return.c -o $(OBJECTDIR)return.o @@ -929,7 +929,7 @@ $(OBJECTDIR)usrsubr.o: $(SRCDIR)usrsubr.c $(REQUIRED-INCS) \ $(OBJECTDIR)xc.o: $(SRCDIR)xc.c $(REQUIRED-INCS) \ $(INCDIR)lispemul.h $(INCDIR)emlglob.h \ - $(INCDIR)address.h $(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)return.h \ + $(INCDIR)address.h $(INCDIR)adr68k.h $(INCDIR)stack.h $(INCDIR)retmacro.h \ $(INCDIR)dbprint.h $(INCDIR)lspglob.h $(INCDIR)ifpage.h $(INCDIR)iopage.h \ $(INCDIR)miscstat.h $(INCDIR)lsptypes.h $(INCDIR)lispmap.h $(INCDIR)cell.h \ $(INCDIR)initatms.h $(INCDIR)gcdata.h $(INCDIR)arith.h $(INCDIR)stream.h \ diff --git a/inc/return.h b/inc/retmacro.h similarity index 97% rename from inc/return.h rename to inc/retmacro.h index e493032..6332a2b 100644 --- a/inc/return.h +++ b/inc/retmacro.h @@ -1,12 +1,12 @@ -#ifndef RETURN_H -#define RETURN_H 1 +#ifndef RETMACRO_H +#define RETMACRO_H 1 /* $Id: return.h,v 1.2 1999/01/03 02:06:22 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */ /**************************************************************/ /* - File Name : return.h + File Name : retmacro.h (was return.h) Desc. : Macros for return,contextsw Written by : Takeshi Shimizu @@ -111,4 +111,4 @@ S_CHECK( EndSTKP > CurrentStackPTR, \ "End of stack isn't beyond current stk pointer."); \ } while (0) -#endif /* RETURN_H */ +#endif /* RETMACRO_H */ diff --git a/src/bbtsub.c b/src/bbtsub.c index d1a2232..9e92e9e 100644 --- a/src/bbtsub.c +++ b/src/bbtsub.c @@ -47,7 +47,7 @@ #include "address.h" #include "arith.h" #include "stack.h" -#include "return.h" +#include "retmacro.h" #include "cell.h" #include "bbtsubdefs.h" diff --git a/src/hardrtn.c b/src/hardrtn.c index d4b88e0..0f57cbf 100644 --- a/src/hardrtn.c +++ b/src/hardrtn.c @@ -32,7 +32,7 @@ #include "llstkdefs.h" // for decusecount68k, freestackblock, blt, stack_... #include "lspglob.h" #include "lsptypes.h" // for GETWORD -#include "return.h" // for AFTER_CONTEXTSW, BEFORE_CONTEXTSW, FastRetCALL +#include "retmacro.h" // for AFTER_CONTEXTSW, BEFORE_CONTEXTSW, FastRetCALL #include "stack.h" // for FX, frameex1, Bframe, CHECK_FX, StackWord #define MAKE_FXCOPY(fx68k) \ diff --git a/src/llstk.c b/src/llstk.c index faf5d9d..89f79d7 100644 --- a/src/llstk.c +++ b/src/llstk.c @@ -33,7 +33,7 @@ #include "llstkdefs.h" // for blt, check_BF, check_FX, check_stack_rooms #include "lspglob.h" // for InterfacePage, Stackspace, STACKOVERFLOW_word #include "lsptypes.h" // for GETWORD -#include "return.h" // for AFTER_CONTEXTSW, BEFORE_CONTEXTSW +#include "retmacro.h" // for AFTER_CONTEXTSW, BEFORE_CONTEXTSW #include "stack.h" // for StackWord, Bframe, FX, frameex1, STKWORD #include "storagedefs.h" // for newpage // #include "testtooldefs.h" // for print_atomname diff --git a/src/main.c b/src/main.c index eb9bceb..eae2541 100644 --- a/src/main.c +++ b/src/main.c @@ -40,7 +40,7 @@ #include "emlglob.h" #include "adr68k.h" #include "stack.h" -#include "return.h" +#include "retmacro.h" #include "lispemul.h" #include "lspglob.h" diff --git a/src/return.c b/src/return.c index fe87cf6..016c75a 100644 --- a/src/return.c +++ b/src/return.c @@ -38,7 +38,7 @@ #include "lspglob.h" #include "initatms.h" #include "cell.h" -#include "return.h" +#include "retmacro.h" #include "testtooldefs.h" #include "returndefs.h" #include "commondefs.h" diff --git a/src/xc.c b/src/xc.c index 907b16b..52748a9 100644 --- a/src/xc.c +++ b/src/xc.c @@ -41,7 +41,7 @@ #include "address.h" #include "adr68k.h" #include "stack.h" -#include "return.h" +#include "retmacro.h" #include "dbprint.h" #include "lspglob.h"