This skill provides a structured approach for refactoring a C codebase to eliminate `extern` function declarations, a common task in large-scale decompilation projects. It guides the user through identifying issues with a dedicated analysis script, implementing fixes by creating or updating header files, and verifying the build's integrity. The skill also includes best practices for resolving complex type conflicts and circular dependencies, ensuring all functions are correctly defined and included for improved code organization and maintainability.
主要功能
01Provides a workflow for identifying and fixing missing header declarations using project-specific scripts.
02Offers guidelines for resolving type conflicts, prioritizing precise types over `void*`.
03Defines a process for handling and logging unresolvable issues to prevent repeated work.
0454 GitHub stars
05Includes strategies for breaking circular dependencies between files.
06Specifies project style guides, such as using `#pragma once` for header guards.
使用场景
01Standardizing function prototypes across a large C decompilation project.
02Refactoring a C codebase to remove all `extern` function declarations.
03Improving a project's include structure for better code organization and maintainability.