svn commit: r368261 - head/stand/ficl

Toomas Soome tsoome at FreeBSD.org
Tue Dec 1 22:28:02 UTC 2020


Author: tsoome
Date: Tue Dec  1 22:28:02 2020
New Revision: 368261
URL: https://svnweb.freebsd.org/changeset/base/368261

Log:
  ficl: instead of pad, emit can use local variable
  
  Pad in forth is used as "scratchpad" and internal implementations
  should not use it. Ficl does not really follow this rule and this can fire back.
  emit has no need to use pad, we can use local variable instead.

Modified:
  head/stand/ficl/words.c

Modified: head/stand/ficl/words.c
==============================================================================
--- head/stand/ficl/words.c	Tue Dec  1 22:28:01 2020	(r368260)
+++ head/stand/ficl/words.c	Tue Dec  1 22:28:02 2020	(r368261)
@@ -1015,7 +1015,7 @@ static void twoSwap(FICL_VM *pVM)
 
 static void emit(FICL_VM *pVM)
 {
-    char *cp = pVM->pad;
+    char cp[2];
     int i;
 
 #if FICL_ROBUST > 1


More information about the svn-src-all mailing list