diff --git a/ChangeLog.txt b/ChangeLog.txt index e1709822f3..c6107d8422 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,20 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2016-03-25 17:05 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * include/hbclass.ch + ! use more restrictive PP rules to avoid possible wrong + interactions with code using 'var' and 'data' identifiers + * force class name to be valid identifier + * commented unused rules + + * include/std.ch + ! fixed CODEPAGE clause in COPY TO and APPEND FROM commands + + added VIA and CODEPAGE clauses to JOIN command + + * src/rdd/dbcmd.c + * updated comments with some function syntax + 2016-03-18 17:42 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * include/harbour.hbx * src/rdd/dbcmd.c diff --git a/include/hbclass.ch b/include/hbclass.ch index cfba362e66..74d4351bef 100644 --- a/include/hbclass.ch +++ b/include/hbclass.ch @@ -136,9 +136,9 @@ /* should we use _ prefix for real method names? */ #ifdef HB_CLS_NO_DECORATION - #xtranslate __HB_CLS_MTHNAME => + #xtranslate __HB_CLS_MTHNAME => #else - #xtranslate __HB_CLS_MTHNAME => _ + #xtranslate __HB_CLS_MTHNAME => _ #endif /* parameters list passed throw - it's Harbour extension */ @@ -186,8 +186,6 @@ #xtranslate __HB_CLS_WARN([]) => ;#warning [ ] ; #line #endif -#xtranslate __HB_CLS_VARERR() => __HB_CLS_ERR( Invalid instance variable name \<> ) - /* disabled by default to not generate ignored by compiler noise in .ppo files */ #if 0 DECLARE HBClass ; @@ -206,7 +204,7 @@ DECLARE HBClass ; * Class(y) like non virtual send operator but instead of using early * bindings it casts object to class in which current method were defined. */ -#translate @:([]) => ; +#translate @:([]) => ; ::realclass:([ ]) /* Indirect super casting translation */ @@ -226,9 +224,13 @@ DECLARE HBClass ; #xtranslate __HB_CLS_ASARGS( ([]) ) => [ ] #xtranslate __HB_CLS_ASARGSOPT( ) => #xtranslate __HB_CLS_ASARGSOPT( ([]) ) => [, ] -#xtranslate __HB_CLS_ISVAR( ) => __HB_CLS_VARERR() -#xtranslate __HB_CLS_ISVAR( ) => -#xcommand __HB_CLS_CHECKVAR( [,] ) => __HB_CLS_ISVAR( ) [;__HB_CLS_ISVAR( )] + +/* +#xtranslate __HB_CLS_VARERR() => __HB_CLS_ERR( Invalid instance variable name \<> ) +#xtranslate __HB_CLS_ISVAR( ) => __HB_CLS_VARERR() +#xtranslate __HB_CLS_ISVAR( ) => +#xcommand __HB_CLS_CHECKVAR( [,] ) => __HB_CLS_ISVAR( ) [;__HB_CLS_ISVAR( )] +*/ /* #xtranslate __HB_CLS_SCOPE( , , ) => ; iif( , HB_OO_CLSTP_EXPORTED , ; @@ -241,8 +243,8 @@ DECLARE HBClass ; #xtranslate __HB_CLS_SCOPE( .F., .F., .F. ) => nScope /* Default */ -#xcommand CLASS [METACLASS ] ; - [ [,] ] ; +#xcommand CLASS [METACLASS ] ; + [ [,] ] ; [ ] ; [ ] [ FUNCTION ] => ; _HB_CLASS ;; @@ -271,21 +273,21 @@ DECLARE HBClass ; #undef _CLASS_MODE_ ; #define _CLASS_MODE_ _CLASS_IMPLEMENTATION_ -#xcommand DECLARED METHOD CLASS => ; +#xcommand DECLARED METHOD CLASS => ; static __HB_CLS_MTHNAME ;; local Self AS CLASS := QSelf() AS CLASS -#xcommand __HB_CLS_DECLARE_METHOD => ; +#xcommand __HB_CLS_DECLARE_METHOD => ; #xcommand METHOD \ CLASS _CLASS_IMPLEMENTATION_ => ; DECLARED METHOD \ CLASS -#xcommand __HB_CLS_DECLARE_METHOD => ; +#xcommand __HB_CLS_DECLARE_METHOD => ; #xcommand METHOD \ CLASS _CLASS_IMPLEMENTATION_ => ; DECLARED METHOD \ CLASS ;; #xcommand METHOD \ (\[ \] ) CLASS _CLASS_IMPLEMENTATION_ => ; DECLARED METHOD \ (\[ \] ) CLASS -#xcommand METHOD CLASS _CLASS_IMPLEMENTATION_ => ; +#xcommand METHOD CLASS _CLASS_IMPLEMENTATION_ => ; __HB_CLS_WARN( Method \<> not declared or declaration mismatch in class \<> ) ;; DECLARED METHOD CLASS @@ -300,28 +302,32 @@ DECLARE HBClass ; #xcommand ASSIGN [ AS ] [ ] [] [