summaryrefslogtreecommitdiffstats
path: root/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/VARARGS.H
diff options
context:
space:
mode:
authorSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
committerSven Eisenhauer <sven@sven-eisenhauer.net>2023-11-10 15:11:48 +0100
commit33613a85afc4b1481367fbe92a17ee59c240250b (patch)
tree670b842326116b376b505ec2263878912fca97e2 /Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/VARARGS.H
downloadStudium-master.tar.gz
Studium-master.tar.bz2
add new repoHEADmaster
Diffstat (limited to 'Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/VARARGS.H')
-rw-r--r--Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/VARARGS.H26
1 files changed, 26 insertions, 0 deletions
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 */