mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-08 05:27:35 +02:00
Exclude unsupported functions in Emscripten version
This commit is contained in:
parent
d1a7f54114
commit
11f5a5473e
2 changed files with 14 additions and 10 deletions
2
Makefile
2
Makefile
|
@ -258,7 +258,7 @@ bench-gabriel: chibi-scheme$(EXE)
|
|||
# Packaging
|
||||
|
||||
clean: clean-libs
|
||||
-$(RM) *.o *.i *.s *.8 tests/basic/*.out tests/basic/*.err \
|
||||
-$(RM) *.o *.i *.s *.bc *.8 tests/basic/*.out tests/basic/*.err \
|
||||
tests/run/*.out tests/run/*.err
|
||||
|
||||
cleaner: clean
|
||||
|
|
|
@ -12,12 +12,16 @@
|
|||
set-root-directory!)
|
||||
(import (chibi))
|
||||
(include-shared "system")
|
||||
(body
|
||||
(define (user-information user)
|
||||
(car (if (string? user)
|
||||
(getpwnam_r user (make-string 1024))
|
||||
(getpwuid_r user (make-string 1024)))))
|
||||
(define (group-information group)
|
||||
(car (if (string? group)
|
||||
(getgrnam_r group (make-string 1024))
|
||||
(getgrgid_r group (make-string 1024)))))))
|
||||
(cond-expand
|
||||
(emscripten)
|
||||
(else
|
||||
(export user-information group-information)
|
||||
(body
|
||||
(define (user-information user)
|
||||
(car (if (string? user)
|
||||
(getpwnam_r user (make-string 1024))
|
||||
(getpwuid_r user (make-string 1024)))))
|
||||
(define (group-information group)
|
||||
(car (if (string? group)
|
||||
(getgrnam_r group (make-string 1024))
|
||||
(getgrgid_r group (make-string 1024)))))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue