rubydex 0.1.0.beta11 → 0.1.0.beta13

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.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +23 -23
  3. data/README.md +125 -125
  4. data/THIRD_PARTY_LICENSES.html +2018 -945
  5. data/exe/rdx +47 -47
  6. data/ext/rubydex/declaration.c +453 -388
  7. data/ext/rubydex/declaration.h +23 -23
  8. data/ext/rubydex/definition.c +284 -197
  9. data/ext/rubydex/definition.h +28 -28
  10. data/ext/rubydex/diagnostic.c +6 -6
  11. data/ext/rubydex/diagnostic.h +11 -11
  12. data/ext/rubydex/document.c +97 -98
  13. data/ext/rubydex/document.h +10 -10
  14. data/ext/rubydex/extconf.rb +146 -127
  15. data/ext/rubydex/graph.c +701 -512
  16. data/ext/rubydex/graph.h +10 -10
  17. data/ext/rubydex/handle.h +44 -44
  18. data/ext/rubydex/location.c +22 -22
  19. data/ext/rubydex/location.h +15 -15
  20. data/ext/rubydex/reference.c +123 -104
  21. data/ext/rubydex/reference.h +15 -16
  22. data/ext/rubydex/rubydex.c +22 -22
  23. data/ext/rubydex/utils.c +108 -86
  24. data/ext/rubydex/utils.h +34 -28
  25. data/lib/rubydex/comment.rb +17 -17
  26. data/lib/rubydex/declaration.rb +11 -0
  27. data/lib/rubydex/diagnostic.rb +21 -21
  28. data/lib/rubydex/failures.rb +15 -15
  29. data/lib/rubydex/graph.rb +98 -92
  30. data/lib/rubydex/keyword.rb +17 -0
  31. data/lib/rubydex/keyword_parameter.rb +13 -0
  32. data/lib/rubydex/location.rb +90 -90
  33. data/lib/rubydex/mixin.rb +22 -0
  34. data/lib/rubydex/version.rb +5 -5
  35. data/lib/rubydex.rb +24 -20
  36. data/rbi/rubydex.rbi +425 -310
  37. data/rust/Cargo.lock +1851 -1851
  38. data/rust/Cargo.toml +29 -29
  39. data/rust/about.toml +10 -10
  40. data/rust/{about.hbs → about_templates/about.hbs} +81 -78
  41. data/rust/about_templates/mingw_licenses.hbs +1071 -0
  42. data/rust/rubydex/Cargo.toml +42 -42
  43. data/rust/rubydex/src/compile_assertions.rs +13 -13
  44. data/rust/rubydex/src/diagnostic.rs +110 -109
  45. data/rust/rubydex/src/errors.rs +28 -28
  46. data/rust/rubydex/src/indexing/local_graph.rs +224 -224
  47. data/rust/rubydex/src/indexing/rbs_indexer.rs +1551 -1554
  48. data/rust/rubydex/src/indexing/ruby_indexer.rs +2329 -6753
  49. data/rust/rubydex/src/indexing/ruby_indexer_tests.rs +4962 -0
  50. data/rust/rubydex/src/indexing.rs +210 -210
  51. data/rust/rubydex/src/integrity.rs +279 -278
  52. data/rust/rubydex/src/job_queue.rs +199 -205
  53. data/rust/rubydex/src/lib.rs +17 -17
  54. data/rust/rubydex/src/listing.rs +371 -272
  55. data/rust/rubydex/src/main.rs +160 -160
  56. data/rust/rubydex/src/model/built_in.rs +83 -0
  57. data/rust/rubydex/src/model/comment.rs +24 -24
  58. data/rust/rubydex/src/model/declaration.rs +679 -588
  59. data/rust/rubydex/src/model/definitions.rs +1682 -1602
  60. data/rust/rubydex/src/model/document.rs +222 -252
  61. data/rust/rubydex/src/model/encoding.rs +22 -22
  62. data/rust/rubydex/src/model/graph.rs +3782 -3556
  63. data/rust/rubydex/src/model/id.rs +110 -110
  64. data/rust/rubydex/src/model/identity_maps.rs +58 -58
  65. data/rust/rubydex/src/model/ids.rs +60 -38
  66. data/rust/rubydex/src/model/keywords.rs +256 -256
  67. data/rust/rubydex/src/model/name.rs +298 -298
  68. data/rust/rubydex/src/model/references.rs +111 -111
  69. data/rust/rubydex/src/model/string_ref.rs +50 -50
  70. data/rust/rubydex/src/model/visibility.rs +41 -41
  71. data/rust/rubydex/src/model.rs +15 -14
  72. data/rust/rubydex/src/offset.rs +147 -147
  73. data/rust/rubydex/src/position.rs +6 -6
  74. data/rust/rubydex/src/query.rs +1841 -1700
  75. data/rust/rubydex/src/resolution.rs +1852 -5895
  76. data/rust/rubydex/src/resolution_tests.rs +4701 -0
  77. data/rust/rubydex/src/stats/memory.rs +71 -71
  78. data/rust/rubydex/src/stats/orphan_report.rs +264 -263
  79. data/rust/rubydex/src/stats/timer.rs +127 -127
  80. data/rust/rubydex/src/stats.rs +11 -11
  81. data/rust/rubydex/src/test_utils/context.rs +226 -226
  82. data/rust/rubydex/src/test_utils/graph_test.rs +730 -679
  83. data/rust/rubydex/src/test_utils/local_graph_test.rs +602 -602
  84. data/rust/rubydex/src/test_utils.rs +52 -52
  85. data/rust/rubydex/src/visualization/dot.rs +192 -176
  86. data/rust/rubydex/src/visualization.rs +6 -6
  87. data/rust/rubydex/tests/cli.rs +185 -167
  88. data/rust/rubydex-mcp/Cargo.toml +28 -28
  89. data/rust/rubydex-mcp/src/main.rs +48 -48
  90. data/rust/rubydex-mcp/src/server.rs +1145 -1145
  91. data/rust/rubydex-mcp/src/tools.rs +49 -49
  92. data/rust/rubydex-mcp/tests/mcp.rs +302 -302
  93. data/rust/rubydex-sys/Cargo.toml +20 -20
  94. data/rust/rubydex-sys/build.rs +14 -14
  95. data/rust/rubydex-sys/cbindgen.toml +12 -12
  96. data/rust/rubydex-sys/src/declaration_api.rs +485 -469
  97. data/rust/rubydex-sys/src/definition_api.rs +443 -352
  98. data/rust/rubydex-sys/src/diagnostic_api.rs +99 -99
  99. data/rust/rubydex-sys/src/document_api.rs +85 -54
  100. data/rust/rubydex-sys/src/graph_api.rs +1017 -700
  101. data/rust/rubydex-sys/src/lib.rs +79 -9
  102. data/rust/rubydex-sys/src/location_api.rs +79 -79
  103. data/rust/rubydex-sys/src/name_api.rs +187 -135
  104. data/rust/rubydex-sys/src/reference_api.rs +267 -195
  105. data/rust/rubydex-sys/src/utils.rs +70 -70
  106. data/rust/rustfmt.toml +2 -2
  107. metadata +16 -9
  108. data/lib/rubydex/librubydex_sys.so +0 -0
