FUNCTION: CFRunLoopRef CFRunLoopGetCurrent ( ) ;
FUNCTION: SInt32 CFRunLoopRunInMode (
- CFStringRef mode,
- CFTimeInterval seconds,
- Boolean returnAfterSourceHandled
+ CFStringRef mode,
+ CFTimeInterval seconds,
+ Boolean returnAfterSourceHandled
) ;
FUNCTION: CFRunLoopSourceRef CFFileDescriptorCreateRunLoopSource (
) ;
FUNCTION: void CFRunLoopAddSource (
- CFRunLoopRef rl,
- CFRunLoopSourceRef source,
- CFStringRef mode
+ CFRunLoopRef rl,
+ CFRunLoopSourceRef source,
+ CFStringRef mode
) ;
FUNCTION: void CFRunLoopRemoveSource (
- CFRunLoopRef rl,
- CFRunLoopSourceRef source,
- CFStringRef mode
+ CFRunLoopRef rl,
+ CFRunLoopSourceRef source,
+ CFStringRef mode
) ;
FUNCTION: void CFRunLoopAddTimer (
- CFRunLoopRef rl,
- CFRunLoopTimerRef timer,
- CFStringRef mode
+ CFRunLoopRef rl,
+ CFRunLoopTimerRef timer,
+ CFStringRef mode
) ;
FUNCTION: void CFRunLoopRemoveTimer (
- CFRunLoopRef rl,
- CFRunLoopTimerRef timer,
- CFStringRef mode
+ CFRunLoopRef rl,
+ CFRunLoopTimerRef timer,
+ CFStringRef mode
) ;
: CFRunLoopDefaultMode ( -- alien )
--- /dev/null
+slava@slava-pestovs-macbook-pro.local.83429
\ No newline at end of file
: kCFStringEncodingUTF32LE HEX: 1c000100 ;
FUNCTION: CFStringRef CFStringCreateWithBytes (
- CFAllocatorRef alloc,
- UInt8* bytes,
- CFIndex numBytes,
- CFStringEncoding encoding,
- Boolean isExternalRepresentation
+ CFAllocatorRef alloc,
+ UInt8* bytes,
+ CFIndex numBytes,
+ CFStringEncoding encoding,
+ Boolean isExternalRepresentation
) ;
FUNCTION: CFIndex CFStringGetLength ( CFStringRef theString ) ;
FUNCTION: void CFStringGetCharacters ( void* theString, CFIndex start, CFIndex length, void* buffer ) ;
FUNCTION: Boolean CFStringGetCString (
- CFStringRef theString,
- char* buffer,
- CFIndex bufferSize,
- CFStringEncoding encoding
+ CFStringRef theString,
+ char* buffer,
+ CFIndex bufferSize,
+ CFStringEncoding encoding
) ;
FUNCTION: CFStringRef CFStringCreateWithCString (
- CFAllocatorRef alloc,
- char* cStr,
- CFStringEncoding encoding
+ CFAllocatorRef alloc,
+ char* cStr,
+ CFStringEncoding encoding
) ;
: <CFString> ( string -- alien )
SYMBOL: xim
: (init-xim) ( classname medifier -- im )
- XSetLocaleModifiers [ "XSetLocaleModifiers() failed" throw ] unless
- [ dpy get f ] dip dup XOpenIM ;
+ XSetLocaleModifiers [ "XSetLocaleModifiers() failed" throw ] unless
+ [ dpy get f ] dip dup XOpenIM ;
: init-xim ( classname -- )
- dup "" (init-xim)
- [ nip ]
- [ "@im=none" (init-xim) [ "XOpenIM() failed" throw ] unless* ] if*
- xim set-global ;
+ dup "" (init-xim)
+ [ nip ]
+ [ "@im=none" (init-xim) [ "XOpenIM() failed" throw ] unless* ] if*
+ xim set-global ;
: close-xim ( -- )
xim get-global XCloseIM drop f xim set-global ;