mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-24 17:01:44 +02:00
* broken compilation after r39347 fixed
git-svn-id: trunk@39349 -
This commit is contained in:
parent
2406bd052e
commit
68eb921d46
@ -418,6 +418,7 @@ Implementation
|
|||||||
s: ansistring;
|
s: ansistring;
|
||||||
begin
|
begin
|
||||||
MaybeAddLinePrefix;
|
MaybeAddLinePrefix;
|
||||||
|
s:='';
|
||||||
setlength(s,len);
|
setlength(s,len);
|
||||||
move(p^,s[1],len);
|
move(p^,s[1],len);
|
||||||
AsmWriteAnsiStringUnfiltered(decorator.LineFilter(s));
|
AsmWriteAnsiStringUnfiltered(decorator.LineFilter(s));
|
||||||
|
|||||||
@ -615,6 +615,7 @@ implementation
|
|||||||
s : string;
|
s : string;
|
||||||
begin
|
begin
|
||||||
l := c-b;
|
l := c-b;
|
||||||
|
s:='';
|
||||||
if (l > 0) or AddEmptyStrings then
|
if (l > 0) or AddEmptyStrings then
|
||||||
begin
|
begin
|
||||||
setlength(s, l);
|
setlength(s, l);
|
||||||
|
|||||||
@ -495,6 +495,7 @@ end;
|
|||||||
var
|
var
|
||||||
i : longint;
|
i : longint;
|
||||||
begin
|
begin
|
||||||
|
Result:='';
|
||||||
setlength(bstoslash,length(s));
|
setlength(bstoslash,length(s));
|
||||||
for i:=1to length(s) do
|
for i:=1to length(s) do
|
||||||
if s[i]='\' then
|
if s[i]='\' then
|
||||||
|
|||||||
@ -333,6 +333,7 @@ implementation
|
|||||||
TheSize : Longint;
|
TheSize : Longint;
|
||||||
P : PByte ;
|
P : PByte ;
|
||||||
begin
|
begin
|
||||||
|
Result:='';
|
||||||
ReadBuffer (TheSize,SizeOf(TheSize));
|
ReadBuffer (TheSize,SizeOf(TheSize));
|
||||||
SetLength(Result,TheSize);
|
SetLength(Result,TheSize);
|
||||||
// Illegal typecast if no AnsiStrings defined.
|
// Illegal typecast if no AnsiStrings defined.
|
||||||
|
|||||||
@ -637,6 +637,7 @@ implementation
|
|||||||
var
|
var
|
||||||
i : longint;
|
i : longint;
|
||||||
begin
|
begin
|
||||||
|
Result:='';
|
||||||
setlength(upper,length(s));
|
setlength(upper,length(s));
|
||||||
for i:=1 to length(s) do
|
for i:=1 to length(s) do
|
||||||
upper[i]:=uppertbl[s[i]];
|
upper[i]:=uppertbl[s[i]];
|
||||||
@ -672,6 +673,7 @@ implementation
|
|||||||
var
|
var
|
||||||
i : longint;
|
i : longint;
|
||||||
begin
|
begin
|
||||||
|
Result:='';
|
||||||
setlength(lower,length(s));
|
setlength(lower,length(s));
|
||||||
for i:=1 to length(s) do
|
for i:=1 to length(s) do
|
||||||
lower[i]:=lowertbl[s[i]];
|
lower[i]:=lowertbl[s[i]];
|
||||||
@ -1077,6 +1079,7 @@ implementation
|
|||||||
t: string;
|
t: string;
|
||||||
ch: Char;
|
ch: Char;
|
||||||
begin
|
begin
|
||||||
|
t:='';
|
||||||
DePascalQuote:= false;
|
DePascalQuote:= false;
|
||||||
len:= length(s);
|
len:= length(s);
|
||||||
if (len >= 1) and (s[1] = '''') then
|
if (len >= 1) and (s[1] = '''') then
|
||||||
|
|||||||
@ -1032,6 +1032,7 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
labelarray:=nil;
|
||||||
SetLength(labelarray,case_count_labels(root));
|
SetLength(labelarray,case_count_labels(root));
|
||||||
nextarrayentry:=0;
|
nextarrayentry:=0;
|
||||||
addarrayentry(root);
|
addarrayentry(root);
|
||||||
|
|||||||
@ -1211,6 +1211,7 @@ implementation
|
|||||||
exprtype : tdef;
|
exprtype : tdef;
|
||||||
begin
|
begin
|
||||||
result:=nil;
|
result:=nil;
|
||||||
|
sa:='';
|
||||||
if (left.nodetype=ordconstn) and
|
if (left.nodetype=ordconstn) and
|
||||||
((tstringdef(resultdef).stringtype in [st_widestring,st_unicodestring,st_ansistring]) or
|
((tstringdef(resultdef).stringtype in [st_widestring,st_unicodestring,st_ansistring]) or
|
||||||
(torddef(left.resultdef).ordtype in [uchar,uwidechar])) then
|
(torddef(left.resultdef).ordtype in [uchar,uwidechar])) then
|
||||||
|
|||||||
@ -234,6 +234,7 @@ implementation
|
|||||||
stringVal: string;
|
stringVal: string;
|
||||||
pWideStringVal: pcompilerwidestring;
|
pWideStringVal: pcompilerwidestring;
|
||||||
begin
|
begin
|
||||||
|
stringVal:='';
|
||||||
if is_constcharnode(p) then
|
if is_constcharnode(p) then
|
||||||
begin
|
begin
|
||||||
SetLength(stringVal,1);
|
SetLength(stringVal,1);
|
||||||
|
|||||||
@ -80,6 +80,7 @@ function tobjcselectornode.pass_typecheck: tnode;
|
|||||||
len: longint;
|
len: longint;
|
||||||
s: shortstring;
|
s: shortstring;
|
||||||
begin
|
begin
|
||||||
|
s:='';
|
||||||
if not(m_objectivec1 in current_settings.modeswitches) then
|
if not(m_objectivec1 in current_settings.modeswitches) then
|
||||||
Message(parser_f_modeswitch_objc_required);
|
Message(parser_f_modeswitch_objc_required);
|
||||||
result:=nil;
|
result:=nil;
|
||||||
|
|||||||
@ -213,6 +213,7 @@ procedure objcfinishstringrefpoolentry(entry: phashsetitem; stringpool: tconstpo
|
|||||||
if (refsec=sec_objc_cls_refs) and
|
if (refsec=sec_objc_cls_refs) and
|
||||||
not(target_info.system in systems_objc_nfabi) then
|
not(target_info.system in systems_objc_nfabi) then
|
||||||
begin
|
begin
|
||||||
|
classname:='';
|
||||||
setlength(classname,entry^.keylength);
|
setlength(classname,entry^.keylength);
|
||||||
move(entry^.key^,classname[1],entry^.keylength);
|
move(entry^.key^,classname[1],entry^.keylength);
|
||||||
{ no way to express this in LLVM either, they also just emit
|
{ no way to express this in LLVM either, they also just emit
|
||||||
@ -307,6 +308,7 @@ procedure tobjcrttiwriter.gen_objc_methods(list: tasmlist; objccls: tobjectdef;
|
|||||||
begin
|
begin
|
||||||
methodslabel:=nil;
|
methodslabel:=nil;
|
||||||
mcnt:=0;
|
mcnt:=0;
|
||||||
|
defs:=nil;
|
||||||
{ collect all instance/class methods }
|
{ collect all instance/class methods }
|
||||||
SetLength(defs,objccls.vmtentries.count);
|
SetLength(defs,objccls.vmtentries.count);
|
||||||
for i:=0 to objccls.vmtentries.count-1 do
|
for i:=0 to objccls.vmtentries.count-1 do
|
||||||
@ -643,6 +645,7 @@ procedure tobjcrttiwriter_fragile.gen_objc_ivars(list: TAsmList; objccls: tobjec
|
|||||||
ivarslabel:=nil;
|
ivarslabel:=nil;
|
||||||
|
|
||||||
vcnt:=0;
|
vcnt:=0;
|
||||||
|
vars:=nil;
|
||||||
setLength(vars,objccls.symtable.SymList.Count);
|
setLength(vars,objccls.symtable.SymList.Count);
|
||||||
|
|
||||||
for i:=0 to objccls.symtable.SymList.Count-1 do
|
for i:=0 to objccls.symtable.SymList.Count-1 do
|
||||||
@ -1208,6 +1211,7 @@ procedure tobjcrttiwriter_nonfragile.gen_objc_ivars(list: tasmlist; objccls: tob
|
|||||||
prefix:='';
|
prefix:='';
|
||||||
|
|
||||||
vcnt:=0;
|
vcnt:=0;
|
||||||
|
vars:=nil;
|
||||||
setLength(vars,objccls.symtable.SymList.Count);
|
setLength(vars,objccls.symtable.SymList.Count);
|
||||||
|
|
||||||
tcb:=nil;
|
tcb:=nil;
|
||||||
|
|||||||
@ -1342,6 +1342,7 @@ implementation
|
|||||||
var
|
var
|
||||||
len: Byte;
|
len: Byte;
|
||||||
begin
|
begin
|
||||||
|
s:='';
|
||||||
len:=RawData[Offset];
|
len:=RawData[Offset];
|
||||||
Result:=Offset+len+1;
|
Result:=Offset+len+1;
|
||||||
if result>RecordLength then
|
if result>RecordLength then
|
||||||
|
|||||||
@ -2895,6 +2895,7 @@ begin
|
|||||||
Message1(option_using_env,envname);
|
Message1(option_using_env,envname);
|
||||||
env:=GetEnvPChar(envname);
|
env:=GetEnvPChar(envname);
|
||||||
pc:=env;
|
pc:=env;
|
||||||
|
hs:='';
|
||||||
if assigned(pc) then
|
if assigned(pc) then
|
||||||
begin
|
begin
|
||||||
repeat
|
repeat
|
||||||
|
|||||||
@ -734,6 +734,7 @@ implementation
|
|||||||
begin
|
begin
|
||||||
c:=0;
|
c:=0;
|
||||||
tmploc:=paralocs;
|
tmploc:=paralocs;
|
||||||
|
result:=nil;
|
||||||
while assigned(tmploc) do
|
while assigned(tmploc) do
|
||||||
begin
|
begin
|
||||||
inc(c);
|
inc(c);
|
||||||
|
|||||||
@ -719,6 +719,9 @@ implementation
|
|||||||
builtdefderefs,
|
builtdefderefs,
|
||||||
builtsymderefs: array of boolean;
|
builtsymderefs: array of boolean;
|
||||||
begin
|
begin
|
||||||
|
newbuiltdefderefs:=nil;
|
||||||
|
builtdefderefs:=nil;
|
||||||
|
builtsymderefs:=nil;
|
||||||
{ tdefs for which we already built the deref }
|
{ tdefs for which we already built the deref }
|
||||||
setlength(builtdefderefs,deflist.count);
|
setlength(builtdefderefs,deflist.count);
|
||||||
{ tdefs for which we built the deref in this iteration }
|
{ tdefs for which we built the deref in this iteration }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user