zemu 0.1.0
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.
- checksums.yaml +7 -0
- data/lib/zemu/config.rb +312 -0
- data/lib/zemu/instance.rb +179 -0
- data/lib/zemu.rb +172 -0
- data/src/debug.c +118 -0
- data/src/debug.h +30 -0
- data/src/external/Z/API/Z/ABIs/generic/allocator.h +36 -0
- data/src/external/Z/API/Z/ABIs/generic/cipher.h +47 -0
- data/src/external/Z/API/Z/ABIs/generic/data codec.h +33 -0
- data/src/external/Z/API/Z/ABIs/generic/emulation.h +103 -0
- data/src/external/Z/API/Z/ABIs/generic/hash function.h +33 -0
- data/src/external/Z/API/Z/ABIs/generic/module.h +33 -0
- data/src/external/Z/API/Z/ABIs/generic/wave codec.h +40 -0
- data/src/external/Z/API/Z/classes/base/InitializerList.hpp +34 -0
- data/src/external/Z/API/Z/classes/base/OpaqueFunctionPointer.hpp +26 -0
- data/src/external/Z/API/Z/classes/base/OpaqueMemberFunctionPointer.hpp +26 -0
- data/src/external/Z/API/Z/classes/base/Pair.hpp +46 -0
- data/src/external/Z/API/Z/classes/base/Range.hpp +111 -0
- data/src/external/Z/API/Z/classes/base/SizedString.hpp +66 -0
- data/src/external/Z/API/Z/classes/base/Status.hpp +89 -0
- data/src/external/Z/API/Z/classes/base/Symbol.hpp +39 -0
- data/src/external/Z/API/Z/classes/base/Tuple.hpp +111 -0
- data/src/external/Z/API/Z/classes/base/Value2D.hpp +389 -0
- data/src/external/Z/API/Z/classes/base/Value3D.hpp +368 -0
- data/src/external/Z/API/Z/classes/buffering/RingBuffer.hpp +93 -0
- data/src/external/Z/API/Z/classes/buffering/TripleBuffer.hpp +68 -0
- data/src/external/Z/API/Z/classes/functional/Functor.hpp +265 -0
- data/src/external/Z/API/Z/classes/functional/MemberFunction.hpp +98 -0
- data/src/external/Z/API/Z/classes/functional/ObjectMemberFunction.hpp +172 -0
- data/src/external/Z/API/Z/classes/functional/ObjectSelector.hpp +219 -0
- data/src/external/Z/API/Z/classes/functional/Selector.hpp +146 -0
- data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/AABB.hpp +81 -0
- data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/AABR.hpp +685 -0
- data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Box.hpp +219 -0
- data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Circle.hpp +80 -0
- data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Line2D.hpp +93 -0
- data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Line3D.hpp +80 -0
- data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Rectangle.hpp +675 -0
- data/src/external/Z/API/Z/classes/mathematics/geometry/euclidean/Sphere.hpp +0 -0
- data/src/external/Z/API/Z/classes/memory/Shared.hpp +90 -0
- data/src/external/Z/API/Z/constants/base.h +35 -0
- data/src/external/Z/API/Z/constants/chemical elements.h +6385 -0
- data/src/external/Z/API/Z/constants/numbers.h +963 -0
- data/src/external/Z/API/Z/constants/version.h +15 -0
- data/src/external/Z/API/Z/formats/character set/ASCII.h +158 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP437.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP737.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP775.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP850.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP852.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP855.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP857.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP858.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP860.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP861.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP862.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP863.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP864.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP865.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP866.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP869.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP872.h +159 -0
- data/src/external/Z/API/Z/formats/character set/DOS CP874.h +159 -0
- data/src/external/Z/API/Z/formats/character set/Unicode.h +30119 -0
- data/src/external/Z/API/Z/formats/data model/I16LP32.h +19 -0
- data/src/external/Z/API/Z/formats/data model/ILP32.h +19 -0
- data/src/external/Z/API/Z/formats/data model/ILP64.h +19 -0
- data/src/external/Z/API/Z/formats/data model/IP16L32.h +19 -0
- data/src/external/Z/API/Z/formats/data model/LLP64.h +19 -0
- data/src/external/Z/API/Z/formats/data model/LP32.h +19 -0
- data/src/external/Z/API/Z/formats/data model/LP64.h +19 -0
- data/src/external/Z/API/Z/formats/data model/SILP64.h +19 -0
- data/src/external/Z/API/Z/formats/file system/FAT12.h +61 -0
- data/src/external/Z/API/Z/formats/floating-point/IEEE 754.h +141 -0
- data/src/external/Z/API/Z/formats/floating-point/x87.h +74 -0
- data/src/external/Z/API/Z/formats/image/ICNS.h +39 -0
- data/src/external/Z/API/Z/formats/keymap/Mac OS.h +284 -0
- data/src/external/Z/API/Z/formats/keymap/Z.h +141 -0
- data/src/external/Z/API/Z/formats/multimedia/Creative Voice.h +106 -0
- data/src/external/Z/API/Z/formats/multimedia/Microsoft Wave.h +49 -0
- data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/ACH.h +44 -0
- data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/FRZ.h +54 -0
- data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/PRG.h +33 -0
- data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/SEM.h +46 -0
- data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/SIT.h +34 -0
- data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/SNA.h +117 -0
- data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/SNP.h +37 -0
- data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/SP.h +62 -0
- data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/Z80.h +117 -0
- data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/ZX.h +56 -0
- data/src/external/Z/API/Z/formats/snapshot/machine/computer/ZX Spectrum/ZX82.h +70 -0
- data/src/external/Z/API/Z/formats/storage medium image/NES Game Pak/UNIF.h +26 -0
- data/src/external/Z/API/Z/formats/storage medium image/NES Game Pak/iNES.h +76 -0
- data/src/external/Z/API/Z/formats/storage medium image/audio/TAP.h +25 -0
- data/src/external/Z/API/Z/formats/storage medium image/audio/TZX.h +1185 -0
- data/src/external/Z/API/Z/formats/storage medium image/audio/Warajevo TAP.h +32 -0
- data/src/external/Z/API/Z/formats/storage medium image/floppy disk/FDI.h +45 -0
- data/src/external/Z/API/Z/functions/base/Z2D.h +583 -0
- data/src/external/Z/API/Z/functions/base/Z3D.h +712 -0
- data/src/external/Z/API/Z/functions/base/ZRange.h +137 -0
- data/src/external/Z/API/Z/functions/base/all.h +16 -0
- data/src/external/Z/API/Z/functions/base/casting.hpp +37 -0
- data/src/external/Z/API/Z/functions/base/character.h +38 -0
- data/src/external/Z/API/Z/functions/base/constructors.h +326 -0
- data/src/external/Z/API/Z/functions/base/structure.hpp +26 -0
- data/src/external/Z/API/Z/functions/base/type.hpp +60 -0
- data/src/external/Z/API/Z/functions/base/value.h +1901 -0
- data/src/external/Z/API/Z/functions/base/value.hpp +112 -0
- data/src/external/Z/API/Z/functions/buffering/ZRingBuffer.h +85 -0
- data/src/external/Z/API/Z/functions/buffering/ZTripleBuffer.h +65 -0
- data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/Z2DLine.h +179 -0
- data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/Z3DLine.h +168 -0
- data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZAABB.h +361 -0
- data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZAABR.h +1081 -0
- data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZBox.h +340 -0
- data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZCircle.h +142 -0
- data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZRectangle.h +1267 -0
- data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/ZSphere.h +156 -0
- data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/all.h +18 -0
- data/src/external/Z/API/Z/functions/mathematics/geometry/euclidean/constructors.h +620 -0
- data/src/external/Z/API/Z/functions/time/date.h +29 -0
- data/src/external/Z/API/Z/hardware/CPU/architecture/6502.h +90 -0
- data/src/external/Z/API/Z/hardware/CPU/architecture/Z80.h +245 -0
- data/src/external/Z/API/Z/hardware/CPU/architecture/i4004.h +37 -0
- data/src/external/Z/API/Z/hardware/PSG/General Instrument/AY-3-891x.h +180 -0
- data/src/external/Z/API/Z/hardware/VDC/Ricoh/RP2C0x.h +625 -0
- data/src/external/Z/API/Z/hardware/bus/AGP.h +24 -0
- data/src/external/Z/API/Z/hardware/bus/USB.h +510 -0
- data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/Inves Spectrum +.h +47 -0
- data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/Pentagon.h +13 -0
- data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/Scorpion.h +13 -0
- data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum + 128K.h +158 -0
- data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum +.h +82 -0
- data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum +2.h +13 -0
- data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum +2A.h +13 -0
- data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum +3.h +13 -0
- data/src/external/Z/API/Z/hardware/machine/model/computer/ZX Spectrum/ZX Spectrum.h +109 -0
- data/src/external/Z/API/Z/hardware/machine/model/console/Nintendo Entertainment System/NES-001 (NTSC).h +29 -0
- data/src/external/Z/API/Z/hardware/machine/model/console/Nintendo Entertainment System/NES-001 (PAL).h +29 -0
- data/src/external/Z/API/Z/hardware/machine/platform/computer/ZX Spectrum.h +405 -0
- data/src/external/Z/API/Z/hardware/machine/platform/console/Game Boy.h +49 -0
- data/src/external/Z/API/Z/hardware/machine/platform/console/Nintendo Entertainment System.h +350 -0
- data/src/external/Z/API/Z/hardware/storage medium/ROM cartridge/SNES Game Pak.h +238 -0
- data/src/external/Z/API/Z/inspection/C/completion.h +178 -0
- data/src/external/Z/API/Z/inspection/C/modules/C11.h +41 -0
- data/src/external/Z/API/Z/inspection/C/modules/C18.h +13 -0
- data/src/external/Z/API/Z/inspection/C/modules/C89.h +19 -0
- data/src/external/Z/API/Z/inspection/C/modules/C90.h +13 -0
- data/src/external/Z/API/Z/inspection/C/modules/C94.h +15 -0
- data/src/external/Z/API/Z/inspection/C/modules/C99.h +29 -0
- data/src/external/Z/API/Z/inspection/C/modules/KR C.h +19 -0
- data/src/external/Z/API/Z/inspection/C++/completion.h +512 -0
- data/src/external/Z/API/Z/inspection/C++/modules/C++03.h +15 -0
- data/src/external/Z/API/Z/inspection/C++/modules/C++11.h +80 -0
- data/src/external/Z/API/Z/inspection/C++/modules/C++14.h +26 -0
- data/src/external/Z/API/Z/inspection/C++/modules/C++17.h +55 -0
- data/src/external/Z/API/Z/inspection/C++/modules/C++85.h +11 -0
- data/src/external/Z/API/Z/inspection/C++/modules/C++89.h +13 -0
- data/src/external/Z/API/Z/inspection/C++/modules/C++98.h +17 -0
- data/src/external/Z/API/Z/inspection/C++.h +78 -0
- data/src/external/Z/API/Z/inspection/C.h +79 -0
- data/src/external/Z/API/Z/inspection/CPU/completion.h +56 -0
- data/src/external/Z/API/Z/inspection/CPU/detection.h +714 -0
- data/src/external/Z/API/Z/inspection/CPU/modules/6502.h +25 -0
- data/src/external/Z/API/Z/inspection/CPU/modules/AArch32.h +32 -0
- data/src/external/Z/API/Z/inspection/CPU/modules/AArch64.h +32 -0
- data/src/external/Z/API/Z/inspection/CPU/modules/Z80.h +26 -0
- data/src/external/Z/API/Z/inspection/CPU/modules/x86-32.h +31 -0
- data/src/external/Z/API/Z/inspection/CPU/modules/x86-64.h +312 -0
- data/src/external/Z/API/Z/inspection/CPU.h +209 -0
- data/src/external/Z/API/Z/inspection/OS/completion.h +36 -0
- data/src/external/Z/API/Z/inspection/OS/detection.h +768 -0
- data/src/external/Z/API/Z/inspection/OS/modules/Linux.h +22 -0
- data/src/external/Z/API/Z/inspection/OS/modules/MS-DOS.h +16 -0
- data/src/external/Z/API/Z/inspection/OS/modules/Mac OS X.h +23 -0
- data/src/external/Z/API/Z/inspection/OS/modules/Windows.h +19 -0
- data/src/external/Z/API/Z/inspection/OS/modules/iPhone OS.h +23 -0
- data/src/external/Z/API/Z/inspection/OS.h +236 -0
- data/src/external/Z/API/Z/inspection/Objective-C/completion.h +8 -0
- data/src/external/Z/API/Z/inspection/Objective-C/modules/Objective-C v1.0.h +11 -0
- data/src/external/Z/API/Z/inspection/Objective-C/modules/Objective-C v2.0.h +15 -0
- data/src/external/Z/API/Z/inspection/Objective-C.h +51 -0
- data/src/external/Z/API/Z/inspection/Z.h +19 -0
- data/src/external/Z/API/Z/inspection/build.h +22 -0
- data/src/external/Z/API/Z/inspection/character set.h +66 -0
- data/src/external/Z/API/Z/inspection/compiler/completion.h +2885 -0
- data/src/external/Z/API/Z/inspection/compiler/modules/Apple LLVM.h +26 -0
- data/src/external/Z/API/Z/inspection/compiler/modules/Clang.h +1664 -0
- data/src/external/Z/API/Z/inspection/compiler/modules/GCC.h +1366 -0
- data/src/external/Z/API/Z/inspection/compiler/modules/SCCZ80.h +473 -0
- data/src/external/Z/API/Z/inspection/compiler/modules/Visual C++.h +606 -0
- data/src/external/Z/API/Z/inspection/compiler/modules/cc65.h +529 -0
- data/src/external/Z/API/Z/inspection/compiler/modules/generic.h +13 -0
- data/src/external/Z/API/Z/inspection/compiler/modules/template.h +650 -0
- data/src/external/Z/API/Z/inspection/compiler.h +299 -0
- data/src/external/Z/API/Z/inspection/data model/completion.h +128 -0
- data/src/external/Z/API/Z/inspection/data model/deduction.h +9 -0
- data/src/external/Z/API/Z/inspection/data model/detection.h +45 -0
- data/src/external/Z/API/Z/inspection/data model.h +362 -0
- data/src/external/Z/API/Z/inspection/floating-point/completion.h +50 -0
- data/src/external/Z/API/Z/inspection/floating-point.h +324 -0
- data/src/external/Z/API/Z/inspection/language.h +163 -0
- data/src/external/Z/API/Z/inspection/platform/detection.h +9 -0
- data/src/external/Z/API/Z/inspection/platform.h +29 -0
- data/src/external/Z/API/Z/keys/C++.h +27 -0
- data/src/external/Z/API/Z/keys/C.h +29 -0
- data/src/external/Z/API/Z/keys/CPU.h +80 -0
- data/src/external/Z/API/Z/keys/OS.h +182 -0
- data/src/external/Z/API/Z/keys/Objective-C.h +17 -0
- data/src/external/Z/API/Z/keys/chemistry.h +26 -0
- data/src/external/Z/API/Z/keys/compiler.h +178 -0
- data/src/external/Z/API/Z/keys/data model.h +32 -0
- data/src/external/Z/API/Z/keys/endianness.h +24 -0
- data/src/external/Z/API/Z/keys/language.h +21 -0
- data/src/external/Z/API/Z/keys/layout.h +20 -0
- data/src/external/Z/API/Z/keys/mathematics/geometry.h +29 -0
- data/src/external/Z/API/Z/keys/mathematics/number.h +21 -0
- data/src/external/Z/API/Z/keys/order.h +18 -0
- data/src/external/Z/API/Z/keys/platform.h +87 -0
- data/src/external/Z/API/Z/keys/program.h +39 -0
- data/src/external/Z/API/Z/keys/science/chemical elements.h +200 -0
- data/src/external/Z/API/Z/keys/science/electricity.h +18 -0
- data/src/external/Z/API/Z/keys/science/magnetism.h +19 -0
- data/src/external/Z/API/Z/keys/status.h +69 -0
- data/src/external/Z/API/Z/keys/text.h +27 -0
- data/src/external/Z/API/Z/keys/value.h +88 -0
- data/src/external/Z/API/Z/macros/arguments.h +25 -0
- data/src/external/Z/API/Z/macros/casting.h +22 -0
- data/src/external/Z/API/Z/macros/character.h +159 -0
- data/src/external/Z/API/Z/macros/date.h +14 -0
- data/src/external/Z/API/Z/macros/key.h +20 -0
- data/src/external/Z/API/Z/macros/language.h +126 -0
- data/src/external/Z/API/Z/macros/language.hpp +81 -0
- data/src/external/Z/API/Z/macros/members.h +86 -0
- data/src/external/Z/API/Z/macros/pasting.h +308 -0
- data/src/external/Z/API/Z/macros/pointer.h +33 -0
- data/src/external/Z/API/Z/macros/repetition.h +283 -0
- data/src/external/Z/API/Z/macros/structure.h +104 -0
- data/src/external/Z/API/Z/macros/templating.h +407 -0
- data/src/external/Z/API/Z/macros/tokens.h +14 -0
- data/src/external/Z/API/Z/macros/type enumeration.h +43 -0
- data/src/external/Z/API/Z/macros/type selection.hpp +76 -0
- data/src/external/Z/API/Z/macros/value.h +489 -0
- data/src/external/Z/API/Z/macros/variadic pasting.h +21 -0
- data/src/external/Z/API/Z/macros/variadic selection.h +56 -0
- data/src/external/Z/API/Z/macros/variadic.h +46 -0
- data/src/external/Z/API/Z/macros/version.h +17 -0
- data/src/external/Z/API/Z/network/3/IP.h +36 -0
- data/src/external/Z/API/Z/network/4/TCP.h +24 -0
- data/src/external/Z/API/Z/network/4/UDP.h +26 -0
- data/src/external/Z/API/Z/network/7/ED2K.h +104 -0
- data/src/external/Z/API/Z/network/7/HTTP.h +100 -0
- data/src/external/Z/API/Z/traits/SelectType.hpp +71 -0
- data/src/external/Z/API/Z/traits/TernaryType.hpp +20 -0
- data/src/external/Z/API/Z/traits/Type.hpp +4516 -0
- data/src/external/Z/API/Z/traits/TypeCount.hpp +52 -0
- data/src/external/Z/API/Z/traits/TypeList.hpp +376 -0
- data/src/external/Z/API/Z/traits/base.hpp +19 -0
- data/src/external/Z/API/Z/traits/filtering.hpp +30 -0
- data/src/external/Z/API/Z/traits/mathematics.hpp +48 -0
- data/src/external/Z/API/Z/types/arguments.h +19 -0
- data/src/external/Z/API/Z/types/base.h +1655 -0
- data/src/external/Z/API/Z/types/base.hpp +169 -0
- data/src/external/Z/API/Z/types/buffering.h +27 -0
- data/src/external/Z/API/Z/types/mathematics.h +135 -0
- data/src/external/Z/API/Z/types/time.h +23 -0
- data/src/external/Z/COPYING.LESSER +165 -0
- data/src/external/Z/development/Qt Creator/Z.pro +253 -0
- data/src/external/Z/distribution/CocoaPods/Zeta.podspec +18 -0
- data/src/external/Z/distribution/Gentoo Linux/Zeta-0.1.ebuild +22 -0
- data/src/external/Z/distribution/Gentoo Linux/metadata.xml +8 -0
- data/src/external/Z/distribution/Homebrew/Zeta.rb +11 -0
- data/src/external/z80/API/emulation/CPU/Z80.h +201 -0
- data/src/external/z80/README.md +229 -0
- data/src/external/z80/building/premake4.lua +33 -0
- data/src/external/z80/development/Xcode/Z80.xcodeproj/project.pbxproj +520 -0
- data/src/external/z80/sources/Z80.c +1660 -0
- data/src/interrupt.c +6 -0
- data/src/interrupt.h +3 -0
- data/src/io.c.erb +115 -0
- data/src/io.h.erb +18 -0
- data/src/main.c +69 -0
- data/src/memory.c.erb +43 -0
- data/src/memory.h.erb +9 -0
- metadata +329 -0
@@ -0,0 +1,169 @@
|
|
1
|
+
/* Z Kit - types/base.hpp
|
2
|
+
_____ _______________
|
3
|
+
/_ /_/ -_/_ _/ _ |
|
4
|
+
/____/\___/ /__//___/_| Kit
|
5
|
+
Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
|
6
|
+
Copyright (C) 2018 Ortega Sosa, Sofía.
|
7
|
+
Released under the terms of the GNU Lesser General Public License v3. */
|
8
|
+
|
9
|
+
#ifndef _Z_types_base_HPP_
|
10
|
+
#define _Z_types_base_HPP_
|
11
|
+
|
12
|
+
#include <Z/types/base.h>
|
13
|
+
#include <Z/macros/language.hpp>
|
14
|
+
|
15
|
+
namespace Zeta {
|
16
|
+
|
17
|
+
/* MARK: - Fixed width types */
|
18
|
+
|
19
|
+
typedef zuint8 UInt8;
|
20
|
+
typedef zsint8 SInt8;
|
21
|
+
typedef zuint16 UInt16;
|
22
|
+
typedef zsint16 SInt16;
|
23
|
+
typedef zuint32 UInt32;
|
24
|
+
typedef zsint32 SInt32;
|
25
|
+
|
26
|
+
# ifdef Z_UINT64
|
27
|
+
typedef zuint64 UInt64;
|
28
|
+
# endif
|
29
|
+
|
30
|
+
# ifdef Z_SINT64
|
31
|
+
typedef zsint64 SInt64;
|
32
|
+
# endif
|
33
|
+
|
34
|
+
# ifdef Z_UINT128
|
35
|
+
typedef zuint128 UInt128;
|
36
|
+
# endif
|
37
|
+
|
38
|
+
# ifdef Z_SINT128
|
39
|
+
typedef zsint128 SInt128;
|
40
|
+
# endif
|
41
|
+
|
42
|
+
# ifdef Z_FLOAT32
|
43
|
+
typedef zfloat32 Float32;
|
44
|
+
# endif
|
45
|
+
|
46
|
+
# ifdef Z_FLOAT64
|
47
|
+
typedef zfloat64 Float64;
|
48
|
+
# endif
|
49
|
+
|
50
|
+
# ifdef Z_FLOAT128
|
51
|
+
typedef zfloat128 Float128;
|
52
|
+
# endif
|
53
|
+
|
54
|
+
# ifdef Z_FLOAT80_X87
|
55
|
+
typedef zfloat80_x87 Float80_x87;
|
56
|
+
# endif
|
57
|
+
|
58
|
+
# ifdef Z_FLOAT96_X87
|
59
|
+
typedef zfloat96_x87 Float96_x87;
|
60
|
+
# endif
|
61
|
+
|
62
|
+
# ifdef Z_FLOAT128_X87
|
63
|
+
typedef zfloat128_x87 Float128_x87;
|
64
|
+
# endif
|
65
|
+
|
66
|
+
/* MARK: - C/C++ fundamental types */
|
67
|
+
|
68
|
+
typedef zchar Char;
|
69
|
+
typedef zuchar UChar;
|
70
|
+
typedef zschar SChar;
|
71
|
+
typedef zushort UShort;
|
72
|
+
typedef zsshort SShort;
|
73
|
+
typedef zuint UInt;
|
74
|
+
typedef zsint SInt;
|
75
|
+
typedef zulong ULong;
|
76
|
+
typedef zslong SLong;
|
77
|
+
|
78
|
+
# ifdef Z_LLONG
|
79
|
+
typedef zullong ULLong;
|
80
|
+
typedef zsllong SLLong;
|
81
|
+
# endif
|
82
|
+
|
83
|
+
# ifdef Z_FLOAT
|
84
|
+
typedef zfloat Float;
|
85
|
+
# endif
|
86
|
+
|
87
|
+
# ifdef Z_DOUBLE
|
88
|
+
typedef zdouble Double;
|
89
|
+
# endif
|
90
|
+
|
91
|
+
# ifdef Z_LDOUBLE
|
92
|
+
typedef zldouble LDouble;
|
93
|
+
# endif
|
94
|
+
|
95
|
+
# if Z_LANGUAGE_HAS_TYPE(CPP, BOOLEAN)
|
96
|
+
typedef bool Boolean;
|
97
|
+
# elif Z_LANGUAGE_HAS_TYPE(C, BOOLEAN)
|
98
|
+
typedef _Bool Boolean;
|
99
|
+
# else
|
100
|
+
typedef zboolean Boolean;
|
101
|
+
# endif
|
102
|
+
|
103
|
+
/* MARK: - C++ specific fundamental types */
|
104
|
+
|
105
|
+
# if Z_LANGUAGE_HAS_TYPE(CPP, WCHAR)
|
106
|
+
typedef wchar_t WChar;
|
107
|
+
# endif
|
108
|
+
|
109
|
+
# if Z_LANGUAGE_HAS_TYPE(CPP, CHAR16)
|
110
|
+
typedef char16_t Char16;
|
111
|
+
# endif
|
112
|
+
|
113
|
+
# if Z_LANGUAGE_HAS_TYPE(CPP, CHAR32)
|
114
|
+
typedef char32_t Char32;
|
115
|
+
# endif
|
116
|
+
|
117
|
+
# if Z_LANGUAGE_HAS_SPECIFIER(CPP, DECLARED_TYPE) && \
|
118
|
+
Z_LANGUAGE_HAS_LITERAL(CPP, NULL_POINTER)
|
119
|
+
|
120
|
+
typedef decltype(nullptr) NullPointer;
|
121
|
+
# endif
|
122
|
+
|
123
|
+
/* MARK: - Object size integral types */
|
124
|
+
|
125
|
+
typedef zusize USize;
|
126
|
+
typedef zssize SSize;
|
127
|
+
|
128
|
+
/* MARK: - Maximum size integral types */
|
129
|
+
|
130
|
+
typedef zuintmax UIntMax;
|
131
|
+
typedef zsintmax SIntMax;
|
132
|
+
|
133
|
+
/* MARK: - Pointer size integral types */
|
134
|
+
|
135
|
+
typedef zuintptr UIntPtr;
|
136
|
+
typedef zsintptr SIntPtr;
|
137
|
+
|
138
|
+
/* MARK: - Optimum maximum size integral types */
|
139
|
+
|
140
|
+
typedef zuinttop UIntTop;
|
141
|
+
typedef zsinttop SIntTop;
|
142
|
+
|
143
|
+
/* MARK: - Default types */
|
144
|
+
|
145
|
+
typedef znatural Natural;
|
146
|
+
typedef zinteger Integer;
|
147
|
+
|
148
|
+
# ifdef Z_REAL
|
149
|
+
typedef zreal Real;
|
150
|
+
# endif
|
151
|
+
|
152
|
+
/* MARK: - Not a type */
|
153
|
+
|
154
|
+
struct NaT {
|
155
|
+
# if Z_LANGUAGE_HAS(CPP, DELETED_FUNCTION)
|
156
|
+
NaT() = delete;
|
157
|
+
NaT(const NaT &) = delete;
|
158
|
+
~NaT() = delete;
|
159
|
+
NaT &operator =(const NaT &) = delete;
|
160
|
+
|
161
|
+
# if Z_LANGUAGE_HAS(CPP, RVALUE_REFERENCE)
|
162
|
+
NaT(NaT &&) = delete;
|
163
|
+
NaT &operator =(NaT &) = delete;
|
164
|
+
# endif
|
165
|
+
# endif
|
166
|
+
};
|
167
|
+
};
|
168
|
+
|
169
|
+
#endif // _Z_types_base_HPP_
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/* Z Kit - types/buffering.h
|
2
|
+
_____ _______________
|
3
|
+
/_ /_/ -_/_ _/ _ |
|
4
|
+
/____/\___/ /__//___/_| Kit
|
5
|
+
Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
|
6
|
+
Released under the terms of the GNU Lesser General Public License v3. */
|
7
|
+
|
8
|
+
#ifndef _Z_types_buffering_H_
|
9
|
+
#define _Z_types_buffering_H_
|
10
|
+
|
11
|
+
#include <Z/types/base.h>
|
12
|
+
|
13
|
+
typedef struct {
|
14
|
+
void* buffers[3];
|
15
|
+
zuint8 volatile flags;
|
16
|
+
} ZTripleBuffer;
|
17
|
+
|
18
|
+
typedef struct {
|
19
|
+
void* buffers;
|
20
|
+
zusize buffer_size;
|
21
|
+
zusize buffer_count;
|
22
|
+
zusize consumption_index;
|
23
|
+
zusize production_index;
|
24
|
+
zusize volatile fill_count;
|
25
|
+
} ZRingBuffer;
|
26
|
+
|
27
|
+
#endif /* _Z_types_buffering_H_ */
|
@@ -0,0 +1,135 @@
|
|
1
|
+
/* Z Kit - types/mathematics.h
|
2
|
+
_____ _______________
|
3
|
+
/_ /_/ -_/_ _/ _ |
|
4
|
+
/____/\___/ /__//___/_| Kit
|
5
|
+
Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
|
6
|
+
Released under the terms of the GNU Lesser General Public License v3. */
|
7
|
+
|
8
|
+
#ifndef _Z_types_mathematics_H_
|
9
|
+
#define _Z_types_mathematics_H_
|
10
|
+
|
11
|
+
#include <Z/types/base.h>
|
12
|
+
|
13
|
+
/* MARK: - Euclidean geometry */
|
14
|
+
|
15
|
+
#define Z_TYPES_SIGNED(Type, type) \
|
16
|
+
typedef struct {Z2D##Type a, b;} Z2DLine##Type; \
|
17
|
+
typedef struct {Z3D##Type a, b;} Z3DLine##Type; \
|
18
|
+
typedef Z2DLine##Type ZAABR##Type; \
|
19
|
+
typedef Z3DLine##Type ZAABB##Type; \
|
20
|
+
typedef struct {Z2D##Type point, size;} ZRectangle##Type; \
|
21
|
+
typedef struct {Z3D##Type point, size;} ZBox##Type;
|
22
|
+
|
23
|
+
#define Z2DLineType( TYPE) Z_APPEND_##TYPE##_FixedType(Z2DLine )
|
24
|
+
#define Z3DLineType( TYPE) Z_APPEND_##TYPE##_FixedType(Z3DLine )
|
25
|
+
#define ZAABRType( TYPE) Z_APPEND_##TYPE##_FixedType(ZAABR )
|
26
|
+
#define ZAABBType( TYPE) Z_APPEND_##TYPE##_FixedType(ZAABB )
|
27
|
+
#define ZRectangleType(TYPE) Z_APPEND_##TYPE##_FixedType(ZRectangle)
|
28
|
+
#define ZBoxType( TYPE) Z_APPEND_##TYPE##_FixedType(ZBox )
|
29
|
+
|
30
|
+
#define Z_TYPES_REAL(Type, type) \
|
31
|
+
typedef struct {Z2D##Type point; z##type radius;} ZCircle##Type; \
|
32
|
+
typedef struct {Z3D##Type point; z##type radius;} ZSphere##Type; \
|
33
|
+
typedef struct {Z2D##Type point; z##type angle; } Z2DRay##Type; \
|
34
|
+
typedef struct {Z3D##Type point; z##type angle; } Z3DRay##Type; \
|
35
|
+
typedef struct {Z3D##Type normal; z##type offset;} ZPlane##Type;
|
36
|
+
|
37
|
+
#define Z2DRayType( TYPE) Z_APPEND_##TYPE##_FixedType(Z2DRay )
|
38
|
+
#define Z3DRayType( TYPE) Z_APPEND_##TYPE##_FixedType(Z3DRay )
|
39
|
+
#define ZCircleType(TYPE) Z_APPEND_##TYPE##_FixedType(ZCircle)
|
40
|
+
#define ZSphereType(TYPE) Z_APPEND_##TYPE##_FixedType(ZSphere)
|
41
|
+
#define ZPlaneType( TYPE) Z_APPEND_##TYPE##_FixedType(ZPlane )
|
42
|
+
|
43
|
+
Z_TYPES_SIGNED(SInt8, sint8 )
|
44
|
+
Z_TYPES_SIGNED(SInt16, sint16)
|
45
|
+
Z_TYPES_SIGNED(SInt32, sint32)
|
46
|
+
|
47
|
+
#ifdef Z_SINT64
|
48
|
+
Z_TYPES_SIGNED(SInt64, sint64)
|
49
|
+
#endif
|
50
|
+
|
51
|
+
#ifdef Z_SINT128
|
52
|
+
Z_TYPES_SIGNED(SInt128, sint128)
|
53
|
+
#endif
|
54
|
+
|
55
|
+
#ifdef Z_FLOAT16
|
56
|
+
Z_TYPES_SIGNED(Float16, float16)
|
57
|
+
Z_TYPES_REAL (Float16, float16)
|
58
|
+
#endif
|
59
|
+
|
60
|
+
#ifdef Z_FLOAT32
|
61
|
+
Z_TYPES_SIGNED(Float32, float32)
|
62
|
+
Z_TYPES_REAL (Float32, float32)
|
63
|
+
#endif
|
64
|
+
|
65
|
+
#ifdef Z_FLOAT64
|
66
|
+
Z_TYPES_SIGNED(Float64, float64)
|
67
|
+
Z_TYPES_REAL (Float64, float64)
|
68
|
+
#endif
|
69
|
+
|
70
|
+
#ifdef Z_FLOAT128
|
71
|
+
Z_TYPES_SIGNED(Float128, float128)
|
72
|
+
Z_TYPES_REAL (Float128, float128)
|
73
|
+
#endif
|
74
|
+
|
75
|
+
#ifdef Z_FLOAT80_X87
|
76
|
+
Z_TYPES_SIGNED(Float80_x87, float80_x87)
|
77
|
+
Z_TYPES_REAL (Float80_x87, float80_x87)
|
78
|
+
#endif
|
79
|
+
|
80
|
+
#ifdef Z_FLOAT96_X87
|
81
|
+
Z_TYPES_SIGNED(Float96_x87, float96_x87)
|
82
|
+
Z_TYPES_REAL (Float96_x87, float96_x87)
|
83
|
+
#endif
|
84
|
+
|
85
|
+
#ifdef Z_FLOAT128_X87
|
86
|
+
Z_TYPES_SIGNED(Float128_x87, float128_x87)
|
87
|
+
Z_TYPES_REAL (Float128_x87, float128_x87)
|
88
|
+
#endif
|
89
|
+
|
90
|
+
#undef Z_TYPES_SIGNED
|
91
|
+
#undef Z_TYPES_REAL
|
92
|
+
|
93
|
+
/* MARK: - Set theory */
|
94
|
+
|
95
|
+
typedef struct ZSet ZSet;
|
96
|
+
typedef struct ZSetElement ZSetElement;
|
97
|
+
|
98
|
+
Z_DEFINE_STRUCTURE_WITH_NAME (ZSetNode,
|
99
|
+
ZSetNode* x_next;
|
100
|
+
ZSetNode* x_previous;
|
101
|
+
ZSetNode* y_next;
|
102
|
+
ZSetNode* y_previous;
|
103
|
+
ZSet* set;
|
104
|
+
ZSetElement* element;
|
105
|
+
);
|
106
|
+
|
107
|
+
struct ZSet {
|
108
|
+
ZSetNode* first_node;
|
109
|
+
zusize size;
|
110
|
+
ZSetNode* last_node;
|
111
|
+
};
|
112
|
+
|
113
|
+
struct ZSetElement {
|
114
|
+
ZSetNode* first_node;
|
115
|
+
zusize set_count;
|
116
|
+
ZSetNode* last_node;
|
117
|
+
};
|
118
|
+
|
119
|
+
/* MARK: - Default real type definitions */
|
120
|
+
|
121
|
+
#ifdef Z_REAL
|
122
|
+
typedef Z2DLineType (REAL) Z2DLine;
|
123
|
+
typedef Z2DRayType (REAL) Z2DRay;
|
124
|
+
typedef Z3DLineType (REAL) Z3DLine;
|
125
|
+
typedef Z3DRayType (REAL) Z3DRay;
|
126
|
+
typedef ZAABBType (REAL) ZAABB;
|
127
|
+
typedef ZAABRType (REAL) ZAABR;
|
128
|
+
typedef ZBoxType (REAL) ZBox;
|
129
|
+
typedef ZCircleType (REAL) ZCircle;
|
130
|
+
typedef ZPlaneType (REAL) ZPlane;
|
131
|
+
typedef ZRectangleType(REAL) ZRectangle;
|
132
|
+
typedef ZSphereType (REAL) ZSphere;
|
133
|
+
#endif
|
134
|
+
|
135
|
+
#endif /* _Z_types_mathematics_H_ */
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/* Z Kit - types/time.h
|
2
|
+
_____ _______________
|
3
|
+
/_ /_/ -_/_ _/ _ |
|
4
|
+
/____/\___/ /__//___/_| Kit
|
5
|
+
Copyright (C) 2006-2018 Manuel Sainz de Baranda y Goñi.
|
6
|
+
Released under the terms of the GNU Lesser General Public License v3. */
|
7
|
+
|
8
|
+
#ifndef _Z_types_time_H_
|
9
|
+
#define _Z_types_time_H_
|
10
|
+
|
11
|
+
#include <Z/types/base.h>
|
12
|
+
|
13
|
+
Z_DEFINE_STRICT_STRUCTURE (
|
14
|
+
Z128Bit seconds;
|
15
|
+
Z64Bit attoseconds;
|
16
|
+
) ZAttotime;
|
17
|
+
|
18
|
+
Z_DEFINE_STRICT_STRUCTURE (
|
19
|
+
Z128Bit seconds;
|
20
|
+
zuint32 nanoseconds;
|
21
|
+
) ZNanotime;
|
22
|
+
|
23
|
+
#endif /* _Z_types_time_H_ */
|
@@ -0,0 +1,165 @@
|
|
1
|
+
GNU LESSER GENERAL PUBLIC LICENSE
|
2
|
+
Version 3, 29 June 2007
|
3
|
+
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
5
|
+
Everyone is permitted to copy and distribute verbatim copies
|
6
|
+
of this license document, but changing it is not allowed.
|
7
|
+
|
8
|
+
|
9
|
+
This version of the GNU Lesser General Public License incorporates
|
10
|
+
the terms and conditions of version 3 of the GNU General Public
|
11
|
+
License, supplemented by the additional permissions listed below.
|
12
|
+
|
13
|
+
0. Additional Definitions.
|
14
|
+
|
15
|
+
As used herein, "this License" refers to version 3 of the GNU Lesser
|
16
|
+
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
17
|
+
General Public License.
|
18
|
+
|
19
|
+
"The Library" refers to a covered work governed by this License,
|
20
|
+
other than an Application or a Combined Work as defined below.
|
21
|
+
|
22
|
+
An "Application" is any work that makes use of an interface provided
|
23
|
+
by the Library, but which is not otherwise based on the Library.
|
24
|
+
Defining a subclass of a class defined by the Library is deemed a mode
|
25
|
+
of using an interface provided by the Library.
|
26
|
+
|
27
|
+
A "Combined Work" is a work produced by combining or linking an
|
28
|
+
Application with the Library. The particular version of the Library
|
29
|
+
with which the Combined Work was made is also called the "Linked
|
30
|
+
Version".
|
31
|
+
|
32
|
+
The "Minimal Corresponding Source" for a Combined Work means the
|
33
|
+
Corresponding Source for the Combined Work, excluding any source code
|
34
|
+
for portions of the Combined Work that, considered in isolation, are
|
35
|
+
based on the Application, and not on the Linked Version.
|
36
|
+
|
37
|
+
The "Corresponding Application Code" for a Combined Work means the
|
38
|
+
object code and/or source code for the Application, including any data
|
39
|
+
and utility programs needed for reproducing the Combined Work from the
|
40
|
+
Application, but excluding the System Libraries of the Combined Work.
|
41
|
+
|
42
|
+
1. Exception to Section 3 of the GNU GPL.
|
43
|
+
|
44
|
+
You may convey a covered work under sections 3 and 4 of this License
|
45
|
+
without being bound by section 3 of the GNU GPL.
|
46
|
+
|
47
|
+
2. Conveying Modified Versions.
|
48
|
+
|
49
|
+
If you modify a copy of the Library, and, in your modifications, a
|
50
|
+
facility refers to a function or data to be supplied by an Application
|
51
|
+
that uses the facility (other than as an argument passed when the
|
52
|
+
facility is invoked), then you may convey a copy of the modified
|
53
|
+
version:
|
54
|
+
|
55
|
+
a) under this License, provided that you make a good faith effort to
|
56
|
+
ensure that, in the event an Application does not supply the
|
57
|
+
function or data, the facility still operates, and performs
|
58
|
+
whatever part of its purpose remains meaningful, or
|
59
|
+
|
60
|
+
b) under the GNU GPL, with none of the additional permissions of
|
61
|
+
this License applicable to that copy.
|
62
|
+
|
63
|
+
3. Object Code Incorporating Material from Library Header Files.
|
64
|
+
|
65
|
+
The object code form of an Application may incorporate material from
|
66
|
+
a header file that is part of the Library. You may convey such object
|
67
|
+
code under terms of your choice, provided that, if the incorporated
|
68
|
+
material is not limited to numerical parameters, data structure
|
69
|
+
layouts and accessors, or small macros, inline functions and templates
|
70
|
+
(ten or fewer lines in length), you do both of the following:
|
71
|
+
|
72
|
+
a) Give prominent notice with each copy of the object code that the
|
73
|
+
Library is used in it and that the Library and its use are
|
74
|
+
covered by this License.
|
75
|
+
|
76
|
+
b) Accompany the object code with a copy of the GNU GPL and this license
|
77
|
+
document.
|
78
|
+
|
79
|
+
4. Combined Works.
|
80
|
+
|
81
|
+
You may convey a Combined Work under terms of your choice that,
|
82
|
+
taken together, effectively do not restrict modification of the
|
83
|
+
portions of the Library contained in the Combined Work and reverse
|
84
|
+
engineering for debugging such modifications, if you also do each of
|
85
|
+
the following:
|
86
|
+
|
87
|
+
a) Give prominent notice with each copy of the Combined Work that
|
88
|
+
the Library is used in it and that the Library and its use are
|
89
|
+
covered by this License.
|
90
|
+
|
91
|
+
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
92
|
+
document.
|
93
|
+
|
94
|
+
c) For a Combined Work that displays copyright notices during
|
95
|
+
execution, include the copyright notice for the Library among
|
96
|
+
these notices, as well as a reference directing the user to the
|
97
|
+
copies of the GNU GPL and this license document.
|
98
|
+
|
99
|
+
d) Do one of the following:
|
100
|
+
|
101
|
+
0) Convey the Minimal Corresponding Source under the terms of this
|
102
|
+
License, and the Corresponding Application Code in a form
|
103
|
+
suitable for, and under terms that permit, the user to
|
104
|
+
recombine or relink the Application with a modified version of
|
105
|
+
the Linked Version to produce a modified Combined Work, in the
|
106
|
+
manner specified by section 6 of the GNU GPL for conveying
|
107
|
+
Corresponding Source.
|
108
|
+
|
109
|
+
1) Use a suitable shared library mechanism for linking with the
|
110
|
+
Library. A suitable mechanism is one that (a) uses at run time
|
111
|
+
a copy of the Library already present on the user's computer
|
112
|
+
system, and (b) will operate properly with a modified version
|
113
|
+
of the Library that is interface-compatible with the Linked
|
114
|
+
Version.
|
115
|
+
|
116
|
+
e) Provide Installation Information, but only if you would otherwise
|
117
|
+
be required to provide such information under section 6 of the
|
118
|
+
GNU GPL, and only to the extent that such information is
|
119
|
+
necessary to install and execute a modified version of the
|
120
|
+
Combined Work produced by recombining or relinking the
|
121
|
+
Application with a modified version of the Linked Version. (If
|
122
|
+
you use option 4d0, the Installation Information must accompany
|
123
|
+
the Minimal Corresponding Source and Corresponding Application
|
124
|
+
Code. If you use option 4d1, you must provide the Installation
|
125
|
+
Information in the manner specified by section 6 of the GNU GPL
|
126
|
+
for conveying Corresponding Source.)
|
127
|
+
|
128
|
+
5. Combined Libraries.
|
129
|
+
|
130
|
+
You may place library facilities that are a work based on the
|
131
|
+
Library side by side in a single library together with other library
|
132
|
+
facilities that are not Applications and are not covered by this
|
133
|
+
License, and convey such a combined library under terms of your
|
134
|
+
choice, if you do both of the following:
|
135
|
+
|
136
|
+
a) Accompany the combined library with a copy of the same work based
|
137
|
+
on the Library, uncombined with any other library facilities,
|
138
|
+
conveyed under the terms of this License.
|
139
|
+
|
140
|
+
b) Give prominent notice with the combined library that part of it
|
141
|
+
is a work based on the Library, and explaining where to find the
|
142
|
+
accompanying uncombined form of the same work.
|
143
|
+
|
144
|
+
6. Revised Versions of the GNU Lesser General Public License.
|
145
|
+
|
146
|
+
The Free Software Foundation may publish revised and/or new versions
|
147
|
+
of the GNU Lesser General Public License from time to time. Such new
|
148
|
+
versions will be similar in spirit to the present version, but may
|
149
|
+
differ in detail to address new problems or concerns.
|
150
|
+
|
151
|
+
Each version is given a distinguishing version number. If the
|
152
|
+
Library as you received it specifies that a certain numbered version
|
153
|
+
of the GNU Lesser General Public License "or any later version"
|
154
|
+
applies to it, you have the option of following the terms and
|
155
|
+
conditions either of that published version or of any later version
|
156
|
+
published by the Free Software Foundation. If the Library as you
|
157
|
+
received it does not specify a version number of the GNU Lesser
|
158
|
+
General Public License, you may choose any version of the GNU Lesser
|
159
|
+
General Public License ever published by the Free Software Foundation.
|
160
|
+
|
161
|
+
If the Library as you received it specifies that a proxy can decide
|
162
|
+
whether future versions of the GNU Lesser General Public License shall
|
163
|
+
apply, that proxy's public statement of acceptance of any version is
|
164
|
+
permanent authorization for you to choose that version for the
|
165
|
+
Library.
|