]> gitweb.factorcode.org Git - factor.git/commitdiff
cairo.ffi, core-foundation.strings: change some functions that don't really expect...
authorJoe Groff <arcata@gmail.com>
Tue, 23 Feb 2010 20:53:09 +0000 (12:53 -0800)
committerJoe Groff <arcata@gmail.com>
Tue, 23 Feb 2010 20:53:09 +0000 (12:53 -0800)
basis/cairo/ffi/ffi.factor
basis/core-foundation/strings/strings.factor

index bca02c1f17ac5d97b7dad341e2bf22674d864c02..dc68af64dc1f63cc560c7246499f2cb714542537 100644 (file)
@@ -786,7 +786,7 @@ FUNCTION: int
 cairo_format_stride_for_width ( cairo_format_t format, int width ) ;
 
 FUNCTION: cairo_surface_t*
-cairo_image_surface_create_for_data ( c-string data, cairo_format_t format, int width, int height, int stride ) ;
+cairo_image_surface_create_for_data ( char* data, cairo_format_t format, int width, int height, int stride ) ;
 
 FUNCTION: c-string
 cairo_image_surface_get_data ( cairo_surface_t* surface ) ;
index 9a91335ae2306979d989a8fbfe001f4a99c2c5e1..4c7e9ba26158869f2307e64e64ead1468c565ac2 100644 (file)
@@ -37,7 +37,7 @@ FUNCTION: void CFStringGetCharacters ( void* theString, CFIndex start, CFIndex l
 
 FUNCTION: Boolean CFStringGetCString (
     CFStringRef theString,
-    c-string buffer,
+    UInt8* buffer,
     CFIndex bufferSize,
     CFStringEncoding encoding
 ) ;
@@ -55,7 +55,7 @@ FUNCTION: CFIndex CFStringGetBytes (
 
 FUNCTION: CFStringRef CFStringCreateWithCString (
     CFAllocatorRef alloc,
-    c-string cStr,
+    UInt8* cStr,
     CFStringEncoding encoding
 ) ;