1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-25 07:50:27 +00:00

Update makefile.

This commit is contained in:
Calvin Rose 2018-11-19 15:33:19 -05:00
parent 4e689c2279
commit 1e87b01e02
2 changed files with 4 additions and 3 deletions

View File

@ -44,7 +44,7 @@ sqlite3.c: sqlite-autoconf-3230100/sqlite3.c
sqlite3.h: sqlite-autoconf-3230100/sqlite3.h
cp $< $@
%.o: %.c
%.o: %.c sqlite3.h
$(CC) $(CFLAGS) -c $<
clean:

View File

@ -259,7 +259,8 @@
(tuple 'if $fi $fi (aux (+ 1 i))))))))) 0)))
(defmacro loop
"A general purpose loop macro.
"A general purpose loop macro. This macro is similar to the Common Lisp
loop macro, although intentonally much smaller in scope.
The head of the loop shoud be a tuple that contains a sequence of
either bindings or conditionals. A binding is a sequence of three values
that define someting to loop over. They are formatted like:\n\n
@ -1328,7 +1329,7 @@ value, one key will be ignored."
(def buf @"")
(default onvalue (fn [x]
(put newenv '_ @{:value x})
(print (string.pretty x 4 buf))
(print (string.pretty x 8 buf))
(buffer.clear buf)))
(default onerr default-error-handler)
(run-context newenv getchunk onvalue onerr "repl"))