summaryrefslogtreecommitdiffstats
path: root/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/STDDEF.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/STDDEF.H
downloadStudium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.gz
Studium-33613a85afc4b1481367fbe92a17ee59c240250b.tar.bz2
add new repoHEADmaster
Diffstat (limited to 'Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/STDDEF.H')
-rw-r--r--Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/STDDEF.H57
1 files changed, 57 insertions, 0 deletions
diff --git a/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/STDDEF.H b/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/STDDEF.H
new file mode 100644
index 0000000..3235cbb
--- /dev/null
+++ b/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/STDDEF.H
@@ -0,0 +1,57 @@
+#pragma force_top_level
+#pragma include_only_once
+
+/* stddef.h: ANSI 'C' (X3J11 Oct 88) library header, section 4.1.4 */
+/* Copyright (C) Codemist Ltd., 1988 */
+/* Copyright (C) Advanced Risc Machines Ltd., 1991 */
+/* version 0.05 */
+
+/*
+ * The following types and macros are defined in several headers referred to in
+ * the descriptions of the functions declared in that header. They are also
+ * defined in this header file.
+ */
+
+#ifndef __stddef_h
+#define __stddef_h
+
+typedef int ptrdiff_t;
+#ifndef __STDC__
+# define ptrdiff_t int /* ANSI bans this -- delete unless pcc wants. */
+ /* the signed integral type of the result of subtracting two pointers. */
+#endif
+
+#ifndef __size_t
+# define __size_t 1
+typedef unsigned int size_t; /* others (e.g. <stdio.h>) define */
+ /* the unsigned integral type of the result of the sizeof operator. */
+#endif
+
+#ifndef __wchar_t
+# define __wchar_t 1
+typedef int wchar_t; /* also in <stdlib.h> */
+ /*
+ * An integral type whose range of values can represent distinct codes for
+ * all members of the largest extended character set specified among the
+ * supported locales; the null character shall have the code value zero and
+ * each member of the basic character set shall have a code value when used
+ * as the lone character in an integer character constant.
+ */
+#endif
+
+#ifndef NULL /* this hack is so that <stdio.h> can also define it */
+# define NULL 0
+ /* null pointer constant. */
+#endif
+
+#define offsetof(type, member) \
+ ((size_t)((char *)&(((___type type *)0)->member) - (char *)0))
+ /*
+ * expands to an integral constant expression that has type size_t, the
+ * value of which is the offset in bytes, from the beginning of a structure
+ * designated by type, of the member designated by the identifier (if the
+ * specified member is a bit-field, the behaviour is undefined).
+ */
+#endif
+
+/* end of stddef.h */