SDL2-FFI

 view release on metacpan or  search on metacpan

lib/SDL2/stdinc.pm  view on Meta::CPAN

                if ( ref $free_func eq 'CODE' ) {
                    $free_func = ffi->closure($free_func);
                    $free_func->sticky;
                }
                $inner->( $malloc_func, $calloc_func, $realloc_func, $free_func );
            }
        ],
        SDL_GetNumAllocations => [ [], 'int' ],
        #
        SDL_getenv => [ ['string'],                    'string' ],
        SDL_setenv => [ [ 'string', 'string', 'int' ], 'int' ],
        #
        SDL_qsort => [
            [ 'opaque', 'size_t', 'size_t', '(opaque,opaque)->int' ] =>
                sub ( $inner, $ptr, $count, $size, $comp ) {
                my $wrapped = 0;
                if ( ref $comp eq 'CODE' ) {
                    $wrapped = 1;
                    $comp    = ffi->closure($comp);
                    $comp->sticky;
                }

lib/SDL2/stdinc.pm  view on Meta::CPAN

Expected parameters include:

=over

=item C<name> - the name of the environment variable to query

=back

Returns the value if defined.

=head2 C<SDL_setenv( ... )>

Set environment variable's value.

	SDL_setenv( 'Perl_SDL_pocket', 'store something here', 1 );

Expected parameters include:

=over

=item C<name> - the name of the environment variable to set

=item C<value> - the new value to set the given environment variable to

=item C<overwrite> - a boolean value; if true, the value is updated if already defined

src/ppport.h  view on Meta::CPAN

magic_regdatum_get|5.006000||Viu
magic_regdatum_set|5.006001||Viu
magic_scalarpack|5.009001||Viu
magic_set|5.003007||Viu
magic_set_all_env|5.004004||Viu
magic_setarylen|5.003007||Viu
magic_setcollxfrm|5.004000||Viu
magic_setdbline|5.003007||Viu
magic_setdebugvar|5.021005||Viu
magic_setdefelem|5.004000||Viu
magic_setenv|5.003007||Viu
magic_sethint|5.009004||Vi
magic_sethint_feature|5.031007||Viu
magic_setisa|5.003007||Viu
magic_setlvref|5.021005||Viu
magic_setmglob|5.003007||Viu
magic_setnkeys|5.003007||Viu
magic_setnonelem|5.027009||Viu
magic_setpack|5.003007||Viu
magic_setpos|5.003007||Viu
magic_setregexp|5.008001||Viu

src/ppport.h  view on Meta::CPAN

my_lstat_flags|5.013003||cViu
my_memrchr|5.027006||Vniu
my_mkostemp_cloexec|||niu
my_mkostemp|||niu
my_mkstemp_cloexec|||niu
my_mkstemp|||niu
my_nl_langinfo|5.027006||Vniu
my_pclose|5.003007|5.003007|u
my_popen|5.003007|5.003007|u
my_popen_list|5.007001|5.007001|u
my_setenv|5.003007|5.003007|
my_snprintf|5.009004|5.003007|pvn
my_socketpair|5.007003|5.007003|nu
my_sprintf|5.009003|5.003007|pdn
my_stat|5.013003||Viu
my_stat_flags|5.013003||cViu
my_strerror|5.021001||Viu
my_strftime|5.007002|5.007002|
my_strlcat|5.009004|5.003007|pn
my_strlcpy|5.009004|5.003007|pn
my_strnlen|5.027006|5.003007|pn



( run in 0.406 second using v1.01-cache-2.11-cpan-283623ac599 )