From 03e230cc54103d18e9c8a18208c7d27805400a71 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Wed, 15 Dec 1999 21:29:55 +0000 Subject: manual:9047 --- Src/makepro.awk | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Src/makepro.awk') diff --git a/Src/makepro.awk b/Src/makepro.awk index eb063f092..350b2f9c8 100644 --- a/Src/makepro.awk +++ b/Src/makepro.awk @@ -109,6 +109,15 @@ BEGIN { gsub(/@>/, ")", dcltor) gsub(/@!/, ",", dcltor) + # If this is a module boot/cleanup function, conditionally rename it. + if(" " dtype " " ~ / int / && dcltor ~ / *@\+(boot|cleanup|setup|finish)_[_0-9A-Za-z]+@- *_\(\( *Module +[_0-9A-Za-z]+ *\)\) */) { + modtype = dnam + sub(/_.*$/, "", modtype) + printf "%s# if defined(DYNAMIC_NAME_CLASH_OK) && defined(MODULE)\n", locality + printf "%s# define " dnam " " modtype "_\n", locality + printf "%s# endif\n", locality + } + # If this is exported, add it to the exported symbol list. if(exported) printf "X%s\n", dnam -- cgit 1.4.1