@@ -0,0 +1,1071 @@
1
+ <li class="license">
2
+ <h3 id="mingw-w64-toolchain">MinGW-w64 toolchain and related libraries for Windows precompiled builds</h3>
3
+ <h4>Used by:</h4>
4
+ <ul class="license-used-by">
5
+ <li>libgcc (with GCC Runtime Library Exception), mingw-w64 runtime, winpthreads</li>
6
+ </ul>
7
+ <pre class="license-text">
8
+ The following 3rd-party software packages may be used by or distributed with Rubydex on Windows. Any information
9
+ relevant to third-party vendors listed below are collected using common, reasonable means.
10
+
11
+ https://github.com/mingw-w64/mingw-w64
12
+ MinGW-w64 runtime licensing
13
+ ***************************
14
+
15
+ This program or library was built using MinGW-w64 and statically
16
+ linked against the MinGW-w64 runtime. Some parts of the runtime
17
+ are under licenses which require that the copyright and license
18
+ notices are included when distributing the code in binary form.
19
+ These notices are listed below.
20
+
21
+
22
+ ========================
23
+ Overall copyright notice
24
+ ========================
25
+
26
+ Copyright (c) 2009, 2010, 2011, 2012, 2013 by the mingw-w64 project
27
+
28
+ This license has been certified as open source. It has also been designated
29
+ as GPL compatible by the Free Software Foundation (FSF).
30
+
31
+ Redistribution and use in source and binary forms, with or without
32
+ modification, are permitted provided that the following conditions are met:
33
+
34
+ 1. Redistributions in source code must retain the accompanying copyright
35
+ notice, this list of conditions, and the following disclaimer.
36
+ 2. Redistributions in binary form must reproduce the accompanying
37
+ copyright notice, this list of conditions, and the following disclaimer
38
+ in the documentation and/or other materials provided with the
39
+ distribution.
40
+ 3. Names of the copyright holders must not be used to endorse or promote
41
+ products derived from this software without prior written permission
42
+ from the copyright holders.
43
+ 4. The right to distribute this software or to use it for any purpose does
44
+ not give you the right to use Servicemarks (sm) or Trademarks (tm) of
45
+ the copyright holders. Use of them is covered by separate agreement
46
+ with the copyright holders.
47
+ 5. If any files are modified, you must cause the modified files to carry
48
+ prominent notices stating that you changed the files and the date of
49
+ any change.
50
+
51
+ Disclaimer
52
+
53
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
54
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
55
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
56
+ EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
57
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
58
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
59
+ OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
60
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
61
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
62
+ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
63
+
64
+ ========================================
65
+ getopt, getopt_long, and getop_long_only
66
+ ========================================
67
+
68
+ Copyright (c) 2002 Todd C. Miller &ltTodd.Miller@courtesan.com&gt
69
+
70
+ Permission to use, copy, modify, and distribute this software for any
71
+ purpose with or without fee is hereby granted, provided that the above
72
+ copyright notice and this permission notice appear in all copies.
73
+
74
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
75
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
76
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
77
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
78
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
79
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
80
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
81
+
82
+ Sponsored in part by the Defense Advanced Research Projects
83
+ Agency (DARPA) and Air Force Research Laboratory, Air Force
84
+ Materiel Command, USAF, under agreement number F39502-99-1-0512.
85
+
86
+ * * * * * * *
87
+
88
+ Copyright (c) 2000 The NetBSD Foundation, Inc.
89
+ All rights reserved.
90
+
91
+ This code is derived from software contributed to The NetBSD Foundation
92
+ by Dieter Baron and Thomas Klausner.
93
+
94
+ Redistribution and use in source and binary forms, with or without
95
+ modification, are permitted provided that the following conditions
96
+ are met:
97
+ 1. Redistributions of source code must retain the above copyright
98
+ notice, this list of conditions and the following disclaimer.
99
+ 2. Redistributions in binary form must reproduce the above copyright
100
+ notice, this list of conditions and the following disclaimer in the
101
+ documentation and/or other materials provided with the distribution.
102
+
103
+ THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
104
+ ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
105
+ TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
106
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
107
+ BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
108
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
109
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
110
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
111
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
112
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
113
+ POSSIBILITY OF SUCH DAMAGE.
114
+
115
+
116
+ ===============================================================
117
+ gdtoa: Converting between IEEE floating point numbers and ASCII
118
+ ===============================================================
119
+
120
+ The author of this software is David M. Gay.
121
+
122
+ Copyright (C) 1997, 1998, 1999, 2000, 2001 by Lucent Technologies
123
+ All Rights Reserved
124
+
125
+ Permission to use, copy, modify, and distribute this software and
126
+ its documentation for any purpose and without fee is hereby
127
+ granted, provided that the above copyright notice appear in all
128
+ copies and that both that the copyright notice and this
129
+ permission notice and warranty disclaimer appear in supporting
130
+ documentation, and that the name of Lucent or any of its entities
131
+ not be used in advertising or publicity pertaining to
132
+ distribution of the software without specific, written prior
133
+ permission.
134
+
135
+ LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
136
+ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
137
+ IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
138
+ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
139
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
140
+ IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
141
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
142
+ THIS SOFTWARE.
143
+
144
+ * * * * * * *
145
+
146
+ The author of this software is David M. Gay.
147
+
148
+ Copyright (C) 2005 by David M. Gay
149
+ All Rights Reserved
150
+
151
+ Permission to use, copy, modify, and distribute this software and its
152
+ documentation for any purpose and without fee is hereby granted,
153
+ provided that the above copyright notice appear in all copies and that
154
+ both that the copyright notice and this permission notice and warranty
155
+ disclaimer appear in supporting documentation, and that the name of
156
+ the author or any of his current or former employers not be used in
157
+ advertising or publicity pertaining to distribution of the software
158
+ without specific, written prior permission.
159
+
160
+ THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
161
+ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
162
+ NO EVENT SHALL THE AUTHOR OR ANY OF HIS CURRENT OR FORMER EMPLOYERS BE
163
+ LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
164
+ DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
165
+ WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
166
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
167
+ SOFTWARE.
168
+
169
+ * * * * * * *
170
+
171
+ The author of this software is David M. Gay.
172
+
173
+ Copyright (C) 2004 by David M. Gay.
174
+ All Rights Reserved
175
+ Based on material in the rest of /netlib/fp/gdota.tar.gz,
176
+ which is copyright (C) 1998, 2000 by Lucent Technologies.
177
+
178
+ Permission to use, copy, modify, and distribute this software and
179
+ its documentation for any purpose and without fee is hereby
180
+ granted, provided that the above copyright notice appear in all
181
+ copies and that both that the copyright notice and this
182
+ permission notice and warranty disclaimer appear in supporting
183
+ documentation, and that the name of Lucent or any of its entities
184
+ not be used in advertising or publicity pertaining to
185
+ distribution of the software without specific, written prior
186
+ permission.
187
+
188
+ LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
189
+ INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
190
+ IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
191
+ SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
192
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
193
+ IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
194
+ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
195
+ THIS SOFTWARE.
196
+
197
+
198
+ =========================
199
+ Parts of the math library
200
+ =========================
201
+
202
+ Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
203
+
204
+ Developed at SunSoft, a Sun Microsystems, Inc. business.
205
+ Permission to use, copy, modify, and distribute this
206
+ software is freely granted, provided that this notice
207
+ is preserved.
208
+
209
+ * * * * * * *
210
+
211
+ Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
212
+
213
+ Developed at SunPro, a Sun Microsystems, Inc. business.
214
+ Permission to use, copy, modify, and distribute this
215
+ software is freely granted, provided that this notice
216
+ is preserved.
217
+
218
+ * * * * * * *
219
+
220
+ FIXME: Cephes math lib
221
+ Copyright (C) 1984-1998 Stephen L. Moshier
222
+
223
+ It sounds vague, but as to be found at
224
+ &lthttp: //lists.debian.org/debian-legal/2004/12/msg00295.html&gt, it gives an
225
+ impression that the author could be willing to give an explicit
226
+ permission to distribute those files e.g. under a BSD style license. So
227
+ probably there is no problem here, although it could be good to get a
228
+ permission from the author and then add a license into the Cephes files
229
+ in MinGW runtime. At least on follow-up it is marked that debian sees the
230
+ version a-like BSD one. As MinGW.org (where those cephes parts are coming
231
+ from) distributes them now over 6 years, it should be fine.
232
+
233
+ =================================================
234
+ Some string, memory and time conversion functions
235
+ =================================================
236
+
237
+ Copyright © 2005-2020 Rich Felker, et al.
238
+
239
+ Permission is hereby granted, free of charge, to any person obtaining
240
+ a copy of this software and associated documentation files (the
241
+ "Software"), to deal in the Software without restriction, including
242
+ without limitation the rights to use, copy, modify, merge, publish,
243
+ distribute, sublicense, and/or sell copies of the Software, and to
244
+ permit persons to whom the Software is furnished to do so, subject to
245
+ the following conditions:
246
+
247
+ The above copyright notice and this permission notice shall be
248
+ included in all copies or substantial portions of the Software.
249
+
250
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
251
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
252
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
253
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
254
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
255
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
256
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
257
+
258
+ ===================================
259
+ Headers and IDLs imported from Wine
260
+ ===================================
261
+
262
+ Some header and IDL files were imported from the Wine project. These files
263
+ are prominent maked in source. Their copyright belongs to contributors and
264
+ they are distributed under LGPL license.
265
+
266
+ Disclaimer
267
+
268
+ This library is free software; you can redistribute it and/or
269
+ modify it under the terms of the GNU Lesser General Public
270
+ License as published by the Free Software Foundation; either
271
+ version 2.1 of the License, or (at your option) any later version.
272
+
273
+ This library is distributed in the hope that it will be useful,
274
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
275
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
276
+ Lesser General Public License for more details.
277
+
278
+ ==========================================================================
279
+
280
+ winpthreads
281
+
282
+ Copyright (c) 2011 mingw-w64 project
283
+
284
+ Permission is hereby granted, free of charge, to any person obtaining a
285
+ copy of this software and associated documentation files (the "Software"),
286
+ to deal in the Software without restriction, including without limitation
287
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
288
+ and/or sell copies of the Software, and to permit persons to whom the
289
+ Software is furnished to do so, subject to the following conditions:
290
+
291
+ The above copyright notice and this permission notice shall be included in
292
+ all copies or substantial portions of the Software.
293
+
294
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
295
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
296
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
297
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
298
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
299
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
300
+ DEALINGS IN THE SOFTWARE.
301
+
302
+
303
+ /*
304
+ * Parts of this library are derived by:
305
+ *
306
+ * Posix Threads library for Microsoft Windows
307
+ *
308
+ * Use at own risk, there is no implied warranty to this code.
309
+ * It uses undocumented features of Microsoft Windows that can change
310
+ * at any time in the future.
311
+ *
312
+ * (C) 2010 Lockless Inc.
313
+ * All rights reserved.
314
+ *
315
+ * Redistribution and use in source and binary forms, with or without modification,
316
+ * are permitted provided that the following conditions are met:
317
+ *
318
+ *
319
+ * * Redistributions of source code must retain the above copyright notice,
320
+ * this list of conditions and the following disclaimer.
321
+ * * Redistributions in binary form must reproduce the above copyright notice,
322
+ * this list of conditions and the following disclaimer in the documentation
323
+ * and/or other materials provided with the distribution.
324
+ * * Neither the name of Lockless Inc. nor the names of its contributors may be
325
+ * used to endorse or promote products derived from this software without
326
+ * specific prior written permission.
327
+ *
328
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AN
329
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
330
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
331
+ * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
332
+ * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
333
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
334
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
335
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
336
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
337
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
338
+ */
339
+
340
+ ==========================================================================
341
+
342
+ libgcc
343
+
344
+ GNU GENERAL PUBLIC LICENSE
345
+ Version 3, 29 June 2007
346
+
347
+ Copyright (C) 2007 Free Software Foundation, Inc. &lthttps://fsf.org/&gt
348
+ Everyone is permitted to copy and distribute verbatim copies
349
+ of this license document, but changing it is not allowed.
350
+
351
+ Preamble
352
+
353
+ The GNU General Public License is a free, copyleft license for
354
+ software and other kinds of works.
355
+
356
+ The licenses for most software and other practical works are designed
357
+ to take away your freedom to share and change the works. By contrast,
358
+ the GNU General Public License is intended to guarantee your freedom to
359
+ share and change all versions of a program--to make sure it remains free
360
+ software for all its users. We, the Free Software Foundation, use the
361
+ GNU General Public License for most of our software; it applies also to
362
+ any other work released this way by its authors. You can apply it to
363
+ your programs, too.
364
+
365
+ When we speak of free software, we are referring to freedom, not
366
+ price. Our General Public Licenses are designed to make sure that you
367
+ have the freedom to distribute copies of free software (and charge for
368
+ them if you wish), that you receive source code or can get it if you
369
+ want it, that you can change the software or use pieces of it in new
370
+ free programs, and that you know you can do these things.
371
+
372
+ To protect your rights, we need to prevent others from denying you
373
+ these rights or asking you to surrender the rights. Therefore, you have
374
+ certain responsibilities if you distribute copies of the software, or if
375
+ you modify it: responsibilities to respect the freedom of others.
376
+
377
+ For example, if you distribute copies of such a program, whether
378
+ gratis or for a fee, you must pass on to the recipients the same
379
+ freedoms that you received. You must make sure that they, too, receive
380
+ or can get the source code. And you must show them these terms so they
381
+ know their rights.
382
+
383
+ Developers that use the GNU GPL protect your rights with two steps:
384
+ (1) assert copyright on the software, and (2) offer you this License
385
+ giving you legal permission to copy, distribute and/or modify it.
386
+
387
+ For the developers' and authors' protection, the GPL clearly explains
388
+ that there is no warranty for this free software. For both users' and
389
+ authors' sake, the GPL requires that modified versions be marked as
390
+ changed, so that their problems will not be attributed erroneously to
391
+ authors of previous versions.
392
+
393
+ Some devices are designed to deny users access to install or run
394
+ modified versions of the software inside them, although the manufacturer
395
+ can do so. This is fundamentally incompatible with the aim of
396
+ protecting users' freedom to change the software. The systematic
397
+ pattern of such abuse occurs in the area of products for individuals to
398
+ use, which is precisely where it is most unacceptable. Therefore, we
399
+ have designed this version of the GPL to prohibit the practice for those
400
+ products. If such problems arise substantially in other domains, we
401
+ stand ready to extend this provision to those domains in future versions
402
+ of the GPL, as needed to protect the freedom of users.
403
+
404
+ Finally, every program is threatened constantly by software patents.
405
+ States should not allow patents to restrict development and use of
406
+ software on general-purpose computers, but in those that do, we wish to
407
+ avoid the special danger that patents applied to a free program could
408
+ make it effectively proprietary. To prevent this, the GPL assures that
409
+ patents cannot be used to render the program non-free.
410
+
411
+ The precise terms and conditions for copying, distribution and
412
+ modification follow.
413
+
414
+ TERMS AND CONDITIONS
415
+
416
+ 0. Definitions.
417
+
418
+ "This License" refers to version 3 of the GNU General Public License.
419
+
420
+ "Copyright" also means copyright-like laws that apply to other kinds of
421
+ works, such as semiconductor masks.
422
+
423
+ "The Program" refers to any copyrightable work licensed under this
424
+ License. Each licensee is addressed as "you". "Licensees" and
425
+ "recipients" may be individuals or organizations.
426
+
427
+ To "modify" a work means to copy from or adapt all or part of the work
428
+ in a fashion requiring copyright permission, other than the making of an
429
+ exact copy. The resulting work is called a "modified version" of the
430
+ earlier work or a work "based on" the earlier work.
431
+
432
+ A "covered work" means either the unmodified Program or a work based
433
+ on the Program.
434
+
435
+ To "propagate" a work means to do anything with it that, without
436
+ permission, would make you directly or secondarily liable for
437
+ infringement under applicable copyright law, except executing it on a
438
+ computer or modifying a private copy. Propagation includes copying,
439
+ distribution (with or without modification), making available to the
440
+ public, and in some countries other activities as well.
441
+
442
+ To "convey" a work means any kind of propagation that enables other
443
+ parties to make or receive copies. Mere interaction with a user through
444
+ a computer network, with no transfer of a copy, is not conveying.
445
+
446
+ An interactive user interface displays "Appropriate Legal Notices"
447
+ to the extent that it includes a convenient and prominently visible
448
+ feature that (1) displays an appropriate copyright notice, and (2)
449
+ tells the user that there is no warranty for the work (except to the
450
+ extent that warranties are provided), that licensees may convey the
451
+ work under this License, and how to view a copy of this License. If
452
+ the interface presents a list of user commands or options, such as a
453
+ menu, a prominent item in the list meets this criterion.
454
+
455
+ 1. Source Code.
456
+
457
+ The "source code" for a work means the preferred form of the work
458
+ for making modifications to it. "Object code" means any non-source
459
+ form of a work.
460
+
461
+ A "Standard Interface" means an interface that either is an official
462
+ standard defined by a recognized standards body, or, in the case of
463
+ interfaces specified for a particular programming language, one that
464
+ is widely used among developers working in that language.
465
+
466
+ The "System Libraries" of an executable work include anything, other
467
+ than the work as a whole, that (a) is included in the normal form of
468
+ packaging a Major Component, but which is not part of that Major
469
+ Component, and (b) serves only to enable use of the work with that
470
+ Major Component, or to implement a Standard Interface for which an
471
+ implementation is available to the public in source code form. A
472
+ "Major Component", in this context, means a major essential component
473
+ (kernel, window system, and so on) of the specific operating system
474
+ (if any) on which the executable work runs, or a compiler used to
475
+ produce the work, or an object code interpreter used to run it.
476
+
477
+ The "Corresponding Source" for a work in object code form means all
478
+ the source code needed to generate, install, and (for an executable
479
+ work) run the object code and to modify the work, including scripts to
480
+ control those activities. However, it does not include the work's
481
+ System Libraries, or general-purpose tools or generally available free
482
+ programs which are used unmodified in performing those activities but
483
+ which are not part of the work. For example, Corresponding Source
484
+ includes interface definition files associated with source files for
485
+ the work, and the source code for shared libraries and dynamically
486
+ linked subprograms that the work is specifically designed to require,
487
+ such as by intimate data communication or control flow between those
488
+ subprograms and other parts of the work.
489
+
490
+ The Corresponding Source need not include anything that users
491
+ can regenerate automatically from other parts of the Corresponding
492
+ Source.
493
+
494
+ The Corresponding Source for a work in source code form is that
495
+ same work.
496
+
497
+ 2. Basic Permissions.
498
+
499
+ All rights granted under this License are granted for the term of
500
+ copyright on the Program, and are irrevocable provided the stated
501
+ conditions are met. This License explicitly affirms your unlimited
502
+ permission to run the unmodified Program. The output from running a
503
+ covered work is covered by this License only if the output, given its
504
+ content, constitutes a covered work. This License acknowledges your
505
+ rights of fair use or other equivalent, as provided by copyright law.
506
+
507
+ You may make, run and propagate covered works that you do not
508
+ convey, without conditions so long as your license otherwise remains
509
+ in force. You may convey covered works to others for the sole purpose
510
+ of having them make modifications exclusively for you, or provide you
511
+ with facilities for running those works, provided that you comply with
512
+ the terms of this License in conveying all material for which you do
513
+ not control copyright. Those thus making or running the covered works
514
+ for you must do so exclusively on your behalf, under your direction
515
+ and control, on terms that prohibit them from making any copies of
516
+ your copyrighted material outside their relationship with you.
517
+
518
+ Conveying under any other circumstances is permitted solely under
519
+ the conditions stated below. Sublicensing is not allowed; section 10
520
+ makes it unnecessary.
521
+
522
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
523
+
524
+ No covered work shall be deemed part of an effective technological
525
+ measure under any applicable law fulfilling obligations under article
526
+ 11 of the WIPO copyright treaty adopted on 20 December 1996, or
527
+ similar laws prohibiting or restricting circumvention of such
528
+ measures.
529
+
530
+ When you convey a covered work, you waive any legal power to forbid
531
+ circumvention of technological measures to the extent such circumvention
532
+ is effected by exercising rights under this License with respect to
533
+ the covered work, and you disclaim any intention to limit operation or
534
+ modification of the work as a means of enforcing, against the work's
535
+ users, your or third parties' legal rights to forbid circumvention of
536
+ technological measures.
537
+
538
+ 4. Conveying Verbatim Copies.
539
+
540
+ You may convey verbatim copies of the Program's source code as you
541
+ receive it, in any medium, provided that you conspicuously and
542
+ appropriately publish on each copy an appropriate copyright notice;
543
+ keep intact all notices stating that this License and any
544
+ non-permissive terms added in accord with section 7 apply to the code;
545
+ keep intact all notices of the absence of any warranty; and give all
546
+ recipients a copy of this License along with the Program.
547
+
548
+ You may charge any price or no price for each copy that you convey,
549
+ and you may offer support or warranty protection for a fee.
550
+
551
+ 5. Conveying Modified Source Versions.
552
+
553
+ You may convey a work based on the Program, or the modifications to
554
+ produce it from the Program, in the form of source code under the
555
+ terms of section 4, provided that you also meet all of these conditions:
556
+
557
+ a) The work must carry prominent notices stating that you modified
558
+ it, and giving a relevant date.
559
+
560
+ b) The work must carry prominent notices stating that it is
561
+ released under this License and any conditions added under section
562
+ 7. This requirement modifies the requirement in section 4 to
563
+ "keep intact all notices".
564
+
565
+ c) You must license the entire work, as a whole, under this
566
+ License to anyone who comes into possession of a copy. This
567
+ License will therefore apply, along with any applicable section 7
568
+ additional terms, to the whole of the work, and all its parts,
569
+ regardless of how they are packaged. This License gives no
570
+ permission to license the work in any other way, but it does not
571
+ invalidate such permission if you have separately received it.
572
+
573
+ d) If the work has interactive user interfaces, each must display
574
+ Appropriate Legal Notices; however, if the Program has interactive
575
+ interfaces that do not display Appropriate Legal Notices, your
576
+ work need not make them do so.
577
+
578
+ A compilation of a covered work with other separate and independent
579
+ works, which are not by their nature extensions of the covered work,
580
+ and which are not combined with it such as to form a larger program,
581
+ in or on a volume of a storage or distribution medium, is called an
582
+ "aggregate" if the compilation and its resulting copyright are not
583
+ used to limit the access or legal rights of the compilation's users
584
+ beyond what the individual works permit. Inclusion of a covered work
585
+ in an aggregate does not cause this License to apply to the other
586
+ parts of the aggregate.
587
+
588
+ 6. Conveying Non-Source Forms.
589
+
590
+ You may convey a covered work in object code form under the terms
591
+ of sections 4 and 5, provided that you also convey the
592
+ machine-readable Corresponding Source under the terms of this License,
593
+ in one of these ways:
594
+
595
+ a) Convey the object code in, or embodied in, a physical product
596
+ (including a physical distribution medium), accompanied by the
597
+ Corresponding Source fixed on a durable physical medium
598
+ customarily used for software interchange.
599
+
600
+ b) Convey the object code in, or embodied in, a physical product
601
+ (including a physical distribution medium), accompanied by a
602
+ written offer, valid for at least three years and valid for as
603
+ long as you offer spare parts or customer support for that product
604
+ model, to give anyone who possesses the object code either (1) a
605
+ copy of the Corresponding Source for all the software in the
606
+ product that is covered by this License, on a durable physical
607
+ medium customarily used for software interchange, for a price no
608
+ more than your reasonable cost of physically performing this
609
+ conveying of source, or (2) access to copy the
610
+ Corresponding Source from a network server at no charge.
611
+
612
+ c) Convey individual copies of the object code with a copy of the
613
+ written offer to provide the Corresponding Source. This
614
+ alternative is allowed only occasionally and noncommercially, and
615
+ only if you received the object code with such an offer, in accord
616
+ with subsection 6b.
617
+
618
+ d) Convey the object code by offering access from a designated
619
+ place (gratis or for a charge), and offer equivalent access to the
620
+ Corresponding Source in the same way through the same place at no
621
+ further charge. You need not require recipients to copy the
622
+ Corresponding Source along with the object code. If the place to
623
+ copy the object code is a network server, the Corresponding Source
624
+ may be on a different server (operated by you or a third party)
625
+ that supports equivalent copying facilities, provided you maintain
626
+ clear directions next to the object code saying where to find the
627
+ Corresponding Source. Regardless of what server hosts the
628
+ Corresponding Source, you remain obligated to ensure that it is
629
+ available for as long as needed to satisfy these requirements.
630
+
631
+ e) Convey the object code using peer-to-peer transmission, provided
632
+ you inform other peers where the object code and Corresponding
633
+ Source of the work are being offered to the general public at no
634
+ charge under subsection 6d.
635
+
636
+ A separable portion of the object code, whose source code is excluded
637
+ from the Corresponding Source as a System Library, need not be
638
+ included in conveying the object code work.
639
+
640
+ A "User Product" is either (1) a "consumer product", which means any
641
+ tangible personal property which is normally used for personal, family,
642
+ or household purposes, or (2) anything designed or sold for incorporation
643
+ into a dwelling. In determining whether a product is a consumer product,
644
+ doubtful cases shall be resolved in favor of coverage. For a particular
645
+ product received by a particular user, "normally used" refers to a
646
+ typical or common use of that class of product, regardless of the status
647
+ of the particular user or of the way in which the particular user
648
+ actually uses, or expects or is expected to use, the product. A product
649
+ is a consumer product regardless of whether the product has substantial
650
+ commercial, industrial or non-consumer uses, unless such uses represent
651
+ the only significant mode of use of the product.
652
+
653
+ "Installation Information" for a User Product means any methods,
654
+ procedures, authorization keys, or other information required to install
655
+ and execute modified versions of a covered work in that User Product from
656
+ a modified version of its Corresponding Source. The information must
657
+ suffice to ensure that the continued functioning of the modified object
658
+ code is in no case prevented or interfered with solely because
659
+ modification has been made.
660
+
661
+ If you convey an object code work under this section in, or with, or
662
+ specifically for use in, a User Product, and the conveying occurs as
663
+ part of a transaction in which the right of possession and use of the
664
+ User Product is transferred to the recipient in perpetuity or for a
665
+ fixed term (regardless of how the transaction is characterized), the
666
+ Corresponding Source conveyed under this section must be accompanied
667
+ by the Installation Information. But this requirement does not apply
668
+ if neither you nor any third party retains the ability to install
669
+ modified object code on the User Product (for example, the work has
670
+ been installed in ROM).
671
+
672
+ The requirement to provide Installation Information does not include a
673
+ requirement to continue to provide support service, warranty, or updates
674
+ for a work that has been modified or installed by the recipient, or for
675
+ the User Product in which it has been modified or installed. Access to a
676
+ network may be denied when the modification itself materially and
677
+ adversely affects the operation of the network or violates the rules and
678
+ protocols for communication across the network.
679
+
680
+ Corresponding Source conveyed, and Installation Information provided,
681
+ in accord with this section must be in a format that is publicly
682
+ documented (and with an implementation available to the public in
683
+ source code form), and must require no special password or key for
684
+ unpacking, reading or copying.
685
+
686
+ 7. Additional Terms.
687
+
688
+ "Additional permissions" are terms that supplement the terms of this
689
+ License by making exceptions from one or more of its conditions.
690
+ Additional permissions that are applicable to the entire Program shall
691
+ be treated as though they were included in this License, to the extent
692
+ that they are valid under applicable law. If additional permissions
693
+ apply only to part of the Program, that part may be used separately
694
+ under those permissions, but the entire Program remains governed by
695
+ this License without regard to the additional permissions.
696
+
697
+ When you convey a copy of a covered work, you may at your option
698
+ remove any additional permissions from that copy, or from any part of
699
+ it. (Additional permissions may be written to require their own
700
+ removal in certain cases when you modify the work.) You may place
701
+ additional permissions on material, added by you to a covered work,
702
+ for which you have or can give appropriate copyright permission.
703
+
704
+ Notwithstanding any other provision of this License, for material you
705
+ add to a covered work, you may (if authorized by the copyright holders of
706
+ that material) supplement the terms of this License with terms:
707
+
708
+ a) Disclaiming warranty or limiting liability differently from the
709
+ terms of sections 15 and 16 of this License; or
710
+
711
+ b) Requiring preservation of specified reasonable legal notices or
712
+ author attributions in that material or in the Appropriate Legal
713
+ Notices displayed by works containing it; or
714
+
715
+ c) Prohibiting misrepresentation of the origin of that material, or
716
+ requiring that modified versions of such material be marked in
717
+ reasonable ways as different from the original version; or
718
+
719
+ d) Limiting the use for publicity purposes of names of licensors or
720
+ authors of the material; or
721
+
722
+ e) Declining to grant rights under trademark law for use of some
723
+ trade names, trademarks, or service marks; or
724
+
725
+ f) Requiring indemnification of licensors and authors of that
726
+ material by anyone who conveys the material (or modified versions of
727
+ it) with contractual assumptions of liability to the recipient, for
728
+ any liability that these contractual assumptions directly impose on
729
+ those licensors and authors.
730
+
731
+ All other non-permissive additional terms are considered "further
732
+ restrictions" within the meaning of section 10. If the Program as you
733
+ received it, or any part of it, contains a notice stating that it is
734
+ governed by this License along with a term that is a further
735
+ restriction, you may remove that term. If a license document contains
736
+ a further restriction but permits relicensing or conveying under this
737
+ License, you may add to a covered work material governed by the terms
738
+ of that license document, provided that the further restriction does
739
+ not survive such relicensing or conveying.
740
+
741
+ If you add terms to a covered work in accord with this section, you
742
+ must place, in the relevant source files, a statement of the
743
+ additional terms that apply to those files, or a notice indicating
744
+ where to find the applicable terms.
745
+
746
+ Additional terms, permissive or non-permissive, may be stated in the
747
+ form of a separately written license, or stated as exceptions;
748
+ the above requirements apply either way.
749
+
750
+ 8. Termination.
751
+
752
+ You may not propagate or modify a covered work except as expressly
753
+ provided under this License. Any attempt otherwise to propagate or
754
+ modify it is void, and will automatically terminate your rights under
755
+ this License (including any patent licenses granted under the third
756
+ paragraph of section 11).
757
+
758
+ However, if you cease all violation of this License, then your
759
+ license from a particular copyright holder is reinstated (a)
760
+ provisionally, unless and until the copyright holder explicitly and
761
+ finally terminates your license, and (b) permanently, if the copyright
762
+ holder fails to notify you of the violation by some reasonable means
763
+ prior to 60 days after the cessation.
764
+
765
+ Moreover, your license from a particular copyright holder is
766
+ reinstated permanently if the copyright holder notifies you of the
767
+ violation by some reasonable means, this is the first time you have
768
+ received notice of violation of this License (for any work) from that
769
+ copyright holder, and you cure the violation prior to 30 days after
770
+ your receipt of the notice.
771
+
772
+ Termination of your rights under this section does not terminate the
773
+ licenses of parties who have received copies or rights from you under
774
+ this License. If your rights have been terminated and not permanently
775
+ reinstated, you do not qualify to receive new licenses for the same
776
+ material under section 10.
777
+
778
+ 9. Acceptance Not Required for Having Copies.
779
+
780
+ You are not required to accept this License in order to receive or
781
+ run a copy of the Program. Ancillary propagation of a covered work
782
+ occurring solely as a consequence of using peer-to-peer transmission
783
+ to receive a copy likewise does not require acceptance. However,
784
+ nothing other than this License grants you permission to propagate or
785
+ modify any covered work. These actions infringe copyright if you do
786
+ not accept this License. Therefore, by modifying or propagating a
787
+ covered work, you indicate your acceptance of this License to do so.
788
+
789
+ 10. Automatic Licensing of Downstream Recipients.
790
+
791
+ Each time you convey a covered work, the recipient automatically
792
+ receives a license from the original licensors, to run, modify and
793
+ propagate that work, subject to this License. You are not responsible
794
+ for enforcing compliance by third parties with this License.
795
+
796
+ An "entity transaction" is a transaction transferring control of an
797
+ organization, or substantially all assets of one, or subdividing an
798
+ organization, or merging organizations. If propagation of a covered
799
+ work results from an entity transaction, each party to that
800
+ transaction who receives a copy of the work also receives whatever
801
+ licenses to the work the party's predecessor in interest had or could
802
+ give under the previous paragraph, plus a right to possession of the
803
+ Corresponding Source of the work from the predecessor in interest, if
804
+ the predecessor has it or can get it with reasonable efforts.
805
+
806
+ You may not impose any further restrictions on the exercise of the
807
+ rights granted or affirmed under this License. For example, you may
808
+ not impose a license fee, royalty, or other charge for exercise of
809
+ rights granted under this License, and you may not initiate litigation
810
+ (including a cross-claim or counterclaim in a lawsuit) alleging that
811
+ any patent claim is infringed by making, using, selling, offering for
812
+ sale, or importing the Program or any portion of it.
813
+
814
+ 11. Patents.
815
+
816
+ A "contributor" is a copyright holder who authorizes use under this
817
+ License of the Program or a work on which the Program is based. The
818
+ work thus licensed is called the contributor's "contributor version".
819
+
820
+ A contributor's "essential patent claims" are all patent claims
821
+ owned or controlled by the contributor, whether already acquired or
822
+ hereafter acquired, that would be infringed by some manner, permitted
823
+ by this License, of making, using, or selling its contributor version,
824
+ but do not include claims that would be infringed only as a
825
+ consequence of further modification of the contributor version. For
826
+ purposes of this definition, "control" includes the right to grant
827
+ patent sublicenses in a manner consistent with the requirements of
828
+ this License.
829
+
830
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
831
+ patent license under the contributor's essential patent claims, to
832
+ make, use, sell, offer for sale, import and otherwise run, modify and
833
+ propagate the contents of its contributor version.
834
+
835
+ In the following three paragraphs, a "patent license" is any express
836
+ agreement or commitment, however denominated, not to enforce a patent
837
+ (such as an express permission to practice a patent or covenant not to
838
+ sue for patent infringement). To "grant" such a patent license to a
839
+ party means to make such an agreement or commitment not to enforce a
840
+ patent against the party.
841
+
842
+ If you convey a covered work, knowingly relying on a patent license,
843
+ and the Corresponding Source of the work is not available for anyone
844
+ to copy, free of charge and under the terms of this License, through a
845
+ publicly available network server or other readily accessible means,
846
+ then you must either (1) cause the Corresponding Source to be so
847
+ available, or (2) arrange to deprive yourself of the benefit of the
848
+ patent license for this particular work, or (3) arrange, in a manner
849
+ consistent with the requirements of this License, to extend the patent
850
+ license to downstream recipients. "Knowingly relying" means you have
851
+ actual knowledge that, but for the patent license, your conveying the
852
+ covered work in a country, or your recipient's use of the covered work
853
+ in a country, would infringe one or more identifiable patents in that
854
+ country that you have reason to believe are valid.
855
+
856
+ If, pursuant to or in connection with a single transaction or
857
+ arrangement, you convey, or propagate by procuring conveyance of, a
858
+ covered work, and grant a patent license to some of the parties
859
+ receiving the covered work authorizing them to use, propagate, modify
860
+ or convey a specific copy of the covered work, then the patent license
861
+ you grant is automatically extended to all recipients of the covered
862
+ work and works based on it.
863
+
864
+ A patent license is "discriminatory" if it does not include within
865
+ the scope of its coverage, prohibits the exercise of, or is
866
+ conditioned on the non-exercise of one or more of the rights that are
867
+ specifically granted under this License. You may not convey a covered
868
+ work if you are a party to an arrangement with a third party that is
869
+ in the business of distributing software, under which you make payment
870
+ to the third party based on the extent of your activity of conveying
871
+ the work, and under which the third party grants, to any of the
872
+ parties who would receive the covered work from you, a discriminatory
873
+ patent license (a) in connection with copies of the covered work
874
+ conveyed by you (or copies made from those copies), or (b) primarily
875
+ for and in connection with specific products or compilations that
876
+ contain the covered work, unless you entered into that arrangement,
877
+ or that patent license was granted, prior to 28 March 2007.
878
+
879
+ Nothing in this License shall be construed as excluding or limiting
880
+ any implied license or other defenses to infringement that may
881
+ otherwise be available to you under applicable patent law.
882
+
883
+ 12. No Surrender of Others' Freedom.
884
+
885
+ If conditions are imposed on you (whether by court order, agreement or
886
+ otherwise) that contradict the conditions of this License, they do not
887
+ excuse you from the conditions of this License. If you cannot convey a
888
+ covered work so as to satisfy simultaneously your obligations under this
889
+ License and any other pertinent obligations, then as a consequence you may
890
+ not convey it at all. For example, if you agree to terms that obligate you
891
+ to collect a royalty for further conveying from those to whom you convey
892
+ the Program, the only way you could satisfy both those terms and this
893
+ License would be to refrain entirely from conveying the Program.
894
+
895
+ 13. Use with the GNU Affero General Public License.
896
+
897
+ Notwithstanding any other provision of this License, you have
898
+ permission to link or combine any covered work with a work licensed
899
+ under version 3 of the GNU Affero General Public License into a single
900
+ combined work, and to convey the resulting work. The terms of this
901
+ License will continue to apply to the part which is the covered work,
902
+ but the special requirements of the GNU Affero General Public License,
903
+ section 13, concerning interaction through a network will apply to the
904
+ combination as such.
905
+
906
+ 14. Revised Versions of this License.
907
+
908
+ The Free Software Foundation may publish revised and/or new versions of
909
+ the GNU General Public License from time to time. Such new versions will
910
+ be similar in spirit to the present version, but may differ in detail to
911
+ address new problems or concerns.
912
+
913
+ Each version is given a distinguishing version number. If the
914
+ Program specifies that a certain numbered version of the GNU General
915
+ Public License "or any later version" applies to it, you have the
916
+ option of following the terms and conditions either of that numbered
917
+ version or of any later version published by the Free Software
918
+ Foundation. If the Program does not specify a version number of the
919
+ GNU General Public License, you may choose any version ever published
920
+ by the Free Software Foundation.
921
+
922
+ If the Program specifies that a proxy can decide which future
923
+ versions of the GNU General Public License can be used, that proxy's
924
+ public statement of acceptance of a version permanently authorizes you
925
+ to choose that version for the Program.
926
+
927
+ Later license versions may give you additional or different
928
+ permissions. However, no additional obligations are imposed on any
929
+ author or copyright holder as a result of your choosing to follow a
930
+ later version.
931
+
932
+ 15. Disclaimer of Warranty.
933
+
934
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
935
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
936
+ HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
937
+ OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
938
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
939
+ PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
940
+ IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
941
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
942
+
943
+ 16. Limitation of Liability.
944
+
945
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
946
+ WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
947
+ THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
948
+ GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
949
+ USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
950
+ DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
951
+ PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
952
+ EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
953
+ SUCH DAMAGES.
954
+
955
+ 17. Interpretation of Sections 15 and 16.
956
+
957
+ If the disclaimer of warranty and limitation of liability provided
958
+ above cannot be given local legal effect according to their terms,
959
+ reviewing courts shall apply local law that most closely approximates
960
+ an absolute waiver of all civil liability in connection with the
961
+ Program, unless a warranty or assumption of liability accompanies a
962
+ copy of the Program in return for a fee.
963
+
964
+ END OF TERMS AND CONDITIONS
965
+
966
+ How to Apply These Terms to Your New Programs
967
+
968
+ If you develop a new program, and you want it to be of the greatest
969
+ possible use to the public, the best way to achieve this is to make it
970
+ free software which everyone can redistribute and change under these terms.
971
+
972
+ To do so, attach the following notices to the program. It is safest
973
+ to attach them to the start of each source file to most effectively
974
+ state the exclusion of warranty; and each file should have at least
975
+ the "copyright" line and a pointer to where the full notice is found.
976
+
977
+ &ltone line to give the program's name and a brief idea of what it does.&gt
978
+ Copyright (C) &ltyear&gt &ltname of author&gt
979
+
980
+ This program is free software: you can redistribute it and/or modify
981
+ it under the terms of the GNU General Public License as published by
982
+ the Free Software Foundation, either version 3 of the License, or
983
+ (at your option) any later version.
984
+
985
+ This program is distributed in the hope that it will be useful,
986
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
987
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
988
+ GNU General Public License for more details.
989
+
990
+ You should have received a copy of the GNU General Public License
991
+ along with this program. If not, see &lthttps://www.gnu.org/licenses/&gt.
992
+
993
+ Also add information on how to contact you by electronic and paper mail.
994
+
995
+ If the program does terminal interaction, make it output a short
996
+ notice like this when it starts in an interactive mode:
997
+
998
+ &ltprogram&gt Copyright (C) &ltyear&gt &ltname of author&gt
999
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
1000
+ This is free software, and you are welcome to redistribute it
1001
+ under certain conditions; type `show c' for details.
1002
+
1003
+ The hypothetical commands `show w' and `show c' should show the appropriate
1004
+ parts of the General Public License. Of course, your program's commands
1005
+ might be different; for a GUI interface, you would use an "about box".
1006
+
1007
+ You should also get your employer (if you work as a programmer) or school,
1008
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
1009
+ For more information on this, and how to apply and follow the GNU GPL, see
1010
+ &lthttps://www.gnu.org/licenses/&gt.
1011
+
1012
+ The GNU General Public License does not permit incorporating your program
1013
+ into proprietary programs. If your program is a subroutine library, you
1014
+ may consider it more useful to permit linking proprietary applications with
1015
+ the library. If this is what you want to do, use the GNU Lesser General
1016
+ Public License instead of this License. But first, please read
1017
+ &lthttps://www.gnu.org/licenses/why-not-lgpl.html&gt.
1018
+
1019
+
1020
+ GCC RUNTIME LIBRARY EXCEPTION
1021
+ Version 3.1, 31 March 2009
1022
+
1023
+ Copyright © 2009 Free Software Foundation, Inc.
1024
+ &lthttps://fsf.org/&gt
1025
+
1026
+ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
1027
+
1028
+ This GCC Runtime Library Exception ("Exception") is an additional permission under section 7 of the GNU General Public
1029
+ License, version 3 ("GPLv3"). It applies to a given file (the "Runtime Library") that bears a notice placed by the
1030
+ copyright holder of the file stating that the file is governed by GPLv3 along with this Exception.
1031
+
1032
+ When you use GCC to compile a program, GCC may combine portions of certain GCC header files and runtime libraries with
1033
+ the compiled program. The purpose of this Exception is to allow compilation of non-GPL (including proprietary) programs
1034
+ to use, in this way, the header files and runtime libraries covered by this Exception.
1035
+
1036
+ 0. Definitions.
1037
+ A file is an "Independent Module" if it either requires the Runtime Library for execution after a Compilation Process,
1038
+ or makes use of an interface provided by the Runtime Library, but is not otherwise based on the Runtime Library.
1039
+
1040
+ "GCC" means a version of the GNU Compiler Collection, with or without modifications, governed by version 3 (or a
1041
+ specified later version) of the GNU General Public License (GPL) with the option of using any subsequent versions
1042
+ published by the FSF.
1043
+
1044
+ "GPL-compatible Software" is software whose conditions of propagation, modification and use would permit combination
1045
+ with GCC in accord with the license of GCC.
1046
+
1047
+ "Target Code" refers to output from any compiler for a real or virtual target processor architecture, in executable form
1048
+ or suitable for input to an assembler, loader, linker and/or execution phase. Notwithstanding that, Target Code does not
1049
+ include data in any format that is used as a compiler intermediate representation, or used for producing a compiler
1050
+ intermediate representation.
1051
+
1052
+ The "Compilation Process" transforms code entirely represented in non-intermediate languages designed for human-written
1053
+ code, and/or in Java Virtual Machine byte code, into Target Code. Thus, for example, use of source code generators and
1054
+ preprocessors need not be considered part of the Compilation Process, since the Compilation Process can be understood as
1055
+ starting with the output of the generators or preprocessors.
1056
+
1057
+ A Compilation Process is "Eligible" if it is done using GCC, alone or with other GPL-compatible software, or if it is
1058
+ done without using any work based on GCC. For example, using non-GPL-compatible Software to optimize any GCC
1059
+ intermediate representations would not qualify as an Eligible Compilation Process.
1060
+
1061
+ 1. Grant of Additional Permission.
1062
+ You have permission to propagate a work of Target Code formed by combining the Runtime Library with Independent Modules,
1063
+ even if such propagation would otherwise violate the terms of GPLv3, provided that all Target Code was generated by
1064
+ Eligible Compilation Processes. You may then convey such a combination under terms of your choice, consistent with the
1065
+ licensing of the Independent Modules.
1066
+
1067
+ 2. No Weakening of GCC Copyleft.
1068
+ The availability of this Exception does not imply any general presumption that third-party software is unaffected by the
1069
+ copyleft requirements of the license of GCC.
1070
+ </pre>
1071
+ </li>