1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-07 06:43:00 +03:00

2000-03-22 Roland McGrath <roland@baalperazim.frob.com>

* include/shlib-compat.h (SHLIB_COMPAT): Take a third argument,
	indicating the first version set to obsolete the conditionalized code.
	* scripts/abi-versions.awk: For subsumed versions, make ABI_* defn's
	rhs be the ABI_* macro for the subsuming version.  Assign increasing
	integer values to the ABI_* macros for supported versions.
This commit is contained in:
Roland McGrath
2000-03-22 05:43:53 +00:00
parent 62ecda3d7c
commit cb832354c3
2 changed files with 28 additions and 15 deletions

View File

@@ -11,6 +11,7 @@ NF == 2 && $2 == "{" {
thislib = $1;
gsub(/[^A-Za-z0-9_ ]/, "_"); libid = $1;
printf "\n/* start %s */\n", thislib;
n = 0;
next;
}
$1 == "}" {
@@ -19,18 +20,22 @@ $1 == "}" {
}
$2 == "=" {
new = $3;
gsub(/[^A-Za-z0-9_ ]/, "_"); id = $1;
printf "#define ABI_%s_%s\t0\t/* earliest supported %s */\n", libid, id, new;
printf "#define VERSION_%s_%s\t%s\n", libid, id, new;
old = $1; new = $3;
gsub(/[^A-Za-z0-9_ ]/, "_");
oldid = $1; newid = $3;
printf "#define ABI_%s_%s\tABI_%s_%s\n", libid, oldid, libid, newid;
printf "#define VERSION_%s_%s\t%s\n", libid, oldid, new;
next;
}
{
vers = $1;
gsub(/[^A-Za-z0-9_ ]/, "_"); id = $1;
printf "#define ABI_%s_%s\t1\t/* support %s */\n", libid, id, vers;
printf "#define VERSION_%s_%s\t%s\n", libid, id, vers;
gsub(/[^A-Za-z0-9_ ]/, "_");
versid = $1;
printf "#define ABI_%s_%s\t%d\t/* support %s */\n", libid, versid, ++n, vers;
printf "#define VERSION_%s_%s\t%s\n", libid, versid, vers;
next;
}