]> gitweb.factorcode.org Git - factor.git/commitdiff
namespaces: rename init-namespaces to init-namestack
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 4 Jan 2022 23:07:11 +0000 (15:07 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 4 Jan 2022 23:07:11 +0000 (15:07 -0800)
basis/logging/server/server.factor
basis/threads/threads-docs.factor
core/alien/alien.factor
core/init/init.factor
core/namespaces/namespaces-docs.factor
core/namespaces/namespaces.factor
extra/file-server/file-server.factor

index 5cfae1ab202555dd041a0cb77866328c625403c1..f0ddb681cc571e4e56f8f1b536badb4183cf0101 100644 (file)
@@ -98,7 +98,7 @@ CONSTANT: keep-logs 10
 
 : log-server ( -- )
     [
-        init-namespaces
+        init-namestack
         [ log-server-loop ]
         [ error. (close-logs) ]
         recover t
index 9b2c0708e9da70dc21ec71528fce1e5e76b7f2f0..8cc581f3f978cf30c968e418cde67d2ff0f91a0a 100644 (file)
@@ -173,7 +173,7 @@ HELP: spawn
 { $values { "quot" quotation } { "name" string } { "thread" thread } }
 { $description "Spawns a new thread. The thread begins executing the given quotation; the name is for debugging purposes. The new thread begins running immediately and the current thread is added to the end of the run queue."
 $nl
-"The new thread begins with an empty data stack, an empty retain stack, and an empty catch stack. The name stack is inherited from the parent thread but may be cleared with " { $link init-namespaces } "." }
+"The new thread begins with an empty data stack, an empty retain stack, and an empty catch stack. The name stack is inherited from the parent thread but may be cleared with " { $link init-namestack } "." }
 { $notes
      "The recommended way to pass data to the new thread is to explicitly construct a quotation containing the data, for example using " { $link curry } " or " { $link compose } "."
 }
index f1762e170099444127d9ea681a122ce5f7fff74a..cb73df0c0420ac797af05a0e8fae478bf887ec7b 100644 (file)
@@ -110,7 +110,7 @@ SYMBOL: callbacks
 ! Used by compiler.codegen to wrap callback bodies
 : do-callback ( callback-quot wait-quot: ( callback -- ) -- )
     t CONTEXT-OBJ-IN-CALLBACK-P set-context-object
-    init-namespaces
+    init-namestack
     init-catchstack
     current-callback
     [ 2drop call ] [ swap call( callback -- ) drop ] 3bi ; inline
index fbdf156bef520df36d59413ec4205b8f4d883778..f18a9b88ad1b6bfbf562ddda22ca8a32f3d34fb3 100644 (file)
@@ -25,7 +25,7 @@ shutdown-hooks [ V{ } clone ] initialize
 : add-shutdown-hook ( quot name -- )
     shutdown-hooks get set-at ;
 
-: boot ( -- ) init-namespaces init-catchstack init-error-handler ;
+: boot ( -- ) init-namestack init-catchstack init-error-handler ;
 
 : startup-quot ( -- quot ) OBJ-STARTUP-QUOT special-object ;
 
index b666c6be39bc3af58a08217349ffdeea9cc0339b..009f1a10f661b613901027e66f4a25bf452bab64 100644 (file)
@@ -184,7 +184,7 @@ HELP: >n
 HELP: ndrop
 { $description "Pops a namespace from the namestack." } ;
 
-HELP: init-namespaces
+HELP: init-namestack
 { $description "Resets the namestack to its initial state, holding a single copy of the global namespace." }
 $low-level-note ;
 
index dd6765af2a96fe21c52891bcd118b603c20c2389..f393b4bbb3e3377f45f07765eec1fe0dc4ddee82 100644 (file)
@@ -45,7 +45,7 @@ PRIVATE>
 : namespace ( -- namespace ) (get-namestack) last ; inline
 : get-namestack ( -- namestack ) (get-namestack) clone ;
 : set-namestack ( namestack -- ) >vector (set-namestack) ;
-: init-namespaces ( -- ) global 1array set-namestack ;
+: init-namestack ( -- ) global 1vector (set-namestack) ;
 
 : get-global ( variable -- value ) global box-at value>> ; inline
 : set-global ( value variable -- ) global set-at ; inline
index dd71793e2a8eafbe398453b495d37d5659c3068b..33f00e0d66563a26d02baa5db12ce2371bd24243 100644 (file)
@@ -9,7 +9,7 @@ IN: file-server
 
 : file-server-logging ( quot -- )
     [
-        init-namespaces
+        init-namestack
         receive
 
         dup first "log-message" = [