2006-02-14 14:40 UTC+0100 Ryszard Glab <rglab@imid.med.pl>
* include/hbexprc.c
* source/compiler/exproptc.c
* source/macro/macroc.c
* disabled optimalization of compound assignment in macro compiler
This commit is contained in:
@@ -8,6 +8,12 @@
|
||||
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
|
||||
*/
|
||||
* fixed <-x-> match marker
|
||||
2006-02-14 14:40 UTC+0100 Ryszard Glab <rglab@imid.med.pl>
|
||||
* include/hbexprc.c
|
||||
* source/compiler/exproptc.c
|
||||
* source/macro/macroc.c
|
||||
* disabled optimalization of compound assignment in macro compiler
|
||||
|
||||
2006-02-14 13:40 UTC+0100 Ryszard Glab <rglab@imid.med.pl>
|
||||
* include/hbexprc.c
|
||||
* source/compiler/exproptc.c
|
||||
|
||||
@@ -149,6 +149,7 @@ void hb_compExprPushOperEq( HB_EXPR_PTR pSelf, BYTE bOpEq )
|
||||
}
|
||||
/* TODO: add a special code for arrays to correctly handle a[ i++ ]++
|
||||
*/
|
||||
#if ! defined( HB_MACRO_SUPPORT )
|
||||
else if( ( bOpEq == HB_P_PLUS || bOpEq == HB_P_MINUS ||
|
||||
bOpEq == HB_P_MULT || bOpEq == HB_P_DIVIDE ) &&
|
||||
( pSelf->value.asOperator.pLeft->ExprType == HB_ET_VARIABLE ) )
|
||||
@@ -215,6 +216,7 @@ void hb_compExprPushOperEq( HB_EXPR_PTR pSelf, BYTE bOpEq )
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
/* push old value */
|
||||
HB_EXPR_USE( pSelf->value.asOperator.pLeft, HB_EA_PUSH_PCODE );
|
||||
/* push increment value */
|
||||
@@ -268,6 +270,7 @@ void hb_compExprUseOperEq( HB_EXPR_PTR pSelf, BYTE bOpEq )
|
||||
}
|
||||
/* TODO: add a special code for arrays to correctly handle a[ i++ ]++
|
||||
*/
|
||||
#if ! defined( HB_MACRO_SUPPORT )
|
||||
else if( ( bOpEq == HB_P_PLUS || bOpEq == HB_P_MINUS ||
|
||||
bOpEq == HB_P_MULT || bOpEq == HB_P_DIVIDE ) &&
|
||||
( pSelf->value.asOperator.pLeft->ExprType == HB_ET_VARIABLE ) )
|
||||
@@ -334,7 +337,7 @@ void hb_compExprUseOperEq( HB_EXPR_PTR pSelf, BYTE bOpEq )
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
/* push old value */
|
||||
HB_EXPR_USE( pSelf->value.asOperator.pLeft, HB_EA_PUSH_PCODE );
|
||||
/* push increment value */
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
/* hbexprc.c is also included from ../macro/macro.c
|
||||
* However it produces a slighty different code if used in
|
||||
* macro compiler (there is an additional parameter passed to some functions)
|
||||
* 1.7 - ignore this magic number - this is used to force compilation
|
||||
* 1.8 - ignore this magic number - this is used to force compilation
|
||||
*/
|
||||
#include "hbexprc.c"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
/* hbexprc.c is also included from ../compiler/exproptc.c
|
||||
* However it produces a slighty different code if used in
|
||||
* macro compiler (there is an additional parameter passed to some functions)
|
||||
* 1.6 - ignore this magic number - this is used to force compilation
|
||||
* 1.7 - ignore this magic number - this is used to force compilation
|
||||
*/
|
||||
|
||||
#define HB_MACRO_SUPPORT
|
||||
|
||||
Reference in New Issue
Block a user