summaryrefslogtreecommitdiff
path: root/closures/compiler/pdecobj.pas
diff options
context:
space:
mode:
authorblaise <blaise@3ad0048d-3df7-0310-abae-a5850022a9f2>2012-02-01 19:21:23 +0000
committerblaise <blaise@3ad0048d-3df7-0310-abae-a5850022a9f2>2012-02-01 19:21:23 +0000
commit9993f7ecb45c45fad5fb33d92db5a26eede1a3f1 (patch)
treebc0fd7d7efc0b322da0b94627d81cfc847395a54 /closures/compiler/pdecobj.pas
parent377f14fd544f12a50c90e9a193ac782a601e83cd (diff)
downloadfpc-9993f7ecb45c45fad5fb33d92db5a26eede1a3f1.tar.gz
+ defcmp: structural equivalence for COM interfacesblaise
~ pdecobj, pdecsub: parsing mode for routines: normal, class method, nameless routine, method reference = pdecsub: factored out parse_proc_parameter_dec(); code simplifications + symdef: tprocdef.add_to_procsym() + ptype, tokens: new UDT -- method reference git-svn-id: http://svn.freepascal.org/svn/fpc/branches/blaise@20212 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'closures/compiler/pdecobj.pas')
-rw-r--r--closures/compiler/pdecobj.pas10
1 files changed, 5 insertions, 5 deletions
diff --git a/closures/compiler/pdecobj.pas b/closures/compiler/pdecobj.pas
index 098dcc67d1..afb037d800 100644
--- a/closures/compiler/pdecobj.pas
+++ b/closures/compiler/pdecobj.pas
@@ -65,7 +65,7 @@ implementation
result:=nil;
consume(_CONSTRUCTOR);
{ must be at same level as in implementation }
- parse_proc_head(current_structdef,potype_class_constructor,pd);
+ parse_proc_head(current_structdef,potype_class_constructor,ppm_class_method,pd);
if not assigned(pd) then
begin
consume(_SEMICOLON);
@@ -89,7 +89,7 @@ implementation
result:=nil;
consume(_CONSTRUCTOR);
{ must be at same level as in implementation }
- parse_proc_head(current_structdef,potype_constructor,pd);
+ parse_proc_head(current_structdef,potype_constructor,ppm_normal,pd);
if not assigned(pd) then
begin
consume(_SEMICOLON);
@@ -178,7 +178,7 @@ implementation
begin
result:=nil;
consume(_DESTRUCTOR);
- parse_proc_head(current_structdef,potype_class_destructor,pd);
+ parse_proc_head(current_structdef,potype_class_destructor,ppm_class_method,pd);
if not assigned(pd) then
begin
consume(_SEMICOLON);
@@ -201,7 +201,7 @@ implementation
begin
result:=nil;
consume(_DESTRUCTOR);
- parse_proc_head(current_structdef,potype_destructor,pd);
+ parse_proc_head(current_structdef,potype_destructor,ppm_normal,pd);
if not assigned(pd) then
begin
consume(_SEMICOLON);
@@ -893,7 +893,7 @@ implementation
oldparse_only:=parse_only;
parse_only:=true;
- pd:=parse_proc_dec(is_classdef,current_structdef);
+ pd:=parse_proc_dec(current_structdef,as_procparsemode(is_classdef));
{ this is for error recovery as well as forward }
{ interface mappings, i.e. mapping to a method }