From da57e0b7d21d71f82d85889ee6dfcdf6970fcbe1 Mon Sep 17 00:00:00 2001 From: gatecat Date: Mon, 3 Jan 2022 19:23:59 +0000 Subject: [PATCH] Remove 'inline's causing link failures Signed-off-by: gatecat --- distrib/sources/mbk/mbk_util.c | 2 +- distrib/sources/tas/tlc/tlc.c | 8 ++++---- distrib/sources/tas/tlc/tlc_lib.h | 8 ++++---- distrib/sources/yagle/genius/gen_symmetric.c | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/distrib/sources/mbk/mbk_util.c b/distrib/sources/mbk/mbk_util.c index a92d614..285c59e 100644 --- a/distrib/sources/mbk/mbk_util.c +++ b/distrib/sources/mbk/mbk_util.c @@ -1340,7 +1340,7 @@ static void NameAlloc_rehash(NameAllocator *na) // fprintf(stdout,"done\n"); } -inline char *NameAlloc_sub(NameAllocator *na, char *inputname, int find) +char *NameAlloc_sub(NameAllocator *na, char *inputname, int find) { chain_list *pt; char buffer[BUFSIZ]; diff --git a/distrib/sources/tas/tlc/tlc.c b/distrib/sources/tas/tlc/tlc.c index 227bda8..4ce95ba 100644 --- a/distrib/sources/tas/tlc/tlc.c +++ b/distrib/sources/tas/tlc/tlc.c @@ -35,24 +35,24 @@ float TLC_MINSCALE_RESIFACTOR = 1.0; float TLC_CAPAFACTOR = 1.0; float TLC_RESIFACTOR = 1.0; -inline void tlc_setmaxfactor() +void tlc_setmaxfactor() { TLC_RESIFACTOR = TLC_MAXSCALE_RESIFACTOR ; TLC_CAPAFACTOR = TLC_MAXSCALE_CAPAFACTOR ; } -inline void tlc_setminfactor() +void tlc_setminfactor() { TLC_RESIFACTOR = TLC_MINSCALE_RESIFACTOR ; TLC_CAPAFACTOR = TLC_MINSCALE_CAPAFACTOR ; } -inline float tlc_getcapafactor() +float tlc_getcapafactor() { return(TLC_CAPAFACTOR) ; } -inline float tlc_getresifactor() +float tlc_getresifactor() { return(TLC_RESIFACTOR) ; } diff --git a/distrib/sources/tas/tlc/tlc_lib.h b/distrib/sources/tas/tlc/tlc_lib.h index 718575c..ed60682 100644 --- a/distrib/sources/tas/tlc/tlc_lib.h +++ b/distrib/sources/tas/tlc/tlc_lib.h @@ -40,10 +40,10 @@ extern float TLC_MINSCALE_RESIFACTOR; /* Informations on locon */ -inline void tlc_setmaxfactor __P(( void )) ; -inline void tlc_setminfactor __P(( void )) ; -inline float tlc_getcapafactor __P(( void )) ; -inline float tlc_getresifactor __P(( void )) ; +extern void tlc_setmaxfactor __P(( void )) ; +extern void tlc_setminfactor __P(( void )) ; +extern float tlc_getcapafactor __P(( void )) ; +extern float tlc_getresifactor __P(( void )) ; extern void tlcenv __P(( void )) ; extern void tlc_mergeloconparam __P(( locon_list*, locon_list* )); extern void tlc_setloconparam __P(( locon_list*, float )); diff --git a/distrib/sources/yagle/genius/gen_symmetric.c b/distrib/sources/yagle/genius/gen_symmetric.c index c6b17e9..92a7a1c 100644 --- a/distrib/sources/yagle/genius/gen_symmetric.c +++ b/distrib/sources/yagle/genius/gen_symmetric.c @@ -51,7 +51,7 @@ int getradindex(char *name) return curradindex-1; } -inline char *fastradical(locon_list *lc) +char *fastradical(locon_list *lc) { Pnode2Radical *r; r=(Pnode2Radical *)&lc->PNODE; @@ -59,7 +59,7 @@ inline char *fastradical(locon_list *lc) return radtable[r->radindex]; } -inline int fastindex(locon_list *lc) +int fastindex(locon_list *lc) { Pnode2Radical *r; r=(Pnode2Radical *)&lc->PNODE; -- 2.30.2