From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- .../ARM202U/INCLUDE/VARARGS.H | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/VARARGS.H (limited to 'Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/VARARGS.H') diff --git a/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/VARARGS.H b/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/VARARGS.H new file mode 100644 index 0000000..24bca37 --- /dev/null +++ b/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/VARARGS.H @@ -0,0 +1,26 @@ +#pragma force_top_level +#pragma include_only_once + +/* varargs.h: PCC 'C' library header - support for variadic function + * Copyright (C) Advanced Risc Machines Ltd., 1995 + */ + +/* + * RCS $Revision: 1.1 $ + * Checkin $Date: 1995/03/07 15:10:45 $ + * Revising $Author: amerritt $ + */ + +/* Defines a set of macros for handling variable length argument list + * in PCC style C. These macros rely on the compiler being able to + * accept the ... denotation. + */ + +typedef char *va_list; +#define va_alist int __va_alist, ... +#define va_dcl +#define va_start(list) list = (char *)&__va_alist +#define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1] +#define va_end(list) + +/* end of varargs.h */ -- cgit v1.2.3