aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-11-19 14:32:21 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-11-19 14:32:21 +0300
commit9610dceb6527fcf43e0997c53e8dcf7186721e1a (patch)
treefd422977878cbac4df74891d14418e46c2354062
parent52d66c5783d39a23027102c3087eac8ef1c0f02f (diff)
downloadsciteco-9610dceb6527fcf43e0997c53e8dcf7186721e1a.tar.gz
minor documentation fixes
* also explicitly mention -%q
-rw-r--r--doc/sciteco.7.template2
-rw-r--r--src/qreg-commands.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/doc/sciteco.7.template b/doc/sciteco.7.template
index d937ca2..15247a5 100644
--- a/doc/sciteco.7.template
+++ b/doc/sciteco.7.template
@@ -952,7 +952,7 @@ success or failure.
Booleans are also integers but unlike in ordinary (sane) languages
where 0 represent false and other values represent true,
in \*(ST negative values (smaller than zero) represent success
-and non-negative values (smaller than or equal zero) represent
+and non-negative values (larger than or equal to zero) represent
failure.
Therefore \*(ST booleans may be negated by performing a
binary (bit by bit) negation for instance using the
diff --git a/src/qreg-commands.c b/src/qreg-commands.c
index 6fb68f2..d593af8 100644
--- a/src/qreg-commands.c
+++ b/src/qreg-commands.c
@@ -626,11 +626,13 @@ teco_state_increaseqreg_got_register(teco_machine_main_t *ctx, teco_qreg_t *qreg
return &teco_state_start;
}
-/*$ % %q increment
- * [n]%q -> q+n -- Increase Q-Register integer
+/*$ % %q increment decrement
+ * [n]%q -> q+n -- Increase or decrease Q-Register integer
+ * -%q -> q-1
*
* Add <n> to the integer part of register <q>, returning
* its new value.
+ * If <n> is omitted, the sign prefix is implied.
* <q> will be defined if it does not exist.
*/
TECO_DEFINE_STATE_EXPECTQREG(teco_state_increaseqreg,