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/STDDEF.H | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/STDDEF.H (limited to 'Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/STDDEF.H') 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. ) 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 */ + /* + * 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 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 */ -- cgit v1.2.3