Appendix A: System Routines — EStack Utilities
519
TI
-
89 / TI
-
92 Plus Developer Guide
Not for Distribution
Beta Version January 26, 2001
delete_expression
Declaration:
void
delete_expression
(EStackIndex
i
)
Category(ies):
EStack Utilities
Description:
Deletes the estack expression indexed by
i
. Global
top_estack
is reduced
by the number of deleted quantums.
Inputs:
i
— Index of the top (highest address) tag of an estack expression.
Outputs:
None
Assumptions:
None
Side Effects: top_estack
is reduced by the number of deleted quantums.
Availability:
On AMS 1.05 and higher.
TI
-
89 / TI
-
92 Plus
Differences:
None
See Also: deleted_between, delete_between, deleted_expression,
move_between_to_top, moved_between_to_top
Example:
void replace_top_with_reciprocal (void)
/* Replaces the top expression on the estack with its reciprocal. */
{ Access_AMS_Global_Variables;
EStackIndex old_top = top_estack;
push_reciprocal (old_top); /* find reciprocal of top expression */
delete_expression (old_top); /* remove original expression */
}