]> gitweb.factorcode.org Git - factor.git/commitdiff
Docs: fix a bunch of help-lint warnings
authorBjörn Lindqvist <bjourne@gmail.com>
Tue, 22 Sep 2015 04:52:04 +0000 (06:52 +0200)
committerBjörn Lindqvist <bjourne@gmail.com>
Tue, 22 Sep 2015 06:52:59 +0000 (08:52 +0200)
basis/compiler/cfg/linear-scan/live-intervals/live-intervals-docs.factor
basis/compiler/cfg/linear-scan/ranges/ranges-docs.factor
basis/compiler/codegen/relocation/relocation-docs.factor
basis/compiler/constants/constants-docs.factor
basis/compiler/tree/tree-docs.factor
core/sequences/sequences-docs.factor
extra/fuel/help/help-docs.factor [new file with mode: 0644]

index d761fe40f6d91b42eb03713902c55676df6c5bca..c6171189e99a54ffbaad4dd241d954048437faaa 100644 (file)
@@ -72,12 +72,6 @@ HELP: live-interval-state
     {
         { $slot "uses" } { "sequence of insn# numbers which reference insructions that use the register in the live interval." }
     }
-    {
-        { $slot "reg-class" }
-        { "Register class of the interval, either "
-          { $link int-regs } " or " { $link float-regs } "." }
-
-    }
   }
 }
 { $notes "The " { $slot "uses" } " and " { $slot "ranges" } " will never be empty because then the interval would be unused." } ;
index 77aef69e0184429060c70f11697331a1ac7ac956..0f2c38e10b21c190614e5230e2316d8dca252dcc 100644 (file)
@@ -7,8 +7,8 @@ HELP: add-range
 
 HELP: intersect-range
 { $values
-  { "range1" pair }
-  { "range2" pair }
+  { "r1" pair }
+  { "r2" pair }
   { "n/f" { $link number } " or " { $link f } }
 }
 { $description "First index for the ranges intersection, or f if they don't intersect." } ;
index 9a996b87a66b3067aa5096cede7fb3614fdbcad5..e4293c6368c6ece8c4cb5be6612c2659b88e7aa6 100644 (file)
@@ -1,5 +1,5 @@
-USING: byte-vectors compiler.constants cpu.architecture help.markup
-help.syntax make vectors ;
+USING: alien byte-arrays byte-vectors compiler.constants cpu.architecture
+help.markup help.syntax make vectors ;
 IN: compiler.codegen.relocation
 
 HELP: relocation-table
@@ -7,6 +7,7 @@ HELP: relocation-table
 { $see-also init-relocation } ;
 
 HELP: add-dlsym-parameters
+{ $values { "symbol" byte-array } { "dll" dll } }
 { $description "Adds a pair of parameters for a reference to an external C function to the " { $link parameter-table } "." } ;
 
 HELP: add-relocation
index 5ac2088a06cd5cf41566be82db0049bfc275e94a..3d189432ed952060d671c2bb9475c11b9641d2a7 100644 (file)
@@ -2,6 +2,7 @@ USING: compiler.codegen.relocation help.markup help.syntax math vm ;
 IN: compiler.constants
 
 HELP: context-callstack-save-offset
+{ $values { "n" integer } }
 { $description "Offset in bytes in the " { $link context } " struct to where the c callstack is saved." } ;
 
 HELP: rt-cards-offset
index 275a82dd3e2c6eda0d20a42e34911a6357b76e7c..e91896450870ae67c5d53496abfc8a0dbf264c8b 100644 (file)
@@ -36,7 +36,7 @@ HELP: #declare
 { $class-description "SSA tree node emitted when " { $link declare } " declarations are encountered." } ;
 
 HELP: #enter-recursive
-{ $class-description "This node works is placed first in the " { $slot "child" } " sequence for " { $link #recursive } " nodes and works like a header for it." }
+{ $class-description "This node works is placed first in the 'child' " { $link sequence } " for " { $link #recursive } " nodes and works like a header for it." }
 { $see-also #recursive #return-recursive } ;
 
 HELP: #if
index b6d219c5e9fa1791b8b74a6db9c0efe8690fbb98..3e9b159eb66e6c15d29e6a0d0a20510127f9854b 100644 (file)
@@ -445,7 +445,8 @@ HELP: 2all?
 { $values { "seq1" sequence } { "seq2" sequence } { "quot" { $quotation ( ... elt1 elt2 -- ... ? ) } } { "?" boolean } }
 { $description "Tests the predicate pairwise against elements of " { $snippet "seq1" } " and " { $snippet "seq2" } ". If the sequences have different lengths, then only the smallest sequences items are compared with the other." }
 { $examples
-  { $example "USING: prettyprint sequences ;"
+  { $example
+    "USING: math prettyprint sequences ;"
     "{ 1 2 3 4 } { 2 4 6 8 } [ <= ] 2all? ."
     "t"
   }
diff --git a/extra/fuel/help/help-docs.factor b/extra/fuel/help/help-docs.factor
new file mode 100644 (file)
index 0000000..c469eac
--- /dev/null
@@ -0,0 +1,6 @@
+USING: fuel.help.private help.markup help.syntax strings ;
+IN: fuel.help
+
+HELP: fuel-find-word
+{ $values { "name" string } { "word/f" "word or f" } }
+{ $description "Prefer to use search which takes the execution context into account. If that fails, fall back on a search of all words." } ;