Skip to content

Commit 1c7505e

Browse files
authored
Merge branch 'master' into new-style-math-bindings
2 parents 98bdbfd + 617da24 commit 1c7505e

File tree

21 files changed

+1498
-1885
lines changed

21 files changed

+1498
-1885
lines changed

src/boot/boot.janet

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3053,10 +3053,10 @@
30533053
(print-index identity)))
30543054

30553055
(defmacro doc
3056-
`Shows documentation for the given symbol, or can show a list of available bindings.
3057-
If sym is a symbol, will look for documentation for that symbol. If sym is a string
3058-
or is not provided, will show all lexical and dynamic bindings in the current environment with
3059-
that prefix (all bindings will be shown if no prefix is given).`
3056+
``Shows documentation for the given symbol, or can show a list of available bindings.
3057+
If `sym` is a symbol, will look for documentation for that symbol. If `sym` is a string
3058+
or is not provided, will show all lexical and dynamic bindings in the current environment
3059+
containing that string (all bindings will be shown if no string is given).``
30603060
[&opt sym]
30613061
~(,doc* ',sym))
30623062

src/core/asm.c

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -943,11 +943,11 @@ Janet janet_disasm(JanetFuncDef *def) {
943943
}
944944

945945
JANET_CORE_FN(cfun_asm,
946-
"(asm assembly)",
947-
"Returns a new function that is the compiled result of the assembly.\n"
948-
"The syntax for the assembly can be found on the Janet website, and should correspond\n"
949-
"to the return value of disasm. Will throw an\n"
950-
"error on invalid assembly.") {
946+
"(asm assembly)",
947+
"Returns a new function that is the compiled result of the assembly.\n"
948+
"The syntax for the assembly can be found on the Janet website, and should correspond\n"
949+
"to the return value of disasm. Will throw an\n"
950+
"error on invalid assembly.") {
951951
janet_fixarity(argc, 1);
952952
JanetAssembleResult res;
953953
res = janet_asm(argv[0], 0);
@@ -958,23 +958,23 @@ JANET_CORE_FN(cfun_asm,
958958
}
959959

960960
JANET_CORE_FN(cfun_disasm,
961-
"(disasm func &opt field)",
962-
"Returns assembly that could be used to compile the given function. "
963-
"func must be a function, not a c function. Will throw on error on a badly "
964-
"typed argument. If given a field name, will only return that part of the function assembly. "
965-
"Possible fields are:\n\n"
966-
"* :arity - number of required and optional arguments.\n"
967-
"* :min-arity - minimum number of arguments function can be called with.\n"
968-
"* :max-arity - maximum number of arguments function can be called with.\n"
969-
"* :vararg - true if function can take a variable number of arguments.\n"
970-
"* :bytecode - array of parsed bytecode instructions. Each instruction is a tuple.\n"
971-
"* :source - name of source file that this function was compiled from.\n"
972-
"* :name - name of function.\n"
973-
"* :slotcount - how many virtual registers, or slots, this function uses. Corresponds to stack space used by function.\n"
974-
"* :constants - an array of constants referenced by this function.\n"
975-
"* :sourcemap - a mapping of each bytecode instruction to a line and column in the source file.\n"
976-
"* :environments - an internal mapping of which enclosing functions are referenced for bindings.\n"
977-
"* :defs - other function definitions that this function may instantiate.\n") {
961+
"(disasm func &opt field)",
962+
"Returns assembly that could be used to compile the given function. "
963+
"func must be a function, not a c function. Will throw on error on a badly "
964+
"typed argument. If given a field name, will only return that part of the function assembly. "
965+
"Possible fields are:\n\n"
966+
"* :arity - number of required and optional arguments.\n"
967+
"* :min-arity - minimum number of arguments function can be called with.\n"
968+
"* :max-arity - maximum number of arguments function can be called with.\n"
969+
"* :vararg - true if function can take a variable number of arguments.\n"
970+
"* :bytecode - array of parsed bytecode instructions. Each instruction is a tuple.\n"
971+
"* :source - name of source file that this function was compiled from.\n"
972+
"* :name - name of function.\n"
973+
"* :slotcount - how many virtual registers, or slots, this function uses. Corresponds to stack space used by function.\n"
974+
"* :constants - an array of constants referenced by this function.\n"
975+
"* :sourcemap - a mapping of each bytecode instruction to a line and column in the source file.\n"
976+
"* :environments - an internal mapping of which enclosing functions are referenced for bindings.\n"
977+
"* :defs - other function definitions that this function may instantiate.\n") {
978978
janet_arity(argc, 1, 2);
979979
JanetFunction *f = janet_getfunction(argv, 0);
980980
if (argc == 2) {

0 commit comments

Comments
 (0)