fn apply_fixups(funcs: &mut [McFunction], func_starts: &HashMap<String, McFuncId>) {
    apply_branch_fixups(funcs);
    apply_return_fixups(funcs);
    apply_func_ref_fixups(funcs, func_starts);
    apply_call_fixups(funcs, func_starts);
    apply_cmd_count_fixups(funcs, func_starts);

    // Make sure we didn't miss anything
    for func in funcs.iter() {
        for cmd in func.cmds.iter() {
            let as_string = cmd.to_string();
            if as_string.contains("%%fixup") || as_string.contains("!FIXUP") {
                todo!("{}", cmd)
            }
        }
    }
}
// This doesn't change what the function clobbers
This doesn't change what the function clobbers
This doesn ' t change what the function clobbers
fn apply_fixups(funcs: &mut [McFunction], func_starts: &HashMap<String, McFuncId>) {
    apply_branch_fixups(funcs);
    apply_return_fixups(funcs);
    apply_func_ref_fixups(funcs, func_starts);
    apply_call_fixups(funcs, func_starts);
    apply_cmd_count_fixups(funcs, func_starts);
    // Make sure we didn't miss anything
    for func in funcs.iter() {
        for cmd in func.cmds.iter() {
            let as_string = cmd.to_string();
            if as_string.contains("%%fixup") || as_string.contains("!FIXUP") {
                todo!("{}", cmd)
            }
        }
    }
}
fn apply_fixups ( funcs : & mut [ McFunction ] , func_starts : & HashMap < String , McFuncId > ) { apply_branch_fixups ( funcs ) ; apply_return_fixups ( funcs ) ; apply_func_ref_fixups ( funcs , func_starts ) ; apply_call_fixups ( funcs , func_starts ) ; apply_cmd_count_fixups ( funcs , func_starts ) ; // Make sure we didn't miss anything for func in funcs . iter ( ) { for cmd in func . cmds . iter ( ) { let as_string = cmd . to_string ( ) ; if as_string . contains ( " " ) || as_string . contains ( " " ) { todo ! ( " " cmd ) } } } }
This doesn't change what the function clobbers
This doesn ' t change what the function clobbers
funcs
&mut [McFunction]
func_starts
&HashMap<String, McFuncId>
funcs
&mut [McFunction]
func_starts
&HashMap<String, McFuncId>