Change throw code for abort quote from -1 to -2.
[pforth] / fth / misc1.fth
index 1e36e55..373e495 100644 (file)
@@ -36,7 +36,9 @@ decimal
 \r
 : (ABORT")  ( flag $message -- )\r
     swap\r
 \r
 : (ABORT")  ( flag $message -- )\r
     swap\r
-    IF count type cr abort\r
+    IF\r
+       count type cr\r
+       err_abortq throw\r
     ELSE drop\r
     THEN\r
 ;\r
     ELSE drop\r
     THEN\r
 ;\r
@@ -74,7 +76,7 @@ decimal
 \r
 : $ ( <number> -- N , convert next number as hex )\r
     base @ hex\r
 \r
 : $ ( <number> -- N , convert next number as hex )\r
     base @ hex\r
-    32 lword number? num_type_single = not\r
+    bl lword number? num_type_single = not\r
     abort" Not a single number!"\r
     swap base !\r
     state @\r
     abort" Not a single number!"\r
     swap base !\r
     state @\r