aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/expressions.c
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-21 00:19:52 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-07-21 00:33:13 +0300
commit48dcfd22f9c2db5cf6745eaec0ff28895858c638 (patch)
tree0eb2c9658df557b8418d4bbdc8b9aa25fb15cd6d /src/expressions.c
parent9903c408f2ffc7a42f4fcead54eadc567c0f3669 (diff)
downloadsciteco-48dcfd22f9c2db5cf6745eaec0ff28895858c638.tar.gz
support <==> and <===> for printing octal and hexadecimal numbers
* These are famously in DEC TECO-11, but also in Video TECO. * The implementation is tricky. They need to use lookahead states, but this would be inacceptable during interactive execution. Therefore only if executing from the end of the command line `==` and `===` are allowed to print multiple values. The number is therefore also not popped form the stack immediately but only peeked. It's popped only when it has been decided that the command has ended. * This may break existing macros that use multiple `=` in a row to print multiple values from the stack. You will now e.g. have to insert whitespace to separate such `=` commands.
Diffstat (limited to 'src/expressions.c')
-rw-r--r--src/expressions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expressions.c b/src/expressions.c
index f802c6e..ede54d2 100644
--- a/src/expressions.c
+++ b/src/expressions.c
@@ -387,7 +387,7 @@ teco_expressions_clear(void)
* @param buffer The output buffer of at least TECO_EXPRESSIONS_FORMAT_LEN characters.
* The output string will be null-terminated.
* @param number The number to format.
- * @param table The local Q-Register table that contains the appropriate radix register (^R).
+ * @param qreg The radix register (^R).
* @return A pointer into buffer to the beginning of the formatted number.
*/
gchar *