Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-chumak committed Oct 25, 2024
1 parent d260d9e commit 993660d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ tmp/pvenv.tar: $(wildcard libraries/*/*.scm)\
tar -cf $$tar0 -T /dev/null ;\
cd libraries/lib/gtk-3 ;\
find * -name "*.scm" -exec bash -c "echo '{}'; $(PVENV_ADD)" \;;\
cd ../.. ;\
cd ../../.. ;\
export tar0=${abspath $@} ;\
cd libraries ;\
find . -name "*.scm" -exec bash -c "echo '{}'; $(PVENV_ADD)" \;;\
Expand Down
2 changes: 0 additions & 2 deletions libraries/http/server
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@
; -=( Windows )=----------------------------
(Windows
(begin
(print "Windows")
(define (ls folder)
(list "cmd.exe" "/c" (string-append
"dir " (s/\//\\/g folder))))
Expand Down Expand Up @@ -152,7 +151,6 @@
; -=( Unix )=-------------------------------
(else
(begin
(print "Others")
(define (ls folder)
(list "/bin/sh" "-c" (string-append
"ls -lah " folder)))
Expand Down
2 changes: 1 addition & 1 deletion libraries/owl/io.scm
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
(case-lambda
(() (wait-mail)) ; just a regular "wait-mail"
((ms) (wait-mail-ms ms #f)) ; wait mail with timeout, returns a mail if got one or "#false"
((ms default) (wait-mail-ms default)) ; ... but returns [#false default]
((ms default) (wait-mail-ms default)) ; ... or [#false default]
))

; returns #true if port is ready to be read, #false if timeout
Expand Down
4 changes: 2 additions & 2 deletions tests/wait.scm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
(let loop ((n 0))
(unless (check-mail)
(print n)
(wait 100) ; 1 second wait
(wait 100) ; 100 ms wait
(loop (+ n 1))))))

(wait 520)
(wait 540)
(mail 'timer #n) ; stop timer and autoexit program

0 comments on commit 993660d

Please # to comment.