#ifdef __cplusplus
extern "C" {
#endif
#ifndef H_SCCSID
#include <sccs.h>
#endif /* ~H_SCCSID */
H_SCCSID(@(#) varargs.h 1.10     LM 17:20:04 1/17/90 C 15:33:48 3/1/90)   
/*      @(#)varargs.h	5.2 u370  source        */
/* 
* Copyright (C) 1989, 1989, Locus Computing Corporation
 * All Rights Reserved
 */ 
/* 
 * (C) Copyright IBM Corp. 1989 
 * All Rights Reserved 
 * Licensed Materials - Property of IBM 
 */
/*	varargs.h	4.1	83/05/03	*/

#if	defined(u370) && !defined(__HIGHC__)

typedef char *va_list;
#define va_alist va_alist1, va_alist2, va_alist3, va_alist4
#define va_dcl int va_alist1, va_alist2, va_alist3, va_alist4;
#define va_start(list) list = (char *) &va_alist1
#define va_end(list)
#define va_arg(list, mode) ((mode *)(list = \
	(char *) ((int)list + 2*sizeof(mode) - 1 & -sizeof(mode))))[-1]

#else	

typedef char *va_list;
# define va_dcl int va_alist;
# define va_start(list) list = (char *) &va_alist
# define va_end(list)
# define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]

#endif
#ifdef __cplusplus
}
#endif
