From ef5bcf5cee8a4dc6b283103424817397b896618c Mon Sep 17 00:00:00 2001 From: Antonio Carlos Pantaglione Date: Mon, 7 Jul 2003 14:17:45 +0000 Subject: [PATCH] Added support for PROCEDURE CLASS syntax --- harbour/ChangeLog | 4 +++ harbour/include/hbclass.ch | 51 +++++++++++++++++++++++++++++++++++++- 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3ebf37afc8..6766b41d3e 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2002-12-01 23:12 UTC+0100 Foo Bar */ +2003-07-07 11:12 UTC-0300 Antonio Carlos Pantaglione + * include/hbclass.ch + + Added support for PROCEDURE CLASS syntax. + 2003-07-03 15:00 UTC+0300 Alexander Kresin * source/rdd/dbfntx/dbfntx1.c ! Bug fixed in ntxZap. diff --git a/harbour/include/hbclass.ch b/harbour/include/hbclass.ch index 4760008547..c38cef2472 100644 --- a/harbour/include/hbclass.ch +++ b/harbour/include/hbclass.ch @@ -393,6 +393,7 @@ DECLARE HBClass ; [] => ; _HB_MEMBER () [<-ctor-> AS CLASS _CLASS_NAME_] [ AS ];; #xcommand METHOD [DECLCLASS _CLASS_NAME_] _CLASS_IMPLEMENTATION_ => DECLARED METHOD _CLASS_NAME_ ;; + #xcommand PROCEDURE [DECLCLASS _CLASS_NAME_] _CLASS_IMPLEMENTATION_ => DECLARED PROCEDURE _CLASS_NAME_ ;; s_oClass:AddMethod( <(MethodName)>, CLSMETH _CLASS_NAME_ (), HBCLSCHOICE( <.export.>, <.protect.>, <.hidde.> ) + iif( <.ctor.>, HB_OO_CLSTP_CTOR, 0 ),; <.persistent.> ) #else @@ -400,6 +401,7 @@ DECLARE HBClass ; [] => ; _HB_MEMBER () [<-ctor-> AS CLASS _CLASS_NAME_] [ AS ];; #xcommand METHOD [([])] [DECLCLASS _CLASS_NAME_] _CLASS_IMPLEMENTATION_ => DECLARED METHOD _CLASS_NAME_ ([]);; + #xcommand PROCEDURE [([])] [DECLCLASS _CLASS_NAME_] _CLASS_IMPLEMENTATION_ => DECLARED PROCEDURE _CLASS_NAME_ ([]);; s_oClass:AddMethod( <(MethodName)>, CLSMETH _CLASS_NAME_ (), HBCLSCHOICE( <.export.>, <.protect.>, <.hidde.> ) + iif( <.ctor.>, HB_OO_CLSTP_CTOR, 0 ),; <.persistent.> ) @@ -407,6 +409,7 @@ DECLARE HBClass ; [] => ; _HB_MEMBER ([]) [<-ctor-> AS CLASS _CLASS_NAME_] [ AS ];; #xcommand METHOD [([])] [DECLCLASS _CLASS_NAME_] _CLASS_IMPLEMENTATION_ => DECLARED METHOD _CLASS_NAME_ ([]);; + #xcommand PROCEDURE [([])] [DECLCLASS _CLASS_NAME_] _CLASS_IMPLEMENTATION_ => DECLARED PROCEDURE _CLASS_NAME_ ([]);; s_oClass:AddMethod( <(MethodName)>, CLSMETH _CLASS_NAME_ (), HBCLSCHOICE( <.export.>, <.protect.>, <.hidde.> ) + iif( <.ctor.>, HB_OO_CLSTP_CTOR, 0 ),; <.persistent.> ) #endif @@ -452,18 +455,21 @@ DECLARE HBClass ; #xcommand METHOD [ AS ] OPERATOR [ ] [] [