crogram-pythub 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,22 @@
1
+ Copyright 2013-2014 RAD Game Tools and Valve Software
2
+ Copyright 2010-2014 Rich Geldreich and Tenacious Software LLC
3
+
4
+ All Rights Reserved.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in
14
+ all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
+ THE SOFTWARE.
@@ -0,0 +1,146 @@
1
+ #pragma once
2
+ #include <assert.h>
3
+ #include <stdint.h>
4
+ #include <stdlib.h>
5
+ #include <string.h>
6
+
7
+ #include "miniz_export.h"
8
+
9
+ /* ------------------- Types and macros */
10
+ typedef unsigned char mz_uint8;
11
+ typedef signed short mz_int16;
12
+ typedef unsigned short mz_uint16;
13
+ typedef unsigned int mz_uint32;
14
+ typedef unsigned int mz_uint;
15
+ typedef int64_t mz_int64;
16
+ typedef uint64_t mz_uint64;
17
+ typedef int mz_bool;
18
+
19
+ #define MZ_FALSE (0)
20
+ #define MZ_TRUE (1)
21
+
22
+ /* Works around MSVC's spammy "warning C4127: conditional expression is constant" message. */
23
+ #ifdef _MSC_VER
24
+ #define MZ_MACRO_END while (0, 0)
25
+ #else
26
+ #define MZ_MACRO_END while (0)
27
+ #endif
28
+
29
+ /* ------------------- Platform macros (extracted from miniz.h) */
30
+ #if defined(_M_IX86) || defined(_M_X64) || defined(__i386__) || defined(__i386) || defined(__i486__) || defined(__i486) || defined(i386) || defined(__ia64__) || defined(__x86_64__)
31
+ /* MINIZ_X86_OR_X64_CPU is only used to help set the below macros. */
32
+ #define MINIZ_X86_OR_X64_CPU 1
33
+ #else
34
+ #define MINIZ_X86_OR_X64_CPU 0
35
+ #endif
36
+
37
+ /* Set MINIZ_LITTLE_ENDIAN only if not set */
38
+ #if !defined(MINIZ_LITTLE_ENDIAN)
39
+ #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__)
40
+ #if (__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__)
41
+ #define MINIZ_LITTLE_ENDIAN 1
42
+ #else
43
+ #define MINIZ_LITTLE_ENDIAN 0
44
+ #endif
45
+ #else
46
+ #if MINIZ_X86_OR_X64_CPU
47
+ #define MINIZ_LITTLE_ENDIAN 1
48
+ #else
49
+ #define MINIZ_LITTLE_ENDIAN 0
50
+ #endif
51
+ #endif
52
+ #endif
53
+
54
+ /* Using unaligned loads and stores causes errors when using UBSan */
55
+ #if defined(__has_feature)
56
+ #if __has_feature(undefined_behavior_sanitizer)
57
+ #define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0
58
+ #endif
59
+ #endif
60
+
61
+ /* Set MINIZ_USE_UNALIGNED_LOADS_AND_STORES only if not set */
62
+ #if !defined(MINIZ_USE_UNALIGNED_LOADS_AND_STORES)
63
+ #if MINIZ_X86_OR_X64_CPU
64
+ /* Set MINIZ_USE_UNALIGNED_LOADS_AND_STORES to 1 on CPU's that permit efficient integer loads and stores from unaligned addresses. */
65
+ #define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 1
66
+ #define MINIZ_UNALIGNED_USE_MEMCPY
67
+ #else
68
+ #define MINIZ_USE_UNALIGNED_LOADS_AND_STORES 0
69
+ #endif
70
+ #endif
71
+
72
+ /* Set MINIZ_HAS_64BIT_REGISTERS to 1 if operations on 64-bit integers are reasonably fast (and don't involve compiler generated calls to helper functions). */
73
+ #if defined(_M_X64) || defined(_WIN64) || defined(__MINGW64__) || defined(_LP64) || defined(__LP64__) || defined(__ia64__) || defined(__x86_64__)
74
+ #define MINIZ_HAS_64BIT_REGISTERS 1
75
+ #else
76
+ #define MINIZ_HAS_64BIT_REGISTERS 0
77
+ #endif
78
+
79
+ #ifdef MINIZ_NO_STDIO
80
+ #define MZ_FILE void *
81
+ #else
82
+ #include <stdio.h>
83
+ #define MZ_FILE FILE
84
+ #endif /* #ifdef MINIZ_NO_STDIO */
85
+
86
+ #ifdef MINIZ_NO_TIME
87
+ typedef struct mz_dummy_time_t_tag
88
+ {
89
+ mz_uint32 m_dummy1;
90
+ mz_uint32 m_dummy2;
91
+ } mz_dummy_time_t;
92
+ #define MZ_TIME_T mz_dummy_time_t
93
+ #else
94
+ #define MZ_TIME_T time_t
95
+ #endif
96
+
97
+ #define MZ_ASSERT(x) assert(x)
98
+
99
+ #ifdef MINIZ_NO_MALLOC
100
+ #define MZ_MALLOC(x) NULL
101
+ #define MZ_FREE(x) (void)x, ((void)0)
102
+ #define MZ_REALLOC(p, x) NULL
103
+ #else
104
+ #define MZ_MALLOC(x) malloc(x)
105
+ #define MZ_FREE(x) free(x)
106
+ #define MZ_REALLOC(p, x) realloc(p, x)
107
+ #endif
108
+
109
+ #define MZ_MAX(a, b) (((a) > (b)) ? (a) : (b))
110
+ #define MZ_MIN(a, b) (((a) < (b)) ? (a) : (b))
111
+ #define MZ_CLEAR_OBJ(obj) memset(&(obj), 0, sizeof(obj))
112
+ #define MZ_CLEAR_ARR(obj) memset((obj), 0, sizeof(obj))
113
+ #define MZ_CLEAR_PTR(obj) memset((obj), 0, sizeof(*obj))
114
+
115
+ #if MINIZ_USE_UNALIGNED_LOADS_AND_STORES && MINIZ_LITTLE_ENDIAN
116
+ #define MZ_READ_LE16(p) *((const mz_uint16 *)(p))
117
+ #define MZ_READ_LE32(p) *((const mz_uint32 *)(p))
118
+ #else
119
+ #define MZ_READ_LE16(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U))
120
+ #define MZ_READ_LE32(p) ((mz_uint32)(((const mz_uint8 *)(p))[0]) | ((mz_uint32)(((const mz_uint8 *)(p))[1]) << 8U) | ((mz_uint32)(((const mz_uint8 *)(p))[2]) << 16U) | ((mz_uint32)(((const mz_uint8 *)(p))[3]) << 24U))
121
+ #endif
122
+
123
+ #define MZ_READ_LE64(p) (((mz_uint64)MZ_READ_LE32(p)) | (((mz_uint64)MZ_READ_LE32((const mz_uint8 *)(p) + sizeof(mz_uint32))) << 32U))
124
+
125
+ #ifdef _MSC_VER
126
+ #define MZ_FORCEINLINE __forceinline
127
+ #elif defined(__GNUC__)
128
+ #define MZ_FORCEINLINE __inline__ __attribute__((__always_inline__))
129
+ #else
130
+ #define MZ_FORCEINLINE inline
131
+ #endif
132
+
133
+ #ifdef __cplusplus
134
+ extern "C" {
135
+ #endif
136
+
137
+ extern MINIZ_EXPORT void *miniz_def_alloc_func(void *opaque, size_t items, size_t size);
138
+ extern MINIZ_EXPORT void miniz_def_free_func(void *opaque, void *address);
139
+ extern MINIZ_EXPORT void *miniz_def_realloc_func(void *opaque, void *address, size_t items, size_t size);
140
+
141
+ #define MZ_UINT16_MAX (0xFFFFU)
142
+ #define MZ_UINT32_MAX (0xFFFFFFFFU)
143
+
144
+ #ifdef __cplusplus
145
+ }
146
+ #endif
@@ -0,0 +1,5 @@
1
+ /* vendored stub — 上游由 CMake 生成;静态链接无需可见性修饰 */
2
+ #ifndef MINIZ_EXPORT_H
3
+ #define MINIZ_EXPORT_H
4
+ #define MINIZ_EXPORT
5
+ #endif