mirror of
https://github.com/janet-lang/janet
synced 2024-12-26 00:10:27 +00:00
Update makefile.
This commit is contained in:
parent
4e689c2279
commit
1e87b01e02
@ -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:
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user