macros using "." bug fixed

This commit is contained in:
Antonio Linares
2002-01-30 15:23:40 +00:00
parent fa0ea9268b
commit 1d83df2307

View File

@@ -1081,7 +1081,7 @@ static HB_EXPR_FUNC( hb_compExprUseMacro )
* all components should be placed as a string that will
* be compiled after text susbstitution
*/
HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asMacro.szMacro, strlen(pSelf->value.asMacro.szMacro) );
HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asMacro.szMacro, strlen(pSelf->value.asMacro.szMacro) + 1 );
}
}
/* compile & run - leave a result on the eval stack
@@ -1187,7 +1187,7 @@ static HB_EXPR_FUNC( hb_compExprUseMacro )
* all components should be placed as a string that will
* be compiled after text susbstitution
*/
HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asMacro.szMacro, strlen(pSelf->value.asMacro.szMacro) );
HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asMacro.szMacro, strlen(pSelf->value.asMacro.szMacro) + 1 );
}
}
/* compile & run - macro compiler will generate pcode to pop a value
@@ -3465,4 +3465,4 @@ static HB_EXPR_FUNC( hb_compExprUsePreDec )
break;
}
return pSelf;
}
}