<commit_before>! Copyright (c) 2007 <NAME>
! Copyright (c) 2008 <NAME>
!


! Adapted from cairo.h, version 1.5.14
! License: http://factorcode.org/license.txt

USING: system combinators alien alien.syntax alien.c-types
alien.destructors kernel accessors sequences arrays ui.gadgets
alien.libraries classes.struct ;

IN: cairo.ffi
<< {
    { [ os winnt? ] [ "cairo" "libcairo-2.dll" cdecl add-library ] }
    { [ os macosx? ] [ "cairo" "/opt/local/lib/libcairo.dylib" cdecl add-library ] }
    { [ os unix? ] [ ] }
} cond >>

LIBRARY: cairo

FUNCTION: int cairo_version ( ) ;
FUNCTION: c-string cairo_version_string ( ) ;

TYPEDEF: int cairo_bool_t<commit_msg>cairo.ffi: remove some usings to break circular dependency<commit_after>! Copyright (c) 2007 <NAME>
! Copyright (c) 2008 <NAME>
!


! Adapted from cairo.h, version 1.5.14
! License: http://factorcode.org/license.txt

USING: alien alien.c-types alien.destructors alien.libraries
alien.syntax classes.struct combinators kernel system ;

IN: cairo.ffi
<< {
    { [ os winnt? ] [ "cairo" "libcairo-2.dll" cdecl add-library ] }
    { [ os macosx? ] [ "cairo" "/opt/local/lib/libcairo.dylib" cdecl add-library ] }
    { [ os unix? ] [ ] }
} cond >>

LIBRARY: cairo

FUNCTION: int cairo_version ( ) ;
FUNCTION: c-string cairo_version_string ( ) ;

TYPEDEF: int cairo_bool_t
{'fraction_non_alphanumeric': 0.14113207547169812, 'fraction_numerical': 0.019622641509433963, 'mean_word_length': 3.8394160583941606, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2456811', 'n_tokens_mistral': 525, 'n_tokens_neox': 492, 'n_words': 118}