| Parse1DExpr | Function (ROM Call 0x4F)

estack.h

HANDLE Parse1DExpr (CESI ptr, unsigned short FullPrec, unsigned short width);

Parses a tokenized expression to be printed.

Parse1DExpr does a similar job as display_statements (i.e. converts a RPN expression to the TEXT and returns the handle to the text), but the parameters are somewhat different. Here, width is the maximum width of text result (0 indicates no width restriction). So, when necessary, symbolic expressions are truncated to width-1 characters and terminated with an ellipsis character ('...'). When ptr points to a tagged floating point number, the number is rounded to fit in width characters. When the number cannot be rounded to fit in width characters, an ellipsis character ('...') is returned. See display_statements for more info.

Uses: index_below_display_expression_aux, HeapAlloc, HeapFree, HeapLock, HeapRealloc, HeapUnlock, HLock, ER_catch, ER_success, ER_throwVar, sprintf, strchr, OSDisableBreak, OSEnableBreak, estack_to_float, TIOS_abs, ROM Call 0x457
Used by: cmd_disp, cmd_output, cmd_pause, cmd_prompt, push_string, handleRclKey, GT_PrintCursor, SP_Define, ROM Call 0x45B