passable_args_from_parameter_list( $parms )
Given $parms like args_from_parameter_list( $parms )
Returns two arrayrefs of arg types and var names.
count_newlines($string)
Returns the number of newlines (dont_edit($pmcfile)
Returns the "DO NOT EDIT THIS FILE" warning text.
return_statement($method, $body)
Generate the C code for a dynext_load_code($library_name, %classes)
_flatten_class_hierarchy($classes)
Flattens and returns the given dynpmc hierarchy into a list where all parents appear before their children.
Internal use only.
c_code_coda()
Returns the Parrot C code coda
const STRING *foo, int bar
,
returns , foo, bar
.
It's handy for passing into function calls.
\n
) in $string
.
$pmcfile
is the name of the original source *.pmc file.
return
statement,
if the body is empty then make a cast if needed.This method is imported by subclasses.
$library_name
is the name of the dynamic library to be created.%classes
is a map from the PMC names for which code is to be generated,
to dump info (PMC metadata).This function is exported.
open_file()
$fh = open_file( "<", $file );
Purpose: Utility subroutine.
Arguments: List of scalars: two required, one optional.
- action
- filename
String holding action/direction desired: <
for reading or >>
for writing or appending.
String holding name of file to be opened.
Return Values: Filehandle to file so opened.
Comment: Called within dump_vtable()
, read_dump()
, and dump_pmc()
.