diff --git a/README.md b/README.md index f98f5d7..d74eb3c 100644 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ Arguments: - scheme-name () The name of the procedure used on scheme side - shared-object (object) The shared object -- Use pffi-shared-object-auto-load and pffi-shared-object-load to get this + - Use pffi-shared-object-auto-load or pffi-shared-object-load to get this - c-name (symbol) The name of the C function - return-type (symbol) The return type of the C function - arguments-types (list (symbol) ...) The C function argument types diff --git a/retropikzel/pffi/v0-2-0/sagittarius.scm b/retropikzel/pffi/v0-2-0/sagittarius.scm index fad7c0e..e4928fc 100644 --- a/retropikzel/pffi/v0-2-0/sagittarius.scm +++ b/retropikzel/pffi/v0-2-0/sagittarius.scm @@ -42,7 +42,7 @@ ((equal? type 'float) 'float) ((equal? type 'double) 'double) ((equal? type 'pointer) 'void*) - ((equal? type 'string) 'void*) + ((equal? type 'string) 'char*) ((equal? type 'void) 'void) (else (error "pffi-type->native-type -- No such pffi type" type))))) @@ -91,7 +91,7 @@ (define pffi-string->pointer (lambda (string-content) - (bytevector->pointer (string->utf8 (string-copy string-content))))) + string-content)) (define pffi-pointer->string (lambda (pointer)