mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-12 19:49:33 +01:00
* use setmodulename for program/library
git-svn-id: trunk@6643 -
This commit is contained in:
parent
9820ea04cc
commit
47d0dd487e
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user