Added a function pointer argument to display_compilation_results.