Put local symbol suppression rule into most recent (e.g. last) version

block.

Approved by:	re (kensmith)
This commit is contained in:
Alexander Kabaev 2007-07-21 20:52:32 +00:00
parent f7c7c876de
commit 9f40824852
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171530

View File

@ -164,12 +164,14 @@ function print_version(v)
printf("global:\n");
printf("\t%s\n", symbols[v, i]);
}
if (successors[v] == "") {
# This version succeeds no other version.
version_count--;
if (version_count == 0) {
printf("local:\n");
printf("\t*;\n");
printf("};\n");
}
if (successors[v] == "")
printf("};\n");
else
printf("} %s;\n", successors[v]);
printf("\n");