version 1.3, 1996/09/15 08:52:41 |
version 1.4, 1997/07/25 21:05:39 |
|
|
int pointerp; |
int pointerp; |
{ |
{ |
|
|
f_print(fout,"#ifdef __cplusplus \n"); |
f_print(fout,"#ifdef __cplusplus\n"); |
f_print(fout, "extern \"C\" bool_t xdr_%s(XDR *, %s%s);\n", |
f_print(fout, "extern \"C\" bool_t xdr_%s(XDR *, %s%s);\n", |
name, |
name, |
name, pointerp ? ("*") : ""); |
name, pointerp ? ("*") : ""); |
f_print(fout,"#elif __STDC__ \n"); |
f_print(fout,"#elif defined(__STDC__)\n"); |
f_print(fout, "extern bool_t xdr_%s(XDR *, %s%s);\n", |
f_print(fout, "extern bool_t xdr_%s(XDR *, %s%s);\n", |
name, |
name, |
name, pointerp ? ("*") : ""); |
name, pointerp ? ("*") : ""); |
f_print(fout,"#else /* Old Style C */ \n"); |
f_print(fout,"#else /* Old Style C */\n"); |
f_print(fout, "bool_t xdr_%s();\n", name); |
f_print(fout, "bool_t xdr_%s();\n", name); |
f_print(fout,"#endif /* Old Style C */ \n\n"); |
f_print(fout,"#endif /* Old Style C */\n\n"); |
} |
} |
|
|
|
|
|
|
f_print(fout,"\n#ifdef __cplusplus\n"); |
f_print(fout,"\n#ifdef __cplusplus\n"); |
ext="extern \"C\" "; |
ext="extern \"C\" "; |
}else if ( i== 1){ |
}else if ( i== 1){ |
f_print(fout,"\n#elif __STDC__\n"); |
f_print(fout,"\n#elif defined(__STDC__)\n"); |
ext="extern " ; |
ext="extern " ; |
}else{ |
}else{ |
f_print(fout,"\n#else /* Old Style C */ \n"); |
f_print(fout,"\n#else /* Old Style C */\n"); |
ext="extern "; |
ext="extern "; |
} |
} |
|
|
|
|
} |
} |
|
|
} |
} |
f_print(fout,"#endif /* Old Style C */ \n"); |
f_print(fout,"#endif /* Old Style C */\n"); |
} |
} |
} |
} |
|
|