| 1 |
package FFI::Platypus::Lang::C; |
| 2 |
|
| 3 |
use strict; |
| 4 |
use warnings; |
| 5 |
use 5.008004; |
| 6 |
|
| 7 |
# ABSTRACT: Documentation and tools for using Platypus with the C programming language |
| 8 |
our $VERSION = '2.12'; # VERSION |
| 9 |
|
| 10 |
|
| 11 |
sub native_type_map |
| 12 |
{ |
| 13 |
require FFI::Platypus::ShareConfig; |
| 14 |
FFI::Platypus::ShareConfig->get('type_map'); |
| 15 |
} |
| 16 |
|
| 17 |
1; |
| 18 |
|
| 19 |
__END__ |
| 20 |
|
| 21 |
=pod |
| 22 |
|
| 23 |
=encoding UTF-8 |
| 24 |
|
| 25 |
=head1 NAME |
| 26 |
|
| 27 |
FFI::Platypus::Lang::C - Documentation and tools for using Platypus with the C programming language |
| 28 |
|
| 29 |
=head1 VERSION |
| 30 |
|
| 31 |
version 2.12 |
| 32 |
|
| 33 |
=head1 SYNOPSIS |
| 34 |
|
| 35 |
use FFI::Platypus 2.00; |
| 36 |
my $ffi = FFI::Platypus->new( api => 2 ); |
| 37 |
$ffi->lang('C'); # the default |
| 38 |
|
| 39 |
=head1 DESCRIPTION |
| 40 |
|
| 41 |
This module provides some hooks for Platypus to interact with the C |
| 42 |
programming language. It is generally used by default if you do not |
| 43 |
specify another foreign programming language with the |
| 44 |
L<FFI::Platypus#lang> attribute. |
| 45 |
|
| 46 |
=head1 METHODS |
| 47 |
|
| 48 |
=head2 native_type_map |
| 49 |
|
| 50 |
my $hashref = FFI::Platypus::Lang::C->native_type_map; |
| 51 |
|
| 52 |
This returns a hash reference containing the native aliases for the |
| 53 |
C programming languages. That is the keys are native C types and the |
| 54 |
values are libffi native types. |
| 55 |
|
| 56 |
=head1 SEE ALSO |
| 57 |
|
| 58 |
=over 4 |
| 59 |
|
| 60 |
=item L<FFI::Platypus> |
| 61 |
|
| 62 |
The Core Platypus documentation. |
| 63 |
|
| 64 |
=item L<FFI::Platypus::Lang> |
| 65 |
|
| 66 |
Includes a list of other language plugins for Platypus. |
| 67 |
|
| 68 |
=back |
| 69 |
|
| 70 |
=head1 AUTHOR |
| 71 |
|
| 72 |
Author: Graham Ollis E<lt>[email protected]<gt> |
| 73 |
|
| 74 |
Contributors: |
| 75 |
|
| 76 |
Bakkiaraj Murugesan (bakkiaraj) |
| 77 |
|
| 78 |
Dylan Cali (calid) |
| 79 |
|
| 80 |
pipcet |
| 81 |
|
| 82 |
Zaki Mughal (zmughal) |
| 83 |
|
| 84 |
Fitz Elliott (felliott) |
| 85 |
|
| 86 |
Vickenty Fesunov (vyf) |
| 87 |
|
| 88 |
Gregor Herrmann (gregoa) |
| 89 |
|
| 90 |
Shlomi Fish (shlomif) |
| 91 |
|
| 92 |
Damyan Ivanov |
| 93 |
|
| 94 |
Ilya Pavlov (Ilya33) |
| 95 |
|
| 96 |
Petr Písař (ppisar) |
| 97 |
|
| 98 |
Mohammad S Anwar (MANWAR) |
| 99 |
|
| 100 |
Håkon Hægland (hakonhagland, HAKONH) |
| 101 |
|
| 102 |
Meredith (merrilymeredith, MHOWARD) |
| 103 |
|
| 104 |
Diab Jerius (DJERIUS) |
| 105 |
|
| 106 |
Eric Brine (IKEGAMI) |
| 107 |
|
| 108 |
szTheory |
| 109 |
|
| 110 |
José Joaquín Atria (JJATRIA) |
| 111 |
|
| 112 |
Pete Houston (openstrike, HOUSTON) |
| 113 |
|
| 114 |
Lukas Mai (MAUKE) |
| 115 |
|
| 116 |
=head1 COPYRIGHT AND LICENSE |
| 117 |
|
| 118 |
This software is copyright (c) 2015-2022 by Graham Ollis. |
| 119 |
|
| 120 |
This is free software; you can redistribute it and/or modify it under |
| 121 |
the same terms as the Perl 5 programming language system itself. |
| 122 |
|
| 123 |
=cut |