summaryrefslogtreecommitdiff
path: root/compiler/symutil.pas
diff options
context:
space:
mode:
authorpeter <peter@3ad0048d-3df7-0310-abae-a5850022a9f2>2005-08-30 06:23:31 +0000
committerpeter <peter@3ad0048d-3df7-0310-abae-a5850022a9f2>2005-08-30 06:23:31 +0000
commitfddb2879cf0538047b2d992c8582fa76b526daa4 (patch)
treedcc69207ec70325cb5bf081713ce56339d2a7153 /compiler/symutil.pas
parent8c029b19c9123bbd213bf8f51eb9036b44df91e6 (diff)
downloadfpc-fddb2879cf0538047b2d992c8582fa76b526daa4.tar.gz
* fix default parameter compare for widestring
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@982 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'compiler/symutil.pas')
-rw-r--r--compiler/symutil.pas8
1 files changed, 7 insertions, 1 deletions
diff --git a/compiler/symutil.pas b/compiler/symutil.pas
index fb28a90c02..6e9c87b1a8 100644
--- a/compiler/symutil.pas
+++ b/compiler/symutil.pas
@@ -41,7 +41,7 @@ implementation
uses
globtype,cpuinfo,procinfo,
- symconst;
+ symconst,widestr;
function is_funcret_sym(p:tsymentry):boolean;
@@ -89,6 +89,12 @@ implementation
equal_constsym:=true;
end;
end;
+ constwstring :
+ begin
+ if (sym1.value.len=sym2.value.len) and
+ (comparewidestrings(sym1.value.valueptr,sym2.value.valueptr)=0) then
+ equal_constsym:=true;
+ end;
constreal :
equal_constsym:=(pbestreal(sym1.value.valueptr)^=pbestreal(sym2.value.valueptr)^);
constset :