From 0865e25ca2d978d93a53ad64974e5eb0a371a997 Mon Sep 17 00:00:00 2001 From: hjl Date: Thu, 2 Dec 1999 20:29:05 +0000 Subject: [PATCH] Mon Nov 29 11:17:35 1999 H.J. Lu * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32, XDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32. --- ChangeLog | 5 +++++ tools/rpcgen/rpc_main.c | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0dc6f35..456dc1e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Nov 29 11:17:35 1999 H.J. Lu + + * tools/rpcgen/rpc_main.c (h_output): Generate IXDR_GET_INT32, + IXDR_PUT_INT32, IXDR_GET_U_INT32 and IXDR_PUT_U_INT32. + Mon Nov 29 11:17:35 1999 H.J. Lu * nfs-utils.spec (Version): Set to 0.1.3. diff --git a/tools/rpcgen/rpc_main.c b/tools/rpcgen/rpc_main.c index 9b600f3..39b667e 100644 --- a/tools/rpcgen/rpc_main.c +++ b/tools/rpcgen/rpc_main.c @@ -488,6 +488,19 @@ h_output(char *infile, char *define, int extend, char *outfile) f_print(fout, "#include \n\n"); + f_print(fout, "#ifndef IXDR_GET_INT32\n"); + f_print(fout, "#define IXDR_GET_INT32(buf) IXDR_GET_LONG((buf))\n"); + f_print(fout, "#endif\n"); + f_print(fout, "#ifndef IXDR_PUT_INT32\n"); + f_print(fout, "#define IXDR_PUT_INT32(buf, v) IXDR_PUT_LONG((buf), (v))\n"); + f_print(fout, "#endif\n"); + f_print(fout, "#ifndef IXDR_GET_U_INT32\n"); + f_print(fout, "#define IXDR_GET_U_INT32(buf) IXDR_GET_U_LONG((buf))\n"); + f_print(fout, "#endif\n"); + f_print(fout, "#ifndef IXDR_PUT_U_INT32\n"); + f_print(fout, "#define IXDR_PUT_U_INT32(buf, v) IXDR_PUT_U_LONG((buf), (v))\n"); + f_print(fout, "#endif\n"); + tell = ftell(fout); /* print data definitions */ while ((def = get_definition()) != NULL) { -- 2.39.2