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