11 Aug 2011 02:55:56 UTC
- Distribution: Lucy
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (0 / 0 / 0)
- KwaliteeBus factor: 1
- License: apache_2_0
- Perl: v5.8.3
- Activity24 month
- Download (1.02MB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:6 non-PAUSE usersCREAMYG Marvin Humphreyand 1 contributors
- The Apache Lucy Project <lucy-dev at incubator dot apache dot org>
Clownfish::Binding::Core::File - Generate core C code for a Clownfish file.
This module is the companion to Clownfish::File, generating the C code needed to implement the file's specification.
There is a one-to-one mapping between Clownfish header files and autogenerated .h and .c files. If Foo.cfh includes both Foo and Foo::FooJr, then it is necessary to pound-include "Foo.h" in order to get FooJr's interface -- not "Foo/FooJr.h", which won't exist.
Clownfish::Binding::Core::File->write_c( file => $file, # required dest => '/path/to/autogen_dir', # required header => "/* Autogenerated file. */\n", # required footer => $copyfoot, # required );
Generate a C header file containing all class declarations and literal C blocks.
file - A Clownfish::File.
dest - The directory under which autogenerated files are being written.
header - Text which will be prepended to each generated C file -- typically, an "autogenerated file" warning.
footer - Text to be appended to the end of each generated C file -- typically copyright information.