CFCBindCore* CFCBindCore_init(CFCBindCore *self, CFCHierarchy *hierarchy, const char *header, const char *footer) { CFCUTIL_NULL_CHECK(hierarchy); CFCUTIL_NULL_CHECK(header); CFCUTIL_NULL_CHECK(footer); self->hierarchy = (CFCHierarchy*)CFCBase_incref((CFCBase*)hierarchy); self->c_header = CFCUtil_make_c_comment(header); self->c_footer = CFCUtil_make_c_comment(footer); return self; }
CFCC* CFCC_init(CFCC *self, CFCHierarchy *hierarchy, const char *header, const char *footer) { CFCUTIL_NULL_CHECK(hierarchy); CFCUTIL_NULL_CHECK(header); CFCUTIL_NULL_CHECK(footer); self->hierarchy = (CFCHierarchy*)CFCBase_incref((CFCBase*)hierarchy); self->html_gen = CFCCHtml_new(hierarchy, header, footer); self->c_header = CFCUtil_make_c_comment(header); self->c_footer = CFCUtil_make_c_comment(footer); self->man_header = CFCUtil_make_troff_comment(header); self->man_footer = CFCUtil_make_troff_comment(footer); return self; }
CFCPerl* CFCPerl_init(CFCPerl *self, CFCHierarchy *hierarchy, const char *lib_dir, const char *header, const char *footer) { CFCUTIL_NULL_CHECK(hierarchy); CFCUTIL_NULL_CHECK(lib_dir); CFCUTIL_NULL_CHECK(header); CFCUTIL_NULL_CHECK(footer); self->hierarchy = (CFCHierarchy*)CFCBase_incref((CFCBase*)hierarchy); self->lib_dir = CFCUtil_strdup(lib_dir); self->header = CFCUtil_strdup(header); self->footer = CFCUtil_strdup(footer); self->c_header = CFCUtil_make_c_comment(header); self->c_footer = CFCUtil_make_c_comment(footer); self->pod_header = CFCUtil_make_perl_comment(header); self->pod_footer = CFCUtil_make_perl_comment(footer); return self; }
void CFCPython_set_footer(CFCPython *self, const char *footer) { CFCUTIL_NULL_CHECK(footer); free(self->footer); self->footer = CFCUtil_make_c_comment(footer); }
void CFCPython_set_header(CFCPython *self, const char *header) { CFCUTIL_NULL_CHECK(header); free(self->header); self->header = CFCUtil_make_c_comment(header); }