361 |
{ |
{ |
362 |
char *star = ""; |
char *star = ""; |
363 |
|
|
364 |
if (side == side_client) |
if (side == side_client && (arg->direction & AD_IN)) |
365 |
star = "*"; |
star = "*"; |
366 |
|
|
367 |
if (arg->direction == AD_INOUT) |
if (arg->direction == AD_INOUT) |
512 |
len = start; |
len = start; |
513 |
} |
} |
514 |
|
|
515 |
if (arg->direction & AD_IN && !arg->type->attrs & NO_FIXED_LENGTH) |
if (arg->direction & AD_IN && !(arg->type->attrs & NO_FIXED_LENGTH)) |
516 |
ref = "&"; |
ref = "&"; |
517 |
if (arg->type->attrs & OUTOFLINE) |
if (arg->type->attrs & OUTOFLINE && (arg->direction & AD_IN)) |
518 |
ref = "&"; |
ref = "&"; |
519 |
|
|
520 |
output ("\a%s%s%s", ref, arg->cname, arg->next ? ", " : ""); |
output ("\a%s%s%s", ref, arg->cname, arg->next ? ", " : ""); |
894 |
{ |
{ |
895 |
char *stars = ""; |
char *stars = ""; |
896 |
|
|
897 |
if (arg->type->attrs != 0 || arg->type->array > 0) |
if ((arg->type->attrs != 0 || arg->type->array > 0) |
898 |
|
&& !(arg->type->attrs & RAW_CTYPE)) |
899 |
stars = "*"; |
stars = "*"; |
900 |
|
|
901 |
if (arg->type->decode) |
if (arg->type->decode) |
914 |
output ("%s __ret_code;\n", |
output ("%s __ret_code;\n", |
915 |
rt->returntype->cname); |
rt->returntype->cname); |
916 |
} |
} |
917 |
output ("kern_return_t __kr;\n"); |
output ("kern_return_t __kr __attribute__ ((unused));\n"); |
918 |
|
|
919 |
output ("\n"); |
output ("\n"); |
920 |
|
|