Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

extutils::xsbuilder::parsesource(3pm) [debian man page]

XSBuilder::ParseSource(3pm)				User Contributed Perl Documentation			       XSBuilder::ParseSource(3pm)

NAME
ExtUtils::XSBuilder::ParseSource - parse C source files DESCRIPTION For more information, see ExtUtils::XSBuilder extent_parser (o) Allows the user to call the Extent or Replace method of the parser to add new syntax rules. This is mainly useful to include expansions for preprocessor macros. preprocess (o) Allows the user to preprocess the source before it is given to the parser. You may modify the source, which is given as first argument in place. include_dirs (o) Returns a reference to the list of directories that should be searched for include files which contain the functions, structures, etc. to be extracted. Default: '.' include_paths (o) Returns a reference to a list of directories that are given as include directories to the C compiler. This is mainly used to strip these directories from filenames to convert absolute paths to relative paths. Default: empty list ("[]") unwanted_includes (o) Returns a reference to a list of include files that should not be processed. Default: empty list ("[]") sort_includes (o, include_list) Passed an array ref of include files, it allows the user to define the sort order, so includes are processed correctly. Default: return the passed array reference. find_includes (o) Returns a list of include files to be processed. Default: search directories given by "include_dirs" for all files and build a list of include files. All files starting with a word matched by "unwanted_includes" are not included in the list. handle_define (o) Passed a hash ref with the definition of a define, may modify it. Return false to discard it, return true to keep it. Default: 1 handle_enum (o) Passed a hash ref with the definition of a enum value, may modify it. Return false to discard it, return true to keep it. Default: 1 handle_struct (o) Passed a hash ref with the definition of a struct, may modify it. Return false to discard it, return true to keep it. Default: 1 handle_function (o) Passed a hash ref with the definition of a function, may modify it. Return false to discard it, return true to keep it. Default: 1 handle_callback (o) Passed a hash ref with the definition of a callback, may modify it. Return false to discard it, return true to keep it. Default: 1 package (o) Return package name for tables Default: 'MY' targetdir (o) Return name of target directory where to write tables Default: './xsbuilder/tables' run Call this class method to parse your source. Before you can do so you must provide a class that overrides the defaults in ExtUtils::XSBuilder::ParseSource. After that you scan the source files with MyClass -> run ; perl v5.10.1 2005-08-22 XSBuilder::ParseSource(3pm)

Check Out this Related Man Page

XSBuilder::WrapXS(3pm)					User Contributed Perl Documentation				    XSBuilder::WrapXS(3pm)

NAME
ExtUtils::XSBuilder::WrapXS - create perl XS wrappers for C functions DESCRIPTION For more information, see ExtUtils::XSBuilder new_parsesource (o) Returns an array ref of new ParseSource objects for all source files that should be used to generate XS files new_typemap (o) Returns a new typemap object new_podtemplate (o) Returns a new podtemplate object xs_includes (o) Returns a list of XS include files. Default: use all include files that "ParseSource::find_includes" returns, but strip path info xs_glue_dirs (o) Returns a list of additional XS glue directories to seach for maps in. xs_base_dir (o) Returns a directory which serves as a base for other directories. Default: '.' xs_map_dir (o) Returns the directory to search for map files in Default: "<xs_base_dir"/xsbuilder/maps> xs_incsrc_dir (o) Returns the directory to search for files to include into the source. For example, "<xs_incsrc_dir"/Apache/DAV/Resource/Resource_pm> will be included into the "Apache::DAV::Resource" module. Default: "<xs_base_dir"/xsbuilder> xs_include_dir (o) Returns a directory to search for include files for pm and XS Default: "<xs_base_dir"/xsinclude> xs_target_dir (o) Returns the directory to write generated XS and header files in Default: "<xs_base_dir"/xs> makefilepl_text (o) Returns text for Makefile.PL h_filename_prefix (o) Defines a prefix for generated header files Default: 'xs_' my_xs_prefix (o) Defines a prefix used for all XS functions Default: 'xs_' my_cnv_prefix (o) Defines a prefix used for all conversion functions/macros. Default: "my_xs_prefix" needs_prefix (o, name) Returns true if the passed name should be prefixed pm_text (o, module, isa, code) Returns the text of a ".pm" file, or undef if no ".pm" file should be written. Default: Create a ".pm" file which bootstraps the XS code mapline_elem (o, elem) Called for each structure element that is written to the map file by checkmaps. Allows the user to change the element name, for example adding a different perl name. Default: returns the element unmodified mapline_func (o) Called for each function that is written to the map file by checkmaps. Allows the user to change the function name, for example adding a different perl name. Default: returns the element unmodified perl v5.10.1 2010-02-09 XSBuilder::WrapXS(3pm)
Man Page