/* Write out a gcc function header. */ static void write_gcc_func_header(char *package, char *name, struct params *params, struct params *rets) { int first; struct params *p; define_gcc_return_type(package, name, rets); write_gcc_return_type(package, name, rets); printf(" %s_%s(", package, name); first = 1; write_params(params, &first); printf(") __asm__ (GOSYM_PREFIX \""); if (pkgpath != NULL) printf("%s", pkgpath); else if (prefix != NULL) printf("%s.%s", prefix, package); else printf("%s", package); printf(".%s\");\n", name); write_gcc_return_type(package, name, rets); printf(" %s_%s(", package, name); first = 1; write_params(params, &first); printf(")\n{\n"); for (p = rets; p != NULL; p = p->next) printf(" %s %s;\n", p->type, p->name); }
/* Write out a gcc function header. */ static void write_gcc_func_header(char *package, char *name, struct params *params, struct params *rets) { int first; struct params *p; define_gcc_return_type(package, name, rets); write_gcc_return_type(package, name, rets); printf(" %s_%s(", package, name); first = 1; write_params(params, &first); printf(") asm (\"%s.%s\");\n", package, name); write_gcc_return_type(package, name, rets); printf(" %s_%s(", package, name); first = 1; write_params(params, &first); printf(")\n{\n"); for (p = rets; p != NULL; p = p->next) printf(" %s %s;\n", p->type, p->name); }