Lines Matching refs:hdr
336 static void EmitArgPrototypes(FILE *stm, Header hdr)
340 for (arg = hdr->inArgs; arg; arg = arg->next) {
350 for (arg = hdr->outArgs; arg; arg = arg->next) {
374 static void EmitANSIPrototypes(FILE *stm, Header hdr)
380 if ((hdr->inArgs == NULL) && (hdr->outArgs == NULL)) {
383 for (arg = hdr->inArgs; arg; arg = arg->next) {
396 if (hdr->inArgs && hdr->outArgs) fprintf(stm, ", ");
397 for (arg = hdr->outArgs; arg; arg = arg->next) {
1757 void EmitPrototype(Header hdr)
1762 fprintf(header, "extern void %s(", hdr->name);
1763 if (doANSI) EmitANSIPrototypes(header, hdr);
1764 else if (hdr->inArgs || hdr->outArgs) {
1766 EmitArgPrototypes(header, hdr);
1772 void EmitBodyHeader(Header hdr)
1782 if (hdr->isStatic) printf("static ");
1783 printf("void %s(", hdr->name);
1786 EmitANSIPrototypes(stdout,hdr);
1791 for (arg = hdr->inArgs; arg; arg = arg->next) {
1797 if (arg->next || hdr->outArgs) printf(", ");
1799 for (arg = hdr->outArgs; arg; arg = arg->next) {
1807 if (hdr->inArgs || hdr->outArgs) {
1808 EmitArgPrototypes(stdout, hdr);
1815 void EmitBody(Tokens body, Header hdr)
1817 Args arg, outArgs = hdr->outArgs;
1838 for (arg = hdr->inArgs; arg && !large; arg = arg->next) {
1867 ScanParamsAndEmitValues(body,hdr->inArgs);