See #1122 and TT #2140 static the unused PackFile_ functions. rename and deprecate the PackFile_ functions, which are not static. move the segments functions to segments.c PackFile_new => Parrot_pf_new Parrot_new_debug_seg => Parrot_pf_new_debug_segment PackFile_Segment_new_seg => Parrot_pf_new_segment Parrot_switch_to_cs => Parrot_pf_switch_to_cs Parrot_debug_add_mapping => Parrot_pf_debug_add_mapping PackFile_destroy => Parrot_pf_destroy Parrot_fixup_subs => Parrot_pf_fixup_subs Parrot_debug_pc_to_filename => Parrot_pf_debug_pc_to_filename PackFile_Annotations_lookup => Parrot_pf_annotations_lookup PackFile_Annotations_add_entry => Parrot_pf_annotations_add_entry PackFile_Segment_destroy => Parrot_pf_destroy_segment PackFile_add_segment => PackFile_map_segments => PackFile_find_segment => Parrot_pf_find_segment unexport: PackFile_Annotations_new PackFile_ConstTable_* PackFile_funcs_register
Fixed instances of: PackFile_new, PackFile_destroy, Parrot_io_putps, Parrot_io_open_handle, Parrot_io_close_handle, Parrot_io_readline, PackFile_unpack, Parrot_io_flush_handle, Parrot_io_puts Add Parrot_pf_unpack. Also fix some format strings.
remove some -Wunused-variable and unneeded function calls, io cleanup fix one logical autoflush error in Parrot_io_open add pbc_merge_annotations to pbc_merge, remove some dead functions: setup_imcc, do_a_better_error_message, Parrot_pcc_add_invocant use switch for gc_get_info (I trust the compilers not to overdo it)
…fix a little bit of formatting so the debugging statement doesn't exceed the line length requirement.
…docs; one function still failing for unknown reason.
…icating string constants
…clean up some code. Use it in pbc_merge, along with some other magic, to implement merging annotations. Annotations need a lot more documentation.
…path for it. That way every time we have a PackfileView we've made a best effort to fill in all fields. Add a get_packfile() method to Sub to get the packfile that owns it. This exposes some subtle errors
…ew uses that were left of them. These uses are mostly in the various frontends. TT #1910
…have a routine to wrap it in a PMC if needed. Delete the PackfileManager PMC type. It was worthless. Move most of the functionality to PackfileView. Move the ability to get the current packfileview pmc from the interpreter
…eed to figure out the algorithm first before I put more code down