summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/rpcgen/Makefile5
-rw-r--r--usr.bin/rpcgen/rpc_cout.c16
-rw-r--r--usr.bin/rpcgen/rpc_main.c4
-rw-r--r--usr.bin/rpcgen/rpc_util.h2
4 files changed, 11 insertions, 16 deletions
diff --git a/usr.bin/rpcgen/Makefile b/usr.bin/rpcgen/Makefile
index d01e863..c298820 100644
--- a/usr.bin/rpcgen/Makefile
+++ b/usr.bin/rpcgen/Makefile
@@ -5,10 +5,5 @@ SRCS= rpc_main.c rpc_clntout.c rpc_cout.c rpc_hout.c rpc_parse.c \
rpc_sample.c rpc_scan.c rpc_svcout.c rpc_tblout.c rpc_util.c
WARNS?= 2
-#
-# This is a kludge to work around the fact that this program
-# uses 'inline' as a variable name.
-#
-CFLAGS+=-Dinline=rpcgen_inline
.include <bsd.prog.mk>
diff --git a/usr.bin/rpcgen/rpc_cout.c b/usr.bin/rpcgen/rpc_cout.c
index f1b288a..f8a18d4 100644
--- a/usr.bin/rpcgen/rpc_cout.c
+++ b/usr.bin/rpcgen/rpc_cout.c
@@ -161,7 +161,7 @@ print_header(def)
def->def.ty.rel));
/* Now add Inline support */
- if (inline == 0)
+ if (inline_size == 0)
return;
/* May cause lint to complain. but ... */
f_print(fout, "\tregister long *buf;\n\n");
@@ -465,10 +465,10 @@ int flag;
}
} else {
if (i > 0) {
- if (sizestr == NULL && size < inline){
+ if (sizestr == NULL && size < inline_size){
/*
* don't expand into inline code
- * if size < inline
+ * if size < inline_size
*/
while (cur != dl){
print_stat(indent + 1, &cur->decl);
@@ -522,8 +522,8 @@ int flag;
}
if (i > 0) {
- if (sizestr == NULL && size < inline){
- /* don't expand into inline code if size < inline */
+ if (sizestr == NULL && size < inline_size){
+ /* don't expand into inline code if size < inline_size */
while (cur != dl){
print_stat(indent + 1, &cur->decl);
cur = cur->next;
@@ -570,7 +570,7 @@ emit_struct(def)
bas_type *ptr;
int can_inline;
- if (inline == 0) {
+ if (inline_size == 0) {
/* No xdr_inlining at all */
for (dl = def->def.st.decls; dl != NULL; dl = dl->next)
print_stat(1, &dl->decl);
@@ -600,13 +600,13 @@ emit_struct(def)
break; /* can be inlined */
}
} else {
- if (size >= inline){
+ if (size >= inline_size){
can_inline = 1;
break; /* can be inlined */
}
size = 0;
}
- if (size >= inline)
+ if (size >= inline_size)
can_inline = 1;
if (can_inline == 0){ /* can not inline, drop back to old mode */
diff --git a/usr.bin/rpcgen/rpc_main.c b/usr.bin/rpcgen/rpc_main.c
index 7d54d23..5e59848 100644
--- a/usr.bin/rpcgen/rpc_main.c
+++ b/usr.bin/rpcgen/rpc_main.c
@@ -128,7 +128,7 @@ int mtflag = 0; /* Support for MT */
#define INLINE 0
/* length at which to start doing an inline */
-int inline = INLINE;
+int inline_size = INLINE;
/*
* Length at which to start doing an inline. INLINE = default
* if 0, no xdr_inline code
@@ -1178,7 +1178,7 @@ parseargs(argc, argv, cmd)
if (++i == argc) {
return (0);
}
- inline = atoi(argv[i]);
+ inline_size = atoi(argv[i]);
goto nextarg;
case 'n':
case 'o':
diff --git a/usr.bin/rpcgen/rpc_util.h b/usr.bin/rpcgen/rpc_util.h
index 7343827..ce21d4e 100644
--- a/usr.bin/rpcgen/rpc_util.h
+++ b/usr.bin/rpcgen/rpc_util.h
@@ -134,7 +134,7 @@ extern int newstyle;
extern int Cflag; /* ANSI-C/C++ flag */
extern int CCflag; /* C++ flag */
extern int tirpcflag; /* flag for generating tirpc code */
-extern int inline; /* if this is 0, then do not generate inline code */
+extern int inline_size; /* if this is 0, then do not generate inline code */
extern int mtflag;
/*
OpenPOWER on IntegriCloud