* export with the case provided in the exports section

This commit is contained in:
peter 2000-12-30 22:53:25 +00:00
parent eefd0bc765
commit 350a364890
4 changed files with 25 additions and 23 deletions

View File

@ -54,6 +54,7 @@ implementation
procedure read_exports; procedure read_exports;
var var
hp : texported_item; hp : texported_item;
orgs,
DefString : string; DefString : string;
ProcName : string; ProcName : string;
InternalProcName : string; InternalProcName : string;
@ -74,6 +75,7 @@ implementation
consume(_POINT); consume(_POINT);
getsymonlyin(punitsym(srsym)^.unitsymtable,pattern); getsymonlyin(punitsym(srsym)^.unitsymtable,pattern);
end; end;
orgs:=orgpattern;
consume(_ID); consume(_ID);
if assigned(srsym) then if assigned(srsym) then
begin begin
@ -87,7 +89,7 @@ implementation
Message(parser_e_illegal_symbol_exported) Message(parser_e_illegal_symbol_exported)
else else
begin begin
ProcName:=hp.sym^.name; ProcName:=orgs;
InternalProcName:=hp.sym^.mangledname; InternalProcName:=hp.sym^.mangledname;
{ This is wrong if the first is not { This is wrong if the first is not
an underline } an underline }
@ -145,6 +147,12 @@ implementation
end; end;
if (DefString<>'') and UseDeffileForExport then if (DefString<>'') and UseDeffileForExport then
DefFile.AddExport(DefString); DefFile.AddExport(DefString);
{ Default to generate a name entry with the provided name }
if not assigned(hp^.name) then
begin
hp^.name:=stringdup(orgs);
hp^.options:=hp^.options or eo_name;
end;
if hp.sym^.typ=procsym then if hp.sym^.typ=procsym then
exportlib.exportprocedure(hp) exportlib.exportprocedure(hp)
else else
@ -167,7 +175,10 @@ end.
{ {
$Log$ $Log$
Revision 1.9 2000-12-25 00:07:27 peter Revision 1.10 2000-12-30 22:53:25 peter
* export with the case provided in the exports section
Revision 1.9 2000/12/25 00:07:27 peter
+ new tlinkedlist class (merge of old tstringqueue,tcontainer and + new tlinkedlist class (merge of old tstringqueue,tcontainer and
tlinkedlist objects) tlinkedlist objects)

View File

@ -122,12 +122,6 @@ begin
Message1(parser_e_no_export_with_index_for_target,'freebsd'); Message1(parser_e_no_export_with_index_for_target,'freebsd');
exit; exit;
end; end;
{ use pascal name is none specified }
if (hp.options and eo_name)=0 then
begin
hp.name:=stringdup(hp.sym^.name);
hp.options:=hp.options or eo_name;
end;
{ now place in correct order } { now place in correct order }
hp2:=texported_item(current_module._exports.first); hp2:=texported_item(current_module._exports.first);
while assigned(hp2) and while assigned(hp2) and
@ -455,7 +449,10 @@ end;
end. end.
{ {
$Log$ $Log$
Revision 1.5 2000-12-25 00:07:30 peter Revision 1.6 2000-12-30 22:53:25 peter
* export with the case provided in the exports section
Revision 1.5 2000/12/25 00:07:30 peter
+ new tlinkedlist class (merge of old tstringqueue,tcontainer and + new tlinkedlist class (merge of old tstringqueue,tcontainer and
tlinkedlist objects) tlinkedlist objects)

View File

@ -121,12 +121,6 @@ begin
Message1(parser_e_no_export_with_index_for_target,'linux'); Message1(parser_e_no_export_with_index_for_target,'linux');
exit; exit;
end; end;
{ use pascal name is none specified }
if (hp.options and eo_name)=0 then
begin
hp.name:=stringdup(hp.sym^.name);
hp.options:=hp.options or eo_name;
end;
{ now place in correct order } { now place in correct order }
hp2:=texported_item(current_module._exports.first); hp2:=texported_item(current_module._exports.first);
while assigned(hp2) and while assigned(hp2) and
@ -453,7 +447,10 @@ end;
end. end.
{ {
$Log$ $Log$
Revision 1.9 2000-12-25 00:07:30 peter Revision 1.10 2000-12-30 22:53:25 peter
* export with the case provided in the exports section
Revision 1.9 2000/12/25 00:07:30 peter
+ new tlinkedlist class (merge of old tstringqueue,tcontainer and + new tlinkedlist class (merge of old tstringqueue,tcontainer and
tlinkedlist objects) tlinkedlist objects)

View File

@ -427,12 +427,6 @@ implementation
inc(last_index); inc(last_index);
hp.index:=last_index; hp.index:=last_index;
end; end;
{ use pascal name is none specified }
if (hp.options and eo_name)=0 then
begin
hp.name:=stringdup(hp.sym^.name);
hp.options:=hp.options or eo_name;
end;
{ now place in correct order } { now place in correct order }
hp2:=texported_item(current_module._exports.first); hp2:=texported_item(current_module._exports.first);
while assigned(hp2) and while assigned(hp2) and
@ -1303,7 +1297,10 @@ end;
end. end.
{ {
$Log$ $Log$
Revision 1.7 2000-12-25 00:07:30 peter Revision 1.8 2000-12-30 22:53:25 peter
* export with the case provided in the exports section
Revision 1.7 2000/12/25 00:07:30 peter
+ new tlinkedlist class (merge of old tstringqueue,tcontainer and + new tlinkedlist class (merge of old tstringqueue,tcontainer and
tlinkedlist objects) tlinkedlist objects)