From 78943073c388acf477c028ccaea07b08b2d9b3c2 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 9 Feb 2021 10:11:31 +0700 Subject: [PATCH] Favor C99 inline over __inline__. (#337) --- inc/my.h | 2 +- src/allocmds.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/inc/my.h b/inc/my.h index 94c5d03..3da8c4d 100644 --- a/inc/my.h +++ b/inc/my.h @@ -69,7 +69,7 @@ } \ } -__inline__ static LispPTR +static inline LispPTR aref_switch(int type, LispPTR tos, LispPTR baseL, int index) { LispPTR result; diff --git a/src/allocmds.c b/src/allocmds.c index 43db4d3..a5b6174 100644 --- a/src/allocmds.c +++ b/src/allocmds.c @@ -50,9 +50,7 @@ /* */ /************************************************************************/ /* I consider that there is no case the variable named \GCDISABLED is set to T */ -/* #define Make_MDSentry(page,pattern) GETWORD((DLword *)MDStypetbl+(page>>1)) = (DLword)pattern */ - -static void __inline__ Make_MDSentry(UNSIGNED page, DLword pattern) { +static inline void Make_MDSentry(UNSIGNED page, DLword pattern) { GETWORD((DLword *)MDStypetbl + (page >> 1)) = (DLword)pattern; }