Progress with Gauche

This commit is contained in:
retropikzel 2025-04-27 19:36:35 +03:00
parent 3c75f1eb5a
commit 1866f298eb
2 changed files with 11 additions and 7 deletions

View File

@ -201,14 +201,14 @@
c-function
(size-of-type return-type)
arguments)))
(display "HERE: ")
(display "Calling C function: ")
(write c-name)
(newline)
(display "HERE SCM:")
(write return-pointer)
(newline)
(display "HERE2: ")
(write (pointer-get return-pointer return-type 0))
(newline)
(when (not (equal? return-type 'void))
(pointer-get return-pointer return-type 0)))))))
(cond ((not (equal? return-type 'void))
(pointer-get return-pointer return-type 0))))))))
(define-syntax define-c-procedure
(syntax-rules ()

View File

@ -284,7 +284,11 @@
(for-each
(lambda (str)
(debug str)
(assert equal? (string=? (c-utf8->string (string->c-utf8 str)) str) #t))
(let ((utf-eight (string->c-utf8 str)))
(debug utf-eight)
(let ((str1 (c-utf8->string utf-eight)))
(debug str1)
(assert equal? (string=? str1 str) #t))))
(list "100" "Hello world" "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"))