Rename the variable inline' to
inline_size'.
This commit is contained in:
parent
82e1becc5f
commit
122562cd2b
@ -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>
|
||||
|
@ -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 */
|
||||
|
@ -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':
|
||||
|
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user