diff --git a/VersionASM b/VersionASM index 05569b0e78a95b47ce89f76caf94ad7463049efd..53eebb69df9fa15818c516e26e375834ac95109e 100644 --- a/VersionASM +++ b/VersionASM @@ -5,8 +5,10 @@ GBLA Module_Version GBLS Module_MinorVersion GBLS Module_Date -Module_MajorVersion SETS "4.92" -Module_Version SETA 492 + GBLS Module_FullVersion +Module_MajorVersion SETS "4.93" +Module_Version SETA 493 Module_MinorVersion SETS "" -Module_Date SETS "06 Dec 1998" - END +Module_Date SETS "11 May 1999" +Module_FullVersion SETS "4.93" + END diff --git a/VersionNum b/VersionNum index 20b48a697a53508a863ba5e6cff39551452d69eb..2b70099a859e04250f2830f77fff1833dc6ec064 100644 --- a/VersionNum +++ b/VersionNum @@ -1,14 +1,15 @@ -/* (4.92) +/* (4.93) * * This file is automatically maintained by srccommit, do not edit manually. * */ -#define Module_MajorVersion_CMHG 4.92 +#define Module_MajorVersion_CMHG 4.93 #define Module_MinorVersion_CMHG -#define Module_Date_CMHG 06 Dec 1998 +#define Module_Date_CMHG 11 May 1999 -#define Module_MajorVersion "4.92" -#define Module_Version 492 +#define Module_MajorVersion "4.93" +#define Module_Version 493 #define Module_MinorVersion "" -#define Module_Date "06 Dec 1998" +#define Module_Date "11 May 1999" +#define Module_FullVersion "4.93" diff --git a/clib/h/inttypes b/clib/h/inttypes new file mode 100644 index 0000000000000000000000000000000000000000..794b1a2d2ca1da6f828ccf419ae6ad94e3a42ab8 --- /dev/null +++ b/clib/h/inttypes @@ -0,0 +1,157 @@ +/* Copyright 1999 Element 14 Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#pragma force_top_level +#pragma include_only_once + +/* inttypes.h: ISO 'C' (WG14/N843 Aug 98) library header, section 7.8 */ +/* Copyright (C) Element 14 Ltd. 1999 */ +/* version 1.00 */ + +#ifndef __inttypes_h +#define __inttypes_h + +#include "stdint.h" + +/* + * A set of C9X-style definitions that make sense for the current + * (Norcroft 5) implementation. Note that we have no 64-bit types, + * as a conforming C9X implementation must. We also don't supply + * the four functions we're supposed to supply. + */ + +#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) + +#define PRId8 "d" +#define PRId16 "d" +#define PRId32 "d" +#define PRIdLEAST8 "d" +#define PRIdLEAST16 "d" +#define PRIdLEAST32 "d" +#define PRIdFAST8 "d" +#define PRIdFAST16 "d" +#define PRIdFAST32 "d" +#define PRIdMAX "d" +#define PRIdPTR "d" + +#define PRIi8 "i" +#define PRIi16 "i" +#define PRIi32 "i" +#define PRIiLEAST8 "i" +#define PRIiLEAST16 "i" +#define PRIiLEAST32 "i" +#define PRIiFAST8 "i" +#define PRIiFAST16 "i" +#define PRIiFAST32 "i" +#define PRIiMAX "i" +#define PRIiPTR "i" + +#define PRIo8 "o" +#define PRIo16 "o" +#define PRIo32 "o" +#define PRIoLEAST8 "o" +#define PRIoLEAST16 "o" +#define PRIoLEAST32 "o" +#define PRIoFAST8 "o" +#define PRIoFAST16 "o" +#define PRIoFAST32 "o" +#define PRIoMAX "o" +#define PRIoPTR "o" + +#define PRIu8 "u" +#define PRIu16 "u" +#define PRIu32 "u" +#define PRIuLEAST8 "u" +#define PRIuLEAST16 "u" +#define PRIuLEAST32 "u" +#define PRIuFAST8 "u" +#define PRIuFAST16 "u" +#define PRIuFAST32 "u" +#define PRIuMAX "u" +#define PRIuPTR "u" + +#define PRIx8 "x" +#define PRIx16 "x" +#define PRIx32 "x" +#define PRIxLEAST8 "x" +#define PRIxLEAST16 "x" +#define PRIxLEAST32 "x" +#define PRIxFAST8 "x" +#define PRIxFAST16 "x" +#define PRIxFAST32 "x" +#define PRIxMAX "x" +#define PRIxPTR "x" + +#define PRIX8 "X" +#define PRIX16 "X" +#define PRIX32 "X" +#define PRIXLEAST8 "X" +#define PRIXLEAST16 "X" +#define PRIXLEAST32 "X" +#define PRIXFAST8 "X" +#define PRIXFAST16 "X" +#define PRIXFAST32 "X" +#define PRIXMAX "X" +#define PRIXPTR "X" + +#define SCNd16 "hd" +#define SCNd32 "d" +#define SCNdLEAST16 "hd" +#define SCNdLEAST32 "d" +#define SCNdFAST16 "d" +#define SCNdFAST32 "d" +#define SCNdMAX "d" +#define SCNdPTR "d" + +#define SCNi16 "hi" +#define SCNi32 "i" +#define SCNiLEAST16 "hi" +#define SCNiLEAST32 "i" +#define SCNiFAST16 "i" +#define SCNiFAST32 "i" +#define SCNiMAX "i" +#define SCNiPTR "i" + +#define SCNo16 "ho" +#define SCNo32 "o" +#define SCNoLEAST16 "ho" +#define SCNoLEAST32 "o" +#define SCNoFAST16 "o" +#define SCNoFAST32 "o" +#define SCNoMAX "o" +#define SCNoPTR "o" + +#define SCNu16 "hu" +#define SCNu32 "u" +#define SCNuLEAST16 "hu" +#define SCNuLEAST32 "u" +#define SCNuFAST16 "u" +#define SCNuFAST32 "u" +#define SCNuMAX "u" +#define SCNuPTR "u" + +#define SCNx16 "hx" +#define SCNx32 "x" +#define SCNxLEAST16 "hx" +#define SCNxLEAST32 "x" +#define SCNxFAST16 "x" +#define SCNxFAST32 "x" +#define SCNxMAX "x" +#define SCNxPTR "x" + +#endif + +#endif + +/* end of inttypes.h */ diff --git a/clib/h/iso646 b/clib/h/iso646 new file mode 100644 index 0000000000000000000000000000000000000000..48d023bd51b6d3804b2a6db28c576cf804c4a56f --- /dev/null +++ b/clib/h/iso646 @@ -0,0 +1,39 @@ +/* Copyright 1999 Element 14 Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#pragma force_top_level +#pragma include_only_once + +/* iso646.h: ISO 'C' (WG14/N843 Aug 98) library header, section 7.9 */ +/* Copyright (C) Element 14 Ltd. 1999 */ +/* version 1.00 */ + +#ifndef __iso646_h +#define __iso646_h + +#define and && +#define and_eq &= +#define bitand & +#define bitor | +#define compl ~ +#define not ! +#define not_eq != +#define or || +#define or_eq |= +#define xor ^ +#define xor_eq ^= + +#endif + +/* end of iso646.h */ diff --git a/clib/h/stdbool b/clib/h/stdbool new file mode 100644 index 0000000000000000000000000000000000000000..04ca4fcf5848efa11a2ec7fe58a6a784c7a9365e --- /dev/null +++ b/clib/h/stdbool @@ -0,0 +1,62 @@ +/* Copyright 1999 Element 14 Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#pragma force_top_level +#pragma include_only_once + +/* stdbool.h: ISO 'C' (WG14/N843 Aug 98) library header, section 7.16 */ +/* Copyright (C) Element 14 Ltd. 1999 */ +/* version 1.00 */ + +#ifndef __stdbool_h +#define __stdbool_h + +#define false 0 +#define true 1 + +#ifdef __STDC_VERSION__ +#if __STDC_VERSION__ >= 199901L + +/* + * According to the FDIS of August 1998, _Bool is a built-in type, and + * bool is #defined to it. This will require compiler support... + */ +#define bool _Bool + +#define __bool_true_false_are_defined 1 + +#endif +#endif + +#ifndef __bool_true_false_are_defined + +/* + * This is bool, as per the working draft of November 1997. We can do this + * without tweaking the compiler. This should be largely indistiguishable + * when used in a conformant manner. Note that sizeof(bool) will almost + * certainly shrink from 4 to 1 when _Bool is implemented... + * + * Would like bool to be a char, but it must be useable as a bitfield. + * Therefore, we use int. Note that an int bitfield is unsigned, so bool:1 + * is unsigned, as required. + */ +typedef int bool; + +#define __bool_true_false_are_defined 1 + +#endif + +#endif + +/* end of stdbool.h */ diff --git a/clib/h/stdint b/clib/h/stdint new file mode 100644 index 0000000000000000000000000000000000000000..c5e05ba3033361d75fb160bf82cf1c0e447321ae --- /dev/null +++ b/clib/h/stdint @@ -0,0 +1,129 @@ +/* Copyright 1999 Element 14 Ltd + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#pragma force_top_level +#pragma include_only_once + +/* stdint.h: ISO 'C' (WG14/N843 Aug 98) library header, section 7.18 */ +/* Copyright (C) Element 14 Ltd. 1999 */ +/* version 1.00 */ + +#ifndef __stdint_h +#define __stdint_h + +/* + * A set of C9X-style definitions that make sense for the current + * (Norcroft 5) implementation. Note that we have no 64-bit types, + * as a conforming C9X implementation must. + */ + +/* Types with exactly the specified width */ +typedef signed char int8_t; +typedef signed short int16_t; +typedef signed int int32_t; +typedef unsigned char uint8_t; +typedef unsigned short uint16_t; +typedef unsigned int uint32_t; + +/* The smallest types with at least the specified width */ +typedef signed char int_least8_t; +typedef signed short int_least16_t; +typedef signed int int_least32_t; +typedef unsigned char uint_least8_t; +typedef unsigned short uint_least16_t; +typedef unsigned int uint_least32_t; + +/* The "fastest" types with at least the specified width */ +typedef signed char int_fast8_t; +typedef signed int int_fast16_t; /* actually 32 bits */ +typedef signed int int_fast32_t; +typedef unsigned char uint_fast8_t; +typedef unsigned int uint_fast16_t; /* actually 32 bits */ +typedef unsigned int uint_fast32_t; + +/* Integer types capable of holding a "void *" pointer */ +typedef signed int intptr_t; +typedef unsigned int uintptr_t; + +/* Integer types that can hold any value of any type */ +typedef signed int intmax_t; +typedef unsigned int uintmax_t; + +#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) + +#define INT8_MIN (-128) +#define INT16_MIN (-32768) +#define INT32_MIN (~0x7FFFFFFF) +#define INT8_MAX 127 +#define INT16_MAX 32767 +#define INT32_MAX 2147483647 +#define UINT8_MAX 255u +#define UINT16_MAX 65535u +#define UINT32_MAX 4294967295u + +#define INT_LEAST8_MIN (-128) +#define INT_LEAST16_MIN (-32768) +#define INT_LEAST32_MIN (~0x7FFFFFFF) +#define INT_LEAST8_MAX 127 +#define INT_LEAST16_MAX 32767 +#define INT_LEAST32_MAX 2147483647 +#define UINT_LEAST8_MAX 255u +#define UINT_LEAST16_MAX 65535u +#define UINT_LEAST32_MAX 4294967295u + +#define INT_FAST8_MIN (-128) +#define INT_FAST16_MIN (~0x7FFFFFFF) +#define INT_FAST32_MIN (~0x7FFFFFFF) +#define INT_FAST8_MAX 127 +#define INT_FAST16_MAX 2147483647 +#define INT_FAST32_MAX 2147483647 +#define UINT_FAST8_MAX 255u +#define UINT_FAST16_MAX 4294967295u +#define UINT_FAST32_MAX 4294967295u + +#define INTPTR_MIN (~0x7FFFFFFF) +#define INTPTR_MAX 2147483647 +#define UINTPTR_MAX 4294967295u + +#define INTMAX_MIN (~0x7FFFFFFF) +#define INTMAX_MAX 2147483647 +#define UINTMAX_MAX 4294967295u + +#define PTRDIFF_MIN (~0x7FFFFFFF) +#define PTRDIFF_MAX 2147483647 + +#define SIZE_MAX 4294967295u + +#define WCHAR_MIN (~0x7FFFFFFF) +#define WCHAR_MAX 2147483647 + +#endif + +#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) + +#define INT8_C(n) n +#define INT16_C(n) n +#define INT32_C(n) n +#define UINT8_C(n) n##u +#define UINT16_C(n) n##u +#define UINT32_C(n) n##u + +#define INTMAX_C(n) n +#define UINTMAX_C(n) n##u + +#endif + +#endif + +/* end of stdint.h */