version 1.12, 2002/07/05 05:39:42 |
version 1.13, 2003/06/19 20:31:08 |
|
|
fprintf(fout, "extern \"C\" bool_t xdr_%s(XDR *, %s%s);\n", |
fprintf(fout, "extern \"C\" bool_t xdr_%s(XDR *, %s%s);\n", |
name, name, pointerp ? ("*") : ""); |
name, name, pointerp ? ("*") : ""); |
fprintf(fout,"#elif defined(__STDC__)\n"); |
fprintf(fout,"#elif defined(__STDC__)\n"); |
fprintf(fout, "extern bool_t xdr_%s(XDR *, %s%s);\n", |
fprintf(fout, "extern bool_t xdr_%s(XDR *, %s%s);\n", |
name, name, pointerp ? ("*") : ""); |
name, name, pointerp ? ("*") : ""); |
fprintf(fout,"#else /* Old Style C */\n"); |
fprintf(fout,"#else /* Old Style C */\n"); |
fprintf(fout, "bool_t xdr_%s();\n", name); |
fprintf(fout, "bool_t xdr_%s();\n", name); |
|
|
ext = "extern \"C\" "; |
ext = "extern \"C\" "; |
} else if (i==1) { |
} else if (i==1) { |
fprintf(fout,"\n#elif defined(__STDC__)\n"); |
fprintf(fout,"\n#elif defined(__STDC__)\n"); |
ext = "extern "; |
ext = "extern "; |
} else { |
} else { |
fprintf(fout,"\n#else /* Old Style C */\n"); |
fprintf(fout,"\n#else /* Old Style C */\n"); |
ext = "extern "; |
ext = "extern "; |
} |
} |
|
|
for (proc = vers->procs; proc != NULL; proc = proc->next) { |
for (proc = vers->procs; proc != NULL; proc = proc->next) { |