c.h (812B)
1 #ifndef KIT_LANG_C_H 2 #define KIT_LANG_C_H 3 4 /* Public surface for the kit C frontend. 5 * 6 * The C frontend's vtable, kit_c_frontend_vtable, is exposed as an 7 * extern so libkit's lang_registry can wire it into c->frontends[] 8 * during compiler construction when KIT_LANG_C_ENABLED is set. 9 * 10 * The pipeline constructs its KitFrontendCompileOptions by copying 11 * KitCCompileOptions.code and .diagnostics, then planting the original 12 * KitCCompileOptions* in KitFrontendCompileOptions.language_options. The 13 * frontend casts language_options back to KitCCompileOptions* to recover 14 * the preprocessor and diagnostic configuration. 15 * 16 * Standalone preprocessing has moved to <kit/preprocess.h>'s 17 * kit_cpp_preprocess(). */ 18 19 #include <kit/frontend.h> 20 21 extern const KitFrontendVTable kit_c_frontend_vtable; 22 23 #endif