1993-06-28 22:35:18 +00:00
|
|
|
/* Definitions for all PA machines. */
|
|
|
|
|
|
|
|
#define MAKEVA_START(list) \
|
|
|
|
list->argindex = list->nargs * list->max_arg_size;
|
|
|
|
|
|
|
|
#define MAKEVA_ARG(list, argaddr, argsize) \
|
1993-06-29 18:53:40 +00:00
|
|
|
if (argsize > 8) \
|
|
|
|
/* Currently this never happens; printf_command only uses argsize */ \
|
|
|
|
/* of sizeof (int), sizeof (double), or sizeof (long long). */ \
|
|
|
|
error ("MAKEVA_ARG not fully written for hp-pa"); \
|
|
|
|
memcpy (&list->arg_bytes[list->argindex - argsize], argaddr, argsize); \
|
|
|
|
if (argsize <= 4) \
|
|
|
|
list->argindex -= 4; \
|
|
|
|
else if (argsize <= 8) \
|
|
|
|
list->argindex -= 8; \
|
1993-06-28 22:35:18 +00:00
|
|
|
|
1993-06-29 18:53:40 +00:00
|
|
|
/* The address of the arglist is the address right after the args
|
1993-06-28 22:35:18 +00:00
|
|
|
(which is what you'd expect). */
|
|
|
|
#define MAKEVA_END(list) \
|
|
|
|
return (va_list) (list->arg_bytes \
|
|
|
|
+ list->nargs * list->max_arg_size)
|