* use setmodulename for program/library

git-svn-id: trunk@6643 -
This commit is contained in:
peter 2007-02-25 16:24:59 +00:00
parent 9820ea04cc
commit 47d0dd487e

View File

@ -1236,10 +1236,7 @@ implementation
if islibrary then if islibrary then
begin begin
consume(_LIBRARY); consume(_LIBRARY);
stringdispose(current_module.modulename); current_module.setmodulename(orgpattern);
stringdispose(current_module.realmodulename);
current_module.modulename:=stringdup(pattern);
current_module.realmodulename:=stringdup(orgpattern);
current_module.islibrary:=true; current_module.islibrary:=true;
exportlib.preparelib(orgpattern); exportlib.preparelib(orgpattern);
@ -1254,10 +1251,7 @@ implementation
if token=_PROGRAM then if token=_PROGRAM then
begin begin
consume(_PROGRAM); consume(_PROGRAM);
stringdispose(current_module.modulename); current_module.setmodulename(orgpattern);
stringdispose(current_module.realmodulename);
current_module.modulename:=stringdup(pattern);
current_module.realmodulename:=stringdup(orgpattern);
if (target_info.system in system_unit_program_exports) then if (target_info.system in system_unit_program_exports) then
exportlib.preparelib(orgpattern); exportlib.preparelib(orgpattern);
consume(_ID); consume(_ID);