diff --git a/mk/fedora/buildRPMs.sh b/mk/fedora/buildRPMs.sh index d4aa7b463..610ec699f 100755 --- a/mk/fedora/buildRPMs.sh +++ b/mk/fedora/buildRPMs.sh @@ -6,14 +6,16 @@ # change the variables as required (I build from my local system). Commented out # below for example are wget calls to get source and data from the official # sourceforge links +# Originally written by Mark Vejvoda +# Copyright (c) 2012 Mark Vejvoda under GNU GPL v3.0 # # Start changes here # -SOURCE_PACKAGE_VER=3.6.0.1 +SOURCE_PACKAGE_VER=3.7.0.1 DATA_PACKAGE_VER=$SOURCE_PACKAGE_VER -SOURCE_PACKAGE_RPM_VER=3.6.0 +SOURCE_PACKAGE_RPM_VER=3.7.0 DATA_PACKAGE_RPM_VER=$SOURCE_PACKAGE_RPM_VER SOURCE_COPY_CMD="cp /media/dlinknas/games/MegaGlest/megaglest-source-$SOURCE_PACKAGE_VER.tar.xz ./" @@ -78,6 +80,6 @@ sudo cp megaglest-data-$DATA_PACKAGE_RPM_VER.tar.bz2 /home/makerpm/rpmbuild/SOUR # now build the binary and data rpms echo "building rpms..." -su - makerpm -c "rpmdev-setuptree; cd rpmbuild/; tar xvf ../megaglest-rpm-meta.tar.bz2; cd SPECS/; rpmbuild -ba megaglest.spec; cd ../; cp RPMS/x86/*.rpm /media/dlinknas/games/MegaGlest/; $SOURCE_PUBLISH_CMD; mv SOURCES/megaglest-data-3.6.0.tar.bz2 ./; rm -f SOURCES/*; mv megaglest-data-3.6.0.tar.bz2 SOURCES/; rm -f SPECS/*; mv megaglest-data.spec SPECS/; cd SPECS/; rpmbuild -ba megaglest-data.spec; cd ../; $DATA_PUBLISH_CMD; rm -f SOURCES/*; rm -f SPECS/*;" +su - makerpm -c "rpmdev-setuptree; cd rpmbuild/; tar xvf ../megaglest-rpm-meta.tar.bz2; cd SPECS/; rpmbuild -ba megaglest.spec; cd ../; cp RPMS/x86/*.rpm /media/dlinknas/games/MegaGlest/; $SOURCE_PUBLISH_CMD; mv SOURCES/megaglest-data-$SOURCE_PACKAGE_RPM_VER.tar.bz2 ./; rm -f SOURCES/*; mv megaglest-data-$SOURCE_PACKAGE_RPM_VER.tar.bz2 SOURCES/; rm -f SPECS/*; mv megaglest-data.spec SPECS/; cd SPECS/; rpmbuild -ba megaglest-data.spec; cd ../; $DATA_PUBLISH_CMD; rm -f SOURCES/*; rm -f SPECS/*;" echo "DONE building rpms" diff --git a/mk/linux/mg_perf.sh b/mk/linux/mg_perf.sh index eaa3afb33..8ad5cb339 100755 --- a/mk/linux/mg_perf.sh +++ b/mk/linux/mg_perf.sh @@ -1,4 +1,8 @@ -#!/bin/sh +#!/bin/bash +# Use this script to gather MegaGlest performance stats +# ---------------------------------------------------------------------------- +# Written by Mark Vejvoda +# Copyright (c) 2012 Mark Vejvoda under GNU GPL v3.0+ echo 'Recording performnce stats...' diff --git a/mk/linux/mojosetup/archive_pck.c b/mk/linux/mojosetup/archive_pck.c index a5b10d242..4d787ce36 100644 --- a/mk/linux/mojosetup/archive_pck.c +++ b/mk/linux/mojosetup/archive_pck.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Steffen Pankratz. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #include "fileio.h" diff --git a/mk/linux/mojosetup/archive_pkg.c b/mk/linux/mojosetup/archive_pkg.c index ea272da7a..27b5ef4e8 100644 --- a/mk/linux/mojosetup/archive_pkg.c +++ b/mk/linux/mojosetup/archive_pkg.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Steffen Pankratz. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #include "fileio.h" diff --git a/mk/linux/mojosetup/archive_tar.c b/mk/linux/mojosetup/archive_tar.c index 3db9696be..e884cb648 100644 --- a/mk/linux/mojosetup/archive_tar.c +++ b/mk/linux/mojosetup/archive_tar.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ // Specs for the tar format can be found here... diff --git a/mk/linux/mojosetup/archive_uz2.c b/mk/linux/mojosetup/archive_uz2.c index 792c1ccfa..bc217d9db 100644 --- a/mk/linux/mojosetup/archive_uz2.c +++ b/mk/linux/mojosetup/archive_uz2.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #include "fileio.h" diff --git a/mk/linux/mojosetup/archive_zip.c b/mk/linux/mojosetup/archive_zip.c index cdff7c707..48b6a3e59 100644 --- a/mk/linux/mojosetup/archive_zip.c +++ b/mk/linux/mojosetup/archive_zip.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + */ #include "fileio.h" diff --git a/mk/linux/mojosetup/buildver.c b/mk/linux/mojosetup/buildver.c index cd14aaad1..0d04c9bc6 100644 --- a/mk/linux/mojosetup/buildver.c +++ b/mk/linux/mojosetup/buildver.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ /* diff --git a/mk/linux/mojosetup/checksum_crc32.c b/mk/linux/mojosetup/checksum_crc32.c index 68e855431..d5abb9179 100644 --- a/mk/linux/mojosetup/checksum_crc32.c +++ b/mk/linux/mojosetup/checksum_crc32.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + */ #include "universal.h" diff --git a/mk/linux/mojosetup/checksum_sha1.c b/mk/linux/mojosetup/checksum_sha1.c index b507975fc..2cb1f1928 100644 --- a/mk/linux/mojosetup/checksum_sha1.c +++ b/mk/linux/mojosetup/checksum_sha1.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #include "universal.h" diff --git a/mk/linux/mojosetup/fileio.c b/mk/linux/mojosetup/fileio.c index 81ec030b1..d0fc67621 100644 --- a/mk/linux/mojosetup/fileio.c +++ b/mk/linux/mojosetup/fileio.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #include "fileio.h" diff --git a/mk/linux/mojosetup/fileio.h b/mk/linux/mojosetup/fileio.h index 765db0037..6ee326ef3 100644 --- a/mk/linux/mojosetup/fileio.h +++ b/mk/linux/mojosetup/fileio.h @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #ifndef _INCL_FILEIO_H_ diff --git a/mk/linux/mojosetup/gui.c b/mk/linux/mojosetup/gui.c index f4d1b9594..dcd1be90b 100644 --- a/mk/linux/mojosetup/gui.c +++ b/mk/linux/mojosetup/gui.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #include "gui.h" diff --git a/mk/linux/mojosetup/gui.h b/mk/linux/mojosetup/gui.h index 7b80dda85..f1a41676f 100644 --- a/mk/linux/mojosetup/gui.h +++ b/mk/linux/mojosetup/gui.h @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #ifndef _INCL_GUI_H_ diff --git a/mk/linux/mojosetup/gui_cocoa.m b/mk/linux/mojosetup/gui_cocoa.m index 05d0e685e..16805c642 100644 --- a/mk/linux/mojosetup/gui_cocoa.m +++ b/mk/linux/mojosetup/gui_cocoa.m @@ -4,6 +4,28 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + */ #if !SUPPORT_GUI_COCOA diff --git a/mk/linux/mojosetup/gui_gtkplus2.c b/mk/linux/mojosetup/gui_gtkplus2.c index ad359adc0..940f4c7c6 100644 --- a/mk/linux/mojosetup/gui_gtkplus2.c +++ b/mk/linux/mojosetup/gui_gtkplus2.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ // Not only does GTK+ 2.x _look_ better than 1.x, it offers a lot of basic diff --git a/mk/linux/mojosetup/gui_ncurses.c b/mk/linux/mojosetup/gui_ncurses.c index 733f0b265..a6de0a80c 100644 --- a/mk/linux/mojosetup/gui_ncurses.c +++ b/mk/linux/mojosetup/gui_ncurses.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #if !SUPPORT_GUI_NCURSES diff --git a/mk/linux/mojosetup/gui_stdio.c b/mk/linux/mojosetup/gui_stdio.c index 805469018..722912c73 100644 --- a/mk/linux/mojosetup/gui_stdio.c +++ b/mk/linux/mojosetup/gui_stdio.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + */ #if !SUPPORT_GUI_STDIO diff --git a/mk/linux/mojosetup/gui_www.c b/mk/linux/mojosetup/gui_www.c index a2459ba96..45079f2dc 100644 --- a/mk/linux/mojosetup/gui_www.c +++ b/mk/linux/mojosetup/gui_www.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #if !SUPPORT_GUI_WWW diff --git a/mk/linux/mojosetup/libfetch/ftperr.h b/mk/linux/mojosetup/libfetch/ftperr.h index e4800a05e..970a9ccce 100644 --- a/mk/linux/mojosetup/libfetch/ftperr.h +++ b/mk/linux/mojosetup/libfetch/ftperr.h @@ -1,3 +1,27 @@ +/* +Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon +*/ + static struct fetcherr _ftp_errlist[] = { { 110, FETCH_OK, "Restart marker reply" }, { 120, FETCH_TEMP, "Service ready in a few minutes" }, diff --git a/mk/linux/mojosetup/libfetch/httperr.h b/mk/linux/mojosetup/libfetch/httperr.h index 64c3c1e20..a3808ac3f 100644 --- a/mk/linux/mojosetup/libfetch/httperr.h +++ b/mk/linux/mojosetup/libfetch/httperr.h @@ -1,3 +1,27 @@ +/* +Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon +*/ + static struct fetcherr _http_errlist[] = { { 100, FETCH_OK, "Continue" }, { 101, FETCH_OK, "Switching Protocols" }, diff --git a/mk/linux/mojosetup/libfetch/mojosetup_libfetch.h b/mk/linux/mojosetup/libfetch/mojosetup_libfetch.h index 7b7604c91..e0e42e3fa 100644 --- a/mk/linux/mojosetup/libfetch/mojosetup_libfetch.h +++ b/mk/linux/mojosetup/libfetch/mojosetup_libfetch.h @@ -1,3 +1,27 @@ +/* +Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon +*/ + #ifndef _INCL_MOJOSETUP_LIBFETCH_H_ #define _INCL_MOJOSETUP_LIBFETCH_H_ diff --git a/mk/linux/mojosetup/libfetch/regen_error_headers.sh b/mk/linux/mojosetup/libfetch/regen_error_headers.sh deleted file mode 100755 index 3efcc3392..000000000 --- a/mk/linux/mojosetup/libfetch/regen_error_headers.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -echo "static struct fetcherr _http_errlist[] = {" > httperr.h -cat http.errors \ - | grep -v ^# \ - | sort \ - | while read NUM CAT STRING; do \ - echo " { ${NUM}, FETCH_${CAT}, \"${STRING}\" },"; \ - done >> httperr.h -echo " { -1, FETCH_UNKNOWN, \"Unknown HTTP error\" }" >> httperr.h -echo "};" >> httperr.h -echo >> httpderr.h - -echo "static struct fetcherr _ftp_errlist[] = {" > ftperr.h -cat ftp.errors \ - | grep -v ^# \ - | sort \ - | while read NUM CAT STRING; do \ - echo " { ${NUM}, FETCH_${CAT}, \"${STRING}\" },"; \ - done >> ftperr.h -echo " { -1, FETCH_UNKNOWN, \"Unknown FTP error\" }" >> ftperr.h -echo "};" >> ftperr.h -echo >> ftperr.h - - diff --git a/mk/linux/mojosetup/liblzma/api/lzma.h b/mk/linux/mojosetup/liblzma/api/lzma.h index fb874c3e1..9ac997d80 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma.h +++ b/mk/linux/mojosetup/liblzma/api/lzma.h @@ -21,6 +21,11 @@ */ /* + // +// Copyright 2012 Lasse Collin +// Public Domain +// + * Author: Lasse Collin * * This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/api/lzma/base.h b/mk/linux/mojosetup/liblzma/api/lzma/base.h index 43dde8d60..e28a1e95f 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/base.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/base.h @@ -3,6 +3,11 @@ * \brief Data types and functions used in many places in liblzma API */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/bcj.h b/mk/linux/mojosetup/liblzma/api/lzma/bcj.h index 8e37538ad..2b04a11da 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/bcj.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/bcj.h @@ -3,6 +3,11 @@ * \brief Branch/Call/Jump conversion filters */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/block.h b/mk/linux/mojosetup/liblzma/api/lzma/block.h index 8a4bf2323..c1b9c4f65 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/block.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/block.h @@ -3,6 +3,11 @@ * \brief .xz Block handling */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/check.h b/mk/linux/mojosetup/liblzma/api/lzma/check.h index 6a243db0d..d36c6d683 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/check.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/check.h @@ -3,6 +3,11 @@ * \brief Integrity checks */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/container.h b/mk/linux/mojosetup/liblzma/api/lzma/container.h index 7a9ffc645..9ccc6e617 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/container.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/container.h @@ -3,6 +3,11 @@ * \brief File formats */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/delta.h b/mk/linux/mojosetup/liblzma/api/lzma/delta.h index 592fc4f84..315350216 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/delta.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/delta.h @@ -3,6 +3,11 @@ * \brief Delta filter */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/filter.h b/mk/linux/mojosetup/liblzma/api/lzma/filter.h index e0bc163ad..56a0fd146 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/filter.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/filter.h @@ -3,6 +3,11 @@ * \brief Common filter related types and functions */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/hardware.h b/mk/linux/mojosetup/liblzma/api/lzma/hardware.h index e7dd03c3e..caf54da68 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/hardware.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/hardware.h @@ -20,6 +20,11 @@ * the syscalls if they return EINTR. */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/index.h b/mk/linux/mojosetup/liblzma/api/lzma/index.h index 16bacc287..d79789113 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/index.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/index.h @@ -3,6 +3,11 @@ * \brief Handling of .xz Index and related information */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/index_hash.h b/mk/linux/mojosetup/liblzma/api/lzma/index_hash.h index fa2e048d5..cdea791bc 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/index_hash.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/index_hash.h @@ -6,6 +6,11 @@ * Index of arbitrary size. */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/lzma.h b/mk/linux/mojosetup/liblzma/api/lzma/lzma.h index 3f8e095f7..3064680cd 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/lzma.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/lzma.h @@ -3,6 +3,11 @@ * \brief LZMA1 and LZMA2 filters */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/stream_flags.h b/mk/linux/mojosetup/liblzma/api/lzma/stream_flags.h index bbdd40826..9d4204fe4 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/stream_flags.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/stream_flags.h @@ -3,6 +3,11 @@ * \brief .xz Stream Header and Stream Footer encoder and decoder */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/version.h b/mk/linux/mojosetup/liblzma/api/lzma/version.h index 922666377..7897fcbec 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/version.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/version.h @@ -3,6 +3,11 @@ * \brief Version number */ +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + /* * Author: Lasse Collin * diff --git a/mk/linux/mojosetup/liblzma/api/lzma/vli.h b/mk/linux/mojosetup/liblzma/api/lzma/vli.h index 9ad13f2e2..c70249196 100644 --- a/mk/linux/mojosetup/liblzma/api/lzma/vli.h +++ b/mk/linux/mojosetup/liblzma/api/lzma/vli.h @@ -15,6 +15,11 @@ */ /* + // +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + * Author: Lasse Collin * * This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/check/check.c b/mk/linux/mojosetup/liblzma/check/check.c index 60efb474c..da13e1c2b 100644 --- a/mk/linux/mojosetup/liblzma/check/check.c +++ b/mk/linux/mojosetup/liblzma/check/check.c @@ -3,6 +3,11 @@ /// \file check.c /// \brief Single API to access different integrity checks // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/check/check.h b/mk/linux/mojosetup/liblzma/check/check.h index 50694925a..048ea0c13 100644 --- a/mk/linux/mojosetup/liblzma/check/check.h +++ b/mk/linux/mojosetup/liblzma/check/check.h @@ -3,6 +3,11 @@ /// \file check.h /// \brief Internal API to different integrity check functions // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/check/crc_macros.h b/mk/linux/mojosetup/liblzma/check/crc_macros.h index a7c21b765..046aedb20 100644 --- a/mk/linux/mojosetup/liblzma/check/crc_macros.h +++ b/mk/linux/mojosetup/liblzma/check/crc_macros.h @@ -3,6 +3,11 @@ /// \file crc_macros.h /// \brief Some endian-dependent macros for CRC32 and CRC64 // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/alone_decoder.c b/mk/linux/mojosetup/liblzma/common/alone_decoder.c index 678c79e65..93ce0c935 100644 --- a/mk/linux/mojosetup/liblzma/common/alone_decoder.c +++ b/mk/linux/mojosetup/liblzma/common/alone_decoder.c @@ -3,6 +3,11 @@ /// \file alone_decoder.c /// \brief Decoder for LZMA_Alone files // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/alone_decoder.h b/mk/linux/mojosetup/liblzma/common/alone_decoder.h index 70d0d2a0f..03ab8e146 100644 --- a/mk/linux/mojosetup/liblzma/common/alone_decoder.h +++ b/mk/linux/mojosetup/liblzma/common/alone_decoder.h @@ -3,6 +3,11 @@ /// \file alone_decoder.h /// \brief Decoder for LZMA_Alone files // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/block_decoder.c b/mk/linux/mojosetup/liblzma/common/block_decoder.c index a3ce6f495..feedf2f0a 100644 --- a/mk/linux/mojosetup/liblzma/common/block_decoder.c +++ b/mk/linux/mojosetup/liblzma/common/block_decoder.c @@ -3,6 +3,11 @@ /// \file block_decoder.c /// \brief Decodes .xz Blocks // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/block_decoder.h b/mk/linux/mojosetup/liblzma/common/block_decoder.h index 7da9df63f..12908e5a0 100644 --- a/mk/linux/mojosetup/liblzma/common/block_decoder.h +++ b/mk/linux/mojosetup/liblzma/common/block_decoder.h @@ -3,6 +3,11 @@ /// \file block_decoder.h /// \brief Decodes .xz Blocks // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/block_header_decoder.c b/mk/linux/mojosetup/liblzma/common/block_header_decoder.c index d98eea23d..a6cb992ac 100644 --- a/mk/linux/mojosetup/liblzma/common/block_header_decoder.c +++ b/mk/linux/mojosetup/liblzma/common/block_header_decoder.c @@ -3,6 +3,11 @@ /// \file block_header_decoder.c /// \brief Decodes Block Header from .xz files // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/block_util.c b/mk/linux/mojosetup/liblzma/common/block_util.c index 62c934547..a41bb1815 100644 --- a/mk/linux/mojosetup/liblzma/common/block_util.c +++ b/mk/linux/mojosetup/liblzma/common/block_util.c @@ -3,6 +3,11 @@ /// \file block_header.c /// \brief Utility functions to handle lzma_block // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/common.c b/mk/linux/mojosetup/liblzma/common/common.c index b9e386027..5cc9d696a 100644 --- a/mk/linux/mojosetup/liblzma/common/common.c +++ b/mk/linux/mojosetup/liblzma/common/common.c @@ -3,6 +3,11 @@ /// \file common.h /// \brief Common functions needed in many places in liblzma // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/common.h b/mk/linux/mojosetup/liblzma/common/common.h index e9b14b031..de69c88da 100644 --- a/mk/linux/mojosetup/liblzma/common/common.h +++ b/mk/linux/mojosetup/liblzma/common/common.h @@ -3,6 +3,11 @@ /// \file common.h /// \brief Definitions common to the whole liblzma library // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/easy_decoder_memusage.c b/mk/linux/mojosetup/liblzma/common/easy_decoder_memusage.c index 20bcd5b71..f0a78a838 100644 --- a/mk/linux/mojosetup/liblzma/common/easy_decoder_memusage.c +++ b/mk/linux/mojosetup/liblzma/common/easy_decoder_memusage.c @@ -3,6 +3,11 @@ /// \file easy_decoder_memusage.c /// \brief Decoder memory usage calculation to match easy encoder presets // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/easy_preset.c b/mk/linux/mojosetup/liblzma/common/easy_preset.c index 2f9859860..94bb4e109 100644 --- a/mk/linux/mojosetup/liblzma/common/easy_preset.c +++ b/mk/linux/mojosetup/liblzma/common/easy_preset.c @@ -3,6 +3,11 @@ /// \file easy_preset.c /// \brief Preset handling for easy encoder and decoder // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/easy_preset.h b/mk/linux/mojosetup/liblzma/common/easy_preset.h index 382ade894..e40e0158d 100644 --- a/mk/linux/mojosetup/liblzma/common/easy_preset.h +++ b/mk/linux/mojosetup/liblzma/common/easy_preset.h @@ -3,6 +3,11 @@ /// \file easy_preset.h /// \brief Preset handling for easy encoder and decoder // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/filter_buffer_decoder.c b/mk/linux/mojosetup/liblzma/common/filter_buffer_decoder.c index 2d35ef8e0..7eef9a766 100644 --- a/mk/linux/mojosetup/liblzma/common/filter_buffer_decoder.c +++ b/mk/linux/mojosetup/liblzma/common/filter_buffer_decoder.c @@ -3,6 +3,11 @@ /// \file filter_buffer_decoder.c /// \brief Single-call raw decoding // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/filter_common.c b/mk/linux/mojosetup/liblzma/common/filter_common.c index 9c7d796ee..d4d2e1708 100644 --- a/mk/linux/mojosetup/liblzma/common/filter_common.c +++ b/mk/linux/mojosetup/liblzma/common/filter_common.c @@ -3,6 +3,11 @@ /// \file filter_common.c /// \brief Filter-specific stuff common for both encoder and decoder // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/filter_common.h b/mk/linux/mojosetup/liblzma/common/filter_common.h index cd61fc072..85eb5d680 100644 --- a/mk/linux/mojosetup/liblzma/common/filter_common.h +++ b/mk/linux/mojosetup/liblzma/common/filter_common.h @@ -3,6 +3,11 @@ /// \file filter_common.c /// \brief Filter-specific stuff common for both encoder and decoder // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/filter_decoder.c b/mk/linux/mojosetup/liblzma/common/filter_decoder.c index c520add00..d2a6c0d00 100644 --- a/mk/linux/mojosetup/liblzma/common/filter_decoder.c +++ b/mk/linux/mojosetup/liblzma/common/filter_decoder.c @@ -3,6 +3,11 @@ /// \file filter_decoder.c /// \brief Filter ID mapping to filter-specific functions // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/filter_decoder.h b/mk/linux/mojosetup/liblzma/common/filter_decoder.h index d5c68bdd4..bf1cc756b 100644 --- a/mk/linux/mojosetup/liblzma/common/filter_decoder.h +++ b/mk/linux/mojosetup/liblzma/common/filter_decoder.h @@ -3,6 +3,11 @@ /// \file filter_decoder.c /// \brief Filter ID mapping to filter-specific functions // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/filter_flags_decoder.c b/mk/linux/mojosetup/liblzma/common/filter_flags_decoder.c index caae10ce7..9293194a2 100644 --- a/mk/linux/mojosetup/liblzma/common/filter_flags_decoder.c +++ b/mk/linux/mojosetup/liblzma/common/filter_flags_decoder.c @@ -3,6 +3,11 @@ /// \file filter_flags_decoder.c /// \brief Decodes a Filter Flags field // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/index.c b/mk/linux/mojosetup/liblzma/common/index.c index ddb9d3643..a6acf3c04 100644 --- a/mk/linux/mojosetup/liblzma/common/index.c +++ b/mk/linux/mojosetup/liblzma/common/index.c @@ -3,6 +3,11 @@ /// \file index.c /// \brief Handling of .xz Indexes and some other Stream information // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/index.h b/mk/linux/mojosetup/liblzma/common/index.h index 64e97247d..6194dd15c 100644 --- a/mk/linux/mojosetup/liblzma/common/index.h +++ b/mk/linux/mojosetup/liblzma/common/index.h @@ -3,6 +3,11 @@ /// \file index.h /// \brief Handling of Index // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/index_decoder.c b/mk/linux/mojosetup/liblzma/common/index_decoder.c index 83c8a3af1..5ccd0e5d4 100644 --- a/mk/linux/mojosetup/liblzma/common/index_decoder.c +++ b/mk/linux/mojosetup/liblzma/common/index_decoder.c @@ -3,6 +3,11 @@ /// \file index_decoder.c /// \brief Decodes the Index field // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/index_hash.c b/mk/linux/mojosetup/liblzma/common/index_hash.c index e3e9386ae..1a4c6e736 100644 --- a/mk/linux/mojosetup/liblzma/common/index_hash.c +++ b/mk/linux/mojosetup/liblzma/common/index_hash.c @@ -3,6 +3,11 @@ /// \file index_hash.c /// \brief Validates Index by using a hash function // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/mythread.h b/mk/linux/mojosetup/liblzma/common/mythread.h index 476c2fc9e..14c43e065 100644 --- a/mk/linux/mojosetup/liblzma/common/mythread.h +++ b/mk/linux/mojosetup/liblzma/common/mythread.h @@ -3,6 +3,11 @@ /// \file mythread.h /// \brief Wrappers for threads // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/stream_decoder.c b/mk/linux/mojosetup/liblzma/common/stream_decoder.c index d8c45ff0c..5a88231d6 100644 --- a/mk/linux/mojosetup/liblzma/common/stream_decoder.c +++ b/mk/linux/mojosetup/liblzma/common/stream_decoder.c @@ -3,6 +3,11 @@ /// \file stream_decoder.c /// \brief Decodes .xz Streams // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/stream_decoder.h b/mk/linux/mojosetup/liblzma/common/stream_decoder.h index e54ac28f4..10f41dec7 100644 --- a/mk/linux/mojosetup/liblzma/common/stream_decoder.h +++ b/mk/linux/mojosetup/liblzma/common/stream_decoder.h @@ -3,6 +3,11 @@ /// \file stream_decoder.h /// \brief Decodes .xz Streams // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/stream_flags_common.c b/mk/linux/mojosetup/liblzma/common/stream_flags_common.c index fbe8eb8ab..3b1947976 100644 --- a/mk/linux/mojosetup/liblzma/common/stream_flags_common.c +++ b/mk/linux/mojosetup/liblzma/common/stream_flags_common.c @@ -3,6 +3,11 @@ /// \file stream_flags_common.c /// \brief Common stuff for Stream flags coders // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/stream_flags_common.h b/mk/linux/mojosetup/liblzma/common/stream_flags_common.h index 9f3122a3b..6ac8c1261 100644 --- a/mk/linux/mojosetup/liblzma/common/stream_flags_common.h +++ b/mk/linux/mojosetup/liblzma/common/stream_flags_common.h @@ -3,6 +3,11 @@ /// \file stream_flags_common.h /// \brief Common stuff for Stream flags coders // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/stream_flags_decoder.c b/mk/linux/mojosetup/liblzma/common/stream_flags_decoder.c index 1bc2f97c5..60d8eeaee 100644 --- a/mk/linux/mojosetup/liblzma/common/stream_flags_decoder.c +++ b/mk/linux/mojosetup/liblzma/common/stream_flags_decoder.c @@ -3,6 +3,11 @@ /// \file stream_flags_decoder.c /// \brief Decodes Stream Header and Stream Footer from .xz files // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/sysdefs.h b/mk/linux/mojosetup/liblzma/common/sysdefs.h index b3fa7dffc..02af1bffc 100644 --- a/mk/linux/mojosetup/liblzma/common/sysdefs.h +++ b/mk/linux/mojosetup/liblzma/common/sysdefs.h @@ -6,6 +6,11 @@ /// This file is used also by the lzma command line tool, that's why this /// file is separate from common.h. // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/tuklib_common.h b/mk/linux/mojosetup/liblzma/common/tuklib_common.h index 31fbab58b..39dc0e1c5 100644 --- a/mk/linux/mojosetup/liblzma/common/tuklib_common.h +++ b/mk/linux/mojosetup/liblzma/common/tuklib_common.h @@ -3,6 +3,11 @@ /// \file tuklib_common.h /// \brief Common definitions for tuklib modules // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/tuklib_config.h b/mk/linux/mojosetup/liblzma/common/tuklib_config.h index 549cb24d7..9a010fa31 100644 --- a/mk/linux/mojosetup/liblzma/common/tuklib_config.h +++ b/mk/linux/mojosetup/liblzma/common/tuklib_config.h @@ -5,3 +5,8 @@ # include # include #endif + +// +// Copyright 2012 Lasse Collin and Joachim Henke +// Public Domain +// diff --git a/mk/linux/mojosetup/liblzma/common/tuklib_integer.h b/mk/linux/mojosetup/liblzma/common/tuklib_integer.h index e6daa772d..07d06a116 100644 --- a/mk/linux/mojosetup/liblzma/common/tuklib_integer.h +++ b/mk/linux/mojosetup/liblzma/common/tuklib_integer.h @@ -30,6 +30,11 @@ /// The above bit scan operations return 0-31. If num is zero, /// the result is undefined. // +// +// Copyright 2012 Lasse Collin and Joachim Henke +// Public Domain +// + // Authors: Lasse Collin // Joachim Henke // diff --git a/mk/linux/mojosetup/liblzma/common/vli_decoder.c b/mk/linux/mojosetup/liblzma/common/vli_decoder.c index c181828bf..b6c4e5184 100644 --- a/mk/linux/mojosetup/liblzma/common/vli_decoder.c +++ b/mk/linux/mojosetup/liblzma/common/vli_decoder.c @@ -3,6 +3,10 @@ /// \file vli_decoder.c /// \brief Decodes variable-length integers // +// +// Copyright 2012 Lasse Collin +// Public Domain +// // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/common/vli_size.c b/mk/linux/mojosetup/liblzma/common/vli_size.c index ec1b4fa48..9326d96df 100644 --- a/mk/linux/mojosetup/liblzma/common/vli_size.c +++ b/mk/linux/mojosetup/liblzma/common/vli_size.c @@ -3,6 +3,9 @@ /// \file vli_size.c /// \brief Calculates the encoded size of a variable-length integer // +// Copyright 2012 Lasse Collin +// Public Domain +// // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/delta/delta_common.c b/mk/linux/mojosetup/liblzma/delta/delta_common.c index 930ad2151..c189af62e 100644 --- a/mk/linux/mojosetup/liblzma/delta/delta_common.c +++ b/mk/linux/mojosetup/liblzma/delta/delta_common.c @@ -3,6 +3,11 @@ /// \file delta_common.c /// \brief Common stuff for Delta encoder and decoder // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/delta/delta_common.h b/mk/linux/mojosetup/liblzma/delta/delta_common.h index 7e7e1baaf..23f029a16 100644 --- a/mk/linux/mojosetup/liblzma/delta/delta_common.h +++ b/mk/linux/mojosetup/liblzma/delta/delta_common.h @@ -3,6 +3,11 @@ /// \file delta_common.h /// \brief Common stuff for Delta encoder and decoder // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/delta/delta_decoder.c b/mk/linux/mojosetup/liblzma/delta/delta_decoder.c index 95b3dbc8e..b7aa9064c 100644 --- a/mk/linux/mojosetup/liblzma/delta/delta_decoder.c +++ b/mk/linux/mojosetup/liblzma/delta/delta_decoder.c @@ -3,6 +3,11 @@ /// \file delta_decoder.c /// \brief Delta filter decoder // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/delta/delta_decoder.h b/mk/linux/mojosetup/liblzma/delta/delta_decoder.h index ae89acc59..d234700ce 100644 --- a/mk/linux/mojosetup/liblzma/delta/delta_decoder.h +++ b/mk/linux/mojosetup/liblzma/delta/delta_decoder.h @@ -3,6 +3,11 @@ /// \file delta_decoder.h /// \brief Delta filter decoder // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/delta/delta_private.h b/mk/linux/mojosetup/liblzma/delta/delta_private.h index 62b7fed86..0e2105012 100644 --- a/mk/linux/mojosetup/liblzma/delta/delta_private.h +++ b/mk/linux/mojosetup/liblzma/delta/delta_private.h @@ -3,6 +3,11 @@ /// \file delta_private.h /// \brief Private common stuff for Delta encoder and decoder // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/lz/lz_decoder.c b/mk/linux/mojosetup/liblzma/lz/lz_decoder.c index d74085cf4..b882d969e 100644 --- a/mk/linux/mojosetup/liblzma/lz/lz_decoder.c +++ b/mk/linux/mojosetup/liblzma/lz/lz_decoder.c @@ -3,6 +3,11 @@ /// \file lz_decoder.c /// \brief LZ out window /// +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/lz/lz_decoder.h b/mk/linux/mojosetup/liblzma/lz/lz_decoder.h index 7266e8031..f132e9c54 100644 --- a/mk/linux/mojosetup/liblzma/lz/lz_decoder.h +++ b/mk/linux/mojosetup/liblzma/lz/lz_decoder.h @@ -3,6 +3,11 @@ /// \file lz_decoder.h /// \brief LZ out window /// +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/lzma/lzma2_decoder.c b/mk/linux/mojosetup/liblzma/lzma/lzma2_decoder.c index 3e42575d5..68159c206 100644 --- a/mk/linux/mojosetup/liblzma/lzma/lzma2_decoder.c +++ b/mk/linux/mojosetup/liblzma/lzma/lzma2_decoder.c @@ -2,7 +2,11 @@ // /// \file lzma2_decoder.c /// \brief LZMA2 decoder -/// +// +// Copyright 2012 Igor Pavlov and Lasse Collin +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/lzma/lzma2_decoder.h b/mk/linux/mojosetup/liblzma/lzma/lzma2_decoder.h index fac4ac487..da5e544f7 100644 --- a/mk/linux/mojosetup/liblzma/lzma/lzma2_decoder.h +++ b/mk/linux/mojosetup/liblzma/lzma/lzma2_decoder.h @@ -2,7 +2,10 @@ // /// \file lzma2_decoder.h /// \brief LZMA2 decoder -/// +// +// Copyright 2012 Igor Pavlov and Lasse Collin +// Public Domain +// // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/lzma/lzma_common.h b/mk/linux/mojosetup/liblzma/lzma/lzma_common.h index b4ba04315..2f286634a 100644 --- a/mk/linux/mojosetup/liblzma/lzma/lzma_common.h +++ b/mk/linux/mojosetup/liblzma/lzma/lzma_common.h @@ -3,6 +3,10 @@ /// \file lzma_common.h /// \brief Private definitions common to LZMA encoder and decoder /// +// +// Copyright 2012 Igor Pavlov and Lasse Collin +// Public Domain +// // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/lzma/lzma_decoder.c b/mk/linux/mojosetup/liblzma/lzma/lzma_decoder.c index 1bf1e7686..0604ef629 100644 --- a/mk/linux/mojosetup/liblzma/lzma/lzma_decoder.c +++ b/mk/linux/mojosetup/liblzma/lzma/lzma_decoder.c @@ -3,6 +3,10 @@ /// \file lzma_decoder.c /// \brief LZMA decoder /// +// +// Copyright 2012 Igor Pavlov and Lasse Collin +// Public Domain +// // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/lzma/lzma_decoder.h b/mk/linux/mojosetup/liblzma/lzma/lzma_decoder.h index a463a76fc..de0a989fc 100644 --- a/mk/linux/mojosetup/liblzma/lzma/lzma_decoder.h +++ b/mk/linux/mojosetup/liblzma/lzma/lzma_decoder.h @@ -3,6 +3,10 @@ /// \file lzma_decoder.h /// \brief LZMA decoder API /// +// +// Copyright 2012 Igor Pavlov and Lasse Collin +// Public Domain +// // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/lzma/lzma_encoder_presets.c b/mk/linux/mojosetup/liblzma/lzma/lzma_encoder_presets.c index 21e427a8d..5c629780c 100644 --- a/mk/linux/mojosetup/liblzma/lzma/lzma_encoder_presets.c +++ b/mk/linux/mojosetup/liblzma/lzma/lzma_encoder_presets.c @@ -3,6 +3,10 @@ /// \file lzma_encoder_presets.c /// \brief Encoder presets // +// +// Copyright 2012 Lasse Collin +// Public Domain +// // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/rangecoder/range_common.h b/mk/linux/mojosetup/liblzma/rangecoder/range_common.h index 7c12ab0b3..d57908852 100644 --- a/mk/linux/mojosetup/liblzma/rangecoder/range_common.h +++ b/mk/linux/mojosetup/liblzma/rangecoder/range_common.h @@ -3,6 +3,11 @@ /// \file range_common.h /// \brief Common things for range encoder and decoder /// +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/rangecoder/range_decoder.h b/mk/linux/mojosetup/liblzma/rangecoder/range_decoder.h index fb96180fb..60f7ad92c 100644 --- a/mk/linux/mojosetup/liblzma/rangecoder/range_decoder.h +++ b/mk/linux/mojosetup/liblzma/rangecoder/range_decoder.h @@ -3,6 +3,11 @@ /// \file range_decoder.h /// \brief Range Decoder /// +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/rangecoder/range_encoder.h b/mk/linux/mojosetup/liblzma/rangecoder/range_encoder.h index 512417674..8d485cb86 100644 --- a/mk/linux/mojosetup/liblzma/rangecoder/range_encoder.h +++ b/mk/linux/mojosetup/liblzma/rangecoder/range_encoder.h @@ -3,6 +3,11 @@ /// \file range_encoder.h /// \brief Range Encoder /// +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/simple/arm.c b/mk/linux/mojosetup/liblzma/simple/arm.c index a84702ac6..85d379ddb 100644 --- a/mk/linux/mojosetup/liblzma/simple/arm.c +++ b/mk/linux/mojosetup/liblzma/simple/arm.c @@ -3,6 +3,11 @@ /// \file arm.c /// \brief Filter for ARM binaries /// +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/simple/armthumb.c b/mk/linux/mojosetup/liblzma/simple/armthumb.c index 4b49175fe..987f8e63e 100644 --- a/mk/linux/mojosetup/liblzma/simple/armthumb.c +++ b/mk/linux/mojosetup/liblzma/simple/armthumb.c @@ -3,6 +3,11 @@ /// \file armthumb.c /// \brief Filter for ARM-Thumb binaries /// +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/simple/ia64.c b/mk/linux/mojosetup/liblzma/simple/ia64.c index ad9cb9fcd..15d31bb8e 100644 --- a/mk/linux/mojosetup/liblzma/simple/ia64.c +++ b/mk/linux/mojosetup/liblzma/simple/ia64.c @@ -3,6 +3,11 @@ /// \file ia64.c /// \brief Filter for IA64 (Itanium) binaries /// +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/simple/powerpc.c b/mk/linux/mojosetup/liblzma/simple/powerpc.c index 6f8351176..c313f4de4 100644 --- a/mk/linux/mojosetup/liblzma/simple/powerpc.c +++ b/mk/linux/mojosetup/liblzma/simple/powerpc.c @@ -3,6 +3,11 @@ /// \file powerpc.c /// \brief Filter for PowerPC (big endian) binaries /// +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/simple/simple_coder.c b/mk/linux/mojosetup/liblzma/simple/simple_coder.c index 37de7fa1a..54bf22526 100644 --- a/mk/linux/mojosetup/liblzma/simple/simple_coder.c +++ b/mk/linux/mojosetup/liblzma/simple/simple_coder.c @@ -6,6 +6,11 @@ /// Simple filters don't change the size of the data i.e. number of bytes /// in equals the number of bytes out. // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/simple/simple_coder.h b/mk/linux/mojosetup/liblzma/simple/simple_coder.h index 0952fad33..0217f4b61 100644 --- a/mk/linux/mojosetup/liblzma/simple/simple_coder.h +++ b/mk/linux/mojosetup/liblzma/simple/simple_coder.h @@ -3,6 +3,11 @@ /// \file simple_coder.h /// \brief Wrapper for simple filters // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/simple/simple_decoder.c b/mk/linux/mojosetup/liblzma/simple/simple_decoder.c index 0beccd32a..09a807a15 100644 --- a/mk/linux/mojosetup/liblzma/simple/simple_decoder.c +++ b/mk/linux/mojosetup/liblzma/simple/simple_decoder.c @@ -3,6 +3,11 @@ /// \file simple_decoder.c /// \brief Properties decoder for simple filters // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/simple/simple_decoder.h b/mk/linux/mojosetup/liblzma/simple/simple_decoder.h index b8bf590f7..38598e084 100644 --- a/mk/linux/mojosetup/liblzma/simple/simple_decoder.h +++ b/mk/linux/mojosetup/liblzma/simple/simple_decoder.h @@ -3,6 +3,11 @@ /// \file simple_decoder.h /// \brief Properties decoder for simple filters // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/simple/simple_private.h b/mk/linux/mojosetup/liblzma/simple/simple_private.h index a69f82785..f31709297 100644 --- a/mk/linux/mojosetup/liblzma/simple/simple_private.h +++ b/mk/linux/mojosetup/liblzma/simple/simple_private.h @@ -3,6 +3,11 @@ /// \file simple_private.h /// \brief Private definitions for so called simple filters // +// +// Copyright 2012 Lasse Collin +// Public Domain +// + // Author: Lasse Collin // // This file has been put into the public domain. diff --git a/mk/linux/mojosetup/liblzma/simple/sparc.c b/mk/linux/mojosetup/liblzma/simple/sparc.c index 8270d6ab1..3a087635a 100644 --- a/mk/linux/mojosetup/liblzma/simple/sparc.c +++ b/mk/linux/mojosetup/liblzma/simple/sparc.c @@ -3,6 +3,11 @@ /// \file sparc.c /// \brief Filter for SPARC binaries /// +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/liblzma/simple/x86.c b/mk/linux/mojosetup/liblzma/simple/x86.c index 7f0767861..f85f3e608 100644 --- a/mk/linux/mojosetup/liblzma/simple/x86.c +++ b/mk/linux/mojosetup/liblzma/simple/x86.c @@ -3,6 +3,11 @@ /// \file x86.c /// \brief Filter for x86 binaries (BCJ filter) /// +// +// Copyright 2012 Lasse Collin and Igor Pavlov +// Public Domain +// + // Authors: Igor Pavlov // Lasse Collin // diff --git a/mk/linux/mojosetup/lua/etc/all.c b/mk/linux/mojosetup/lua/etc/all.c index dab68fac5..023ef1ba4 100644 --- a/mk/linux/mojosetup/lua/etc/all.c +++ b/mk/linux/mojosetup/lua/etc/all.c @@ -1,5 +1,28 @@ /* * all.c -- Lua core, libraries and interpreter in a single file +* + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + */ #define luaall_c diff --git a/mk/linux/mojosetup/lua/etc/lua.hpp b/mk/linux/mojosetup/lua/etc/lua.hpp index ec417f594..ebe006994 100644 --- a/mk/linux/mojosetup/lua/etc/lua.hpp +++ b/mk/linux/mojosetup/lua/etc/lua.hpp @@ -1,6 +1,29 @@ // lua.hpp // Lua header files for C++ // <> not supplied automatically because Lua also compiles as C++ +/* + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon +*/ extern "C" { #include "lua.h" diff --git a/mk/linux/mojosetup/lua/etc/min.c b/mk/linux/mojosetup/lua/etc/min.c index 6a85a4d10..8a04e79bd 100644 --- a/mk/linux/mojosetup/lua/etc/min.c +++ b/mk/linux/mojosetup/lua/etc/min.c @@ -2,6 +2,29 @@ * min.c -- a minimal Lua interpreter * loads stdin only with minimal error handling. * no interaction, and no standard library, only a "print" function. +* + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon +* */ #include diff --git a/mk/linux/mojosetup/lua/etc/noparser.c b/mk/linux/mojosetup/lua/etc/noparser.c index 13ba54623..d746ec517 100644 --- a/mk/linux/mojosetup/lua/etc/noparser.c +++ b/mk/linux/mojosetup/lua/etc/noparser.c @@ -8,6 +8,28 @@ * its object file before the Lua libraries. The linker should then not load * the parsing modules. To try it, do "make luab". * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * If you also want to avoid the dump module (ldump.o), define NODUMP. * #define NODUMP */ diff --git a/mk/linux/mojosetup/lua/src/lapi.c b/mk/linux/mojosetup/lua/src/lapi.c index 1854fe615..8439379d9 100644 --- a/mk/linux/mojosetup/lua/src/lapi.c +++ b/mk/linux/mojosetup/lua/src/lapi.c @@ -3,6 +3,28 @@ ** Lua API ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lapi.h b/mk/linux/mojosetup/lua/src/lapi.h index 0909a3911..2ba091461 100644 --- a/mk/linux/mojosetup/lua/src/lapi.h +++ b/mk/linux/mojosetup/lua/src/lapi.h @@ -3,6 +3,28 @@ ** Auxiliary functions from Lua API ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lapi_h #define lapi_h diff --git a/mk/linux/mojosetup/lua/src/lauxlib.c b/mk/linux/mojosetup/lua/src/lauxlib.c index 36ae7e629..b0734293c 100644 --- a/mk/linux/mojosetup/lua/src/lauxlib.c +++ b/mk/linux/mojosetup/lua/src/lauxlib.c @@ -3,6 +3,28 @@ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lauxlib.h b/mk/linux/mojosetup/lua/src/lauxlib.h index ac4d15fbb..31de97d36 100644 --- a/mk/linux/mojosetup/lua/src/lauxlib.h +++ b/mk/linux/mojosetup/lua/src/lauxlib.h @@ -3,6 +3,28 @@ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lauxlib_h diff --git a/mk/linux/mojosetup/lua/src/lbaselib.c b/mk/linux/mojosetup/lua/src/lbaselib.c index dbfcb02cf..15cacbbcc 100644 --- a/mk/linux/mojosetup/lua/src/lbaselib.c +++ b/mk/linux/mojosetup/lua/src/lbaselib.c @@ -3,6 +3,28 @@ ** Basic library ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ diff --git a/mk/linux/mojosetup/lua/src/lbitlib.c b/mk/linux/mojosetup/lua/src/lbitlib.c index 7533b85c5..1c5c8d700 100644 --- a/mk/linux/mojosetup/lua/src/lbitlib.c +++ b/mk/linux/mojosetup/lua/src/lbitlib.c @@ -3,6 +3,28 @@ ** Standard library for bitwise operations ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #define lbitlib_c #define LUA_LIB diff --git a/mk/linux/mojosetup/lua/src/lcode.c b/mk/linux/mojosetup/lua/src/lcode.c index 614e452f9..ffec95624 100644 --- a/mk/linux/mojosetup/lua/src/lcode.c +++ b/mk/linux/mojosetup/lua/src/lcode.c @@ -3,6 +3,28 @@ ** Code generator for Lua ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lcode.h b/mk/linux/mojosetup/lua/src/lcode.h index 5a1fa9fea..7989b6440 100644 --- a/mk/linux/mojosetup/lua/src/lcode.h +++ b/mk/linux/mojosetup/lua/src/lcode.h @@ -3,6 +3,28 @@ ** Code generator for Lua ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lcode_h #define lcode_h diff --git a/mk/linux/mojosetup/lua/src/lcorolib.c b/mk/linux/mojosetup/lua/src/lcorolib.c index c7932d90f..a8a3c1f06 100644 --- a/mk/linux/mojosetup/lua/src/lcorolib.c +++ b/mk/linux/mojosetup/lua/src/lcorolib.c @@ -3,6 +3,28 @@ ** Coroutine Library ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lctype.c b/mk/linux/mojosetup/lua/src/lctype.c index 55e433a5d..1e339a2c9 100644 --- a/mk/linux/mojosetup/lua/src/lctype.c +++ b/mk/linux/mojosetup/lua/src/lctype.c @@ -3,6 +3,28 @@ ** 'ctype' functions for Lua ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #define lctype_c #define LUA_CORE diff --git a/mk/linux/mojosetup/lua/src/lctype.h b/mk/linux/mojosetup/lua/src/lctype.h index 99c7d1223..442c64d6b 100644 --- a/mk/linux/mojosetup/lua/src/lctype.h +++ b/mk/linux/mojosetup/lua/src/lctype.h @@ -3,6 +3,28 @@ ** 'ctype' functions for Lua ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lctype_h #define lctype_h diff --git a/mk/linux/mojosetup/lua/src/ldblib.c b/mk/linux/mojosetup/lua/src/ldblib.c index c02269457..512fb8a12 100644 --- a/mk/linux/mojosetup/lua/src/ldblib.c +++ b/mk/linux/mojosetup/lua/src/ldblib.c @@ -3,6 +3,28 @@ ** Interface from Lua to its debug API ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/ldebug.c b/mk/linux/mojosetup/lua/src/ldebug.c index 43f8f046f..7c1e89207 100644 --- a/mk/linux/mojosetup/lua/src/ldebug.c +++ b/mk/linux/mojosetup/lua/src/ldebug.c @@ -3,6 +3,28 @@ ** Debug Interface ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/ldebug.h b/mk/linux/mojosetup/lua/src/ldebug.h index fe39556b0..9d7574a5b 100644 --- a/mk/linux/mojosetup/lua/src/ldebug.h +++ b/mk/linux/mojosetup/lua/src/ldebug.h @@ -3,6 +3,28 @@ ** Auxiliary functions from Debug Interface module ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef ldebug_h #define ldebug_h diff --git a/mk/linux/mojosetup/lua/src/ldo.c b/mk/linux/mojosetup/lua/src/ldo.c index d18e33cd4..ce30b9822 100644 --- a/mk/linux/mojosetup/lua/src/ldo.c +++ b/mk/linux/mojosetup/lua/src/ldo.c @@ -3,6 +3,28 @@ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/ldo.h b/mk/linux/mojosetup/lua/src/ldo.h index 27b837d99..23a05bc1a 100644 --- a/mk/linux/mojosetup/lua/src/ldo.h +++ b/mk/linux/mojosetup/lua/src/ldo.h @@ -3,6 +3,28 @@ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef ldo_h #define ldo_h diff --git a/mk/linux/mojosetup/lua/src/ldump.c b/mk/linux/mojosetup/lua/src/ldump.c index d5e6a47cb..b637bf7b3 100644 --- a/mk/linux/mojosetup/lua/src/ldump.c +++ b/mk/linux/mojosetup/lua/src/ldump.c @@ -3,6 +3,28 @@ ** save precompiled Lua chunks ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lfunc.c b/mk/linux/mojosetup/lua/src/lfunc.c index 4fd27fe5e..02e7839fb 100644 --- a/mk/linux/mojosetup/lua/src/lfunc.c +++ b/mk/linux/mojosetup/lua/src/lfunc.c @@ -3,6 +3,28 @@ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lfunc.h b/mk/linux/mojosetup/lua/src/lfunc.h index e236a717c..28d2a5e74 100644 --- a/mk/linux/mojosetup/lua/src/lfunc.h +++ b/mk/linux/mojosetup/lua/src/lfunc.h @@ -3,6 +3,28 @@ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lfunc_h #define lfunc_h diff --git a/mk/linux/mojosetup/lua/src/lgc.c b/mk/linux/mojosetup/lua/src/lgc.c index 06f972a72..801f0f11c 100644 --- a/mk/linux/mojosetup/lua/src/lgc.c +++ b/mk/linux/mojosetup/lua/src/lgc.c @@ -3,6 +3,28 @@ ** Garbage Collector ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lgc.h b/mk/linux/mojosetup/lua/src/lgc.h index bdd5cce6c..1f4d272b6 100644 --- a/mk/linux/mojosetup/lua/src/lgc.h +++ b/mk/linux/mojosetup/lua/src/lgc.h @@ -3,6 +3,28 @@ ** Garbage Collector ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lgc_h #define lgc_h diff --git a/mk/linux/mojosetup/lua/src/linit.c b/mk/linux/mojosetup/lua/src/linit.c index 8d3aa6576..61d8eef9c 100644 --- a/mk/linux/mojosetup/lua/src/linit.c +++ b/mk/linux/mojosetup/lua/src/linit.c @@ -3,6 +3,28 @@ ** Initialization of libraries for lua.c and other clients ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ /* diff --git a/mk/linux/mojosetup/lua/src/liolib.c b/mk/linux/mojosetup/lua/src/liolib.c index 4814aa2c2..6e00ce1cc 100644 --- a/mk/linux/mojosetup/lua/src/liolib.c +++ b/mk/linux/mojosetup/lua/src/liolib.c @@ -3,6 +3,28 @@ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ /* diff --git a/mk/linux/mojosetup/lua/src/llex.c b/mk/linux/mojosetup/lua/src/llex.c index c4d8c65b6..a0248db38 100644 --- a/mk/linux/mojosetup/lua/src/llex.c +++ b/mk/linux/mojosetup/lua/src/llex.c @@ -3,6 +3,28 @@ ** Lexical Analyzer ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/llex.h b/mk/linux/mojosetup/lua/src/llex.h index 9ca8a2994..2e493aced 100644 --- a/mk/linux/mojosetup/lua/src/llex.h +++ b/mk/linux/mojosetup/lua/src/llex.h @@ -3,6 +3,28 @@ ** Lexical Analyzer ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef llex_h #define llex_h diff --git a/mk/linux/mojosetup/lua/src/llimits.h b/mk/linux/mojosetup/lua/src/llimits.h index fc9de1a11..dfd2939b9 100644 --- a/mk/linux/mojosetup/lua/src/llimits.h +++ b/mk/linux/mojosetup/lua/src/llimits.h @@ -3,6 +3,28 @@ ** Limits, basic types, and some other `installation-dependent' definitions ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef llimits_h #define llimits_h diff --git a/mk/linux/mojosetup/lua/src/lmathlib.c b/mk/linux/mojosetup/lua/src/lmathlib.c index c3c605e86..5a3b7b34f 100644 --- a/mk/linux/mojosetup/lua/src/lmathlib.c +++ b/mk/linux/mojosetup/lua/src/lmathlib.c @@ -3,6 +3,28 @@ ** Standard mathematical library ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lmem.c b/mk/linux/mojosetup/lua/src/lmem.c index 3f88496e0..7c386ec7f 100644 --- a/mk/linux/mojosetup/lua/src/lmem.c +++ b/mk/linux/mojosetup/lua/src/lmem.c @@ -3,6 +3,28 @@ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lmem.h b/mk/linux/mojosetup/lua/src/lmem.h index 535dfe07f..b978f08a6 100644 --- a/mk/linux/mojosetup/lua/src/lmem.h +++ b/mk/linux/mojosetup/lua/src/lmem.h @@ -3,6 +3,28 @@ ** Interface to Memory Manager ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lmem_h #define lmem_h diff --git a/mk/linux/mojosetup/lua/src/loadlib.c b/mk/linux/mojosetup/lua/src/loadlib.c index a9959277b..0cc24c576 100644 --- a/mk/linux/mojosetup/lua/src/loadlib.c +++ b/mk/linux/mojosetup/lua/src/loadlib.c @@ -7,6 +7,28 @@ ** that have dlfcn, an implementation for Windows, and a stub for other ** systems. */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ /* diff --git a/mk/linux/mojosetup/lua/src/lobject.c b/mk/linux/mojosetup/lua/src/lobject.c index cf0f75446..f6aa0b6dc 100644 --- a/mk/linux/mojosetup/lua/src/lobject.c +++ b/mk/linux/mojosetup/lua/src/lobject.c @@ -3,6 +3,28 @@ ** Some generic functions over Lua objects ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include #include diff --git a/mk/linux/mojosetup/lua/src/lobject.h b/mk/linux/mojosetup/lua/src/lobject.h index ca75a028c..e61c268b2 100644 --- a/mk/linux/mojosetup/lua/src/lobject.h +++ b/mk/linux/mojosetup/lua/src/lobject.h @@ -3,6 +3,28 @@ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lobject_h diff --git a/mk/linux/mojosetup/lua/src/lopcodes.c b/mk/linux/mojosetup/lua/src/lopcodes.c index ef7369275..046124355 100644 --- a/mk/linux/mojosetup/lua/src/lopcodes.c +++ b/mk/linux/mojosetup/lua/src/lopcodes.c @@ -3,6 +3,28 @@ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #define lopcodes_c diff --git a/mk/linux/mojosetup/lua/src/lopcodes.h b/mk/linux/mojosetup/lua/src/lopcodes.h index 07d2b3f39..ec0b97a48 100644 --- a/mk/linux/mojosetup/lua/src/lopcodes.h +++ b/mk/linux/mojosetup/lua/src/lopcodes.h @@ -3,6 +3,28 @@ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lopcodes_h #define lopcodes_h diff --git a/mk/linux/mojosetup/lua/src/loslib.c b/mk/linux/mojosetup/lua/src/loslib.c index 489755b6f..e545d2c56 100644 --- a/mk/linux/mojosetup/lua/src/loslib.c +++ b/mk/linux/mojosetup/lua/src/loslib.c @@ -3,6 +3,28 @@ ** Standard Operating System library ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lparser.c b/mk/linux/mojosetup/lua/src/lparser.c index b3eb3ca92..739ce5571 100644 --- a/mk/linux/mojosetup/lua/src/lparser.c +++ b/mk/linux/mojosetup/lua/src/lparser.c @@ -3,6 +3,28 @@ ** Lua Parser ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lparser.h b/mk/linux/mojosetup/lua/src/lparser.h index 301167d4f..8d50dc845 100644 --- a/mk/linux/mojosetup/lua/src/lparser.h +++ b/mk/linux/mojosetup/lua/src/lparser.h @@ -3,6 +3,28 @@ ** Lua Parser ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lparser_h #define lparser_h diff --git a/mk/linux/mojosetup/lua/src/lstate.c b/mk/linux/mojosetup/lua/src/lstate.c index 3c00c2855..0cfbd944e 100644 --- a/mk/linux/mojosetup/lua/src/lstate.c +++ b/mk/linux/mojosetup/lua/src/lstate.c @@ -3,6 +3,28 @@ ** Global State ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lstate.h b/mk/linux/mojosetup/lua/src/lstate.h index 29f810ba0..75acf2f5d 100644 --- a/mk/linux/mojosetup/lua/src/lstate.h +++ b/mk/linux/mojosetup/lua/src/lstate.h @@ -3,6 +3,28 @@ ** Global State ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lstate_h #define lstate_h diff --git a/mk/linux/mojosetup/lua/src/lstring.c b/mk/linux/mojosetup/lua/src/lstring.c index 8b959f19d..c35fb186b 100644 --- a/mk/linux/mojosetup/lua/src/lstring.c +++ b/mk/linux/mojosetup/lua/src/lstring.c @@ -3,6 +3,28 @@ ** String table (keeps all strings handled by Lua) ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lstring.h b/mk/linux/mojosetup/lua/src/lstring.h index d312ff3d2..56623b263 100644 --- a/mk/linux/mojosetup/lua/src/lstring.h +++ b/mk/linux/mojosetup/lua/src/lstring.h @@ -3,6 +3,28 @@ ** String table (keep all strings handled by Lua) ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lstring_h #define lstring_h diff --git a/mk/linux/mojosetup/lua/src/lstrlib.c b/mk/linux/mojosetup/lua/src/lstrlib.c index e13098bb6..99856175d 100644 --- a/mk/linux/mojosetup/lua/src/lstrlib.c +++ b/mk/linux/mojosetup/lua/src/lstrlib.c @@ -3,6 +3,28 @@ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/ltable.c b/mk/linux/mojosetup/lua/src/ltable.c index ffa5ecb36..d23d23a19 100644 --- a/mk/linux/mojosetup/lua/src/ltable.c +++ b/mk/linux/mojosetup/lua/src/ltable.c @@ -3,6 +3,28 @@ ** Lua tables (hash) ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ /* diff --git a/mk/linux/mojosetup/lua/src/ltable.h b/mk/linux/mojosetup/lua/src/ltable.h index 2f6f5c2dc..9fb63f277 100644 --- a/mk/linux/mojosetup/lua/src/ltable.h +++ b/mk/linux/mojosetup/lua/src/ltable.h @@ -3,6 +3,28 @@ ** Lua tables (hash) ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef ltable_h #define ltable_h diff --git a/mk/linux/mojosetup/lua/src/ltablib.c b/mk/linux/mojosetup/lua/src/ltablib.c index a52add03d..e85ac9e58 100644 --- a/mk/linux/mojosetup/lua/src/ltablib.c +++ b/mk/linux/mojosetup/lua/src/ltablib.c @@ -3,6 +3,28 @@ ** Library for Table Manipulation ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/ltm.c b/mk/linux/mojosetup/lua/src/ltm.c index e70006dd7..498722182 100644 --- a/mk/linux/mojosetup/lua/src/ltm.c +++ b/mk/linux/mojosetup/lua/src/ltm.c @@ -3,6 +3,28 @@ ** Tag methods ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/ltm.h b/mk/linux/mojosetup/lua/src/ltm.h index 89bdc19a1..d1ded0b51 100644 --- a/mk/linux/mojosetup/lua/src/ltm.h +++ b/mk/linux/mojosetup/lua/src/ltm.h @@ -3,6 +3,28 @@ ** Tag methods ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef ltm_h #define ltm_h diff --git a/mk/linux/mojosetup/lua/src/lua.c b/mk/linux/mojosetup/lua/src/lua.c index 7614c7030..3c7876511 100644 --- a/mk/linux/mojosetup/lua/src/lua.c +++ b/mk/linux/mojosetup/lua/src/lua.c @@ -3,6 +3,28 @@ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lua.h b/mk/linux/mojosetup/lua/src/lua.h index a3a3a70c6..c259e9c3d 100644 --- a/mk/linux/mojosetup/lua/src/lua.h +++ b/mk/linux/mojosetup/lua/src/lua.h @@ -4,6 +4,28 @@ ** Lua.org, PUC-Rio, Brazil (http://www.lua.org) ** See Copyright Notice at the end of this file */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lua_h @@ -412,28 +434,6 @@ struct lua_Debug { /* }====================================================================== */ -/****************************************************************************** -* Copyright (C) 1994-2012 Lua.org, PUC-Rio. -* -* Permission is hereby granted, free of charge, to any person obtaining -* a copy of this software and associated documentation files (the -* "Software"), to deal in the Software without restriction, including -* without limitation the rights to use, copy, modify, merge, publish, -* distribute, sublicense, and/or sell copies of the Software, and to -* permit persons to whom the Software is furnished to do so, subject to -* the following conditions: -* -* The above copyright notice and this permission notice shall be -* included in all copies or substantial portions of the Software. -* -* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -******************************************************************************/ #endif diff --git a/mk/linux/mojosetup/lua/src/lua.hpp b/mk/linux/mojosetup/lua/src/lua.hpp index ec417f594..0a0694248 100644 --- a/mk/linux/mojosetup/lua/src/lua.hpp +++ b/mk/linux/mojosetup/lua/src/lua.hpp @@ -1,6 +1,28 @@ // lua.hpp // Lua header files for C++ // <> not supplied automatically because Lua also compiles as C++ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ extern "C" { #include "lua.h" diff --git a/mk/linux/mojosetup/lua/src/luac.c b/mk/linux/mojosetup/lua/src/luac.c index 5081836d4..d37218ece 100644 --- a/mk/linux/mojosetup/lua/src/luac.c +++ b/mk/linux/mojosetup/lua/src/luac.c @@ -3,6 +3,28 @@ ** Lua compiler (saves bytecodes to files; also list bytecodes) ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include #include diff --git a/mk/linux/mojosetup/lua/src/luaconf.h b/mk/linux/mojosetup/lua/src/luaconf.h index e4335df90..1af4fe564 100644 --- a/mk/linux/mojosetup/lua/src/luaconf.h +++ b/mk/linux/mojosetup/lua/src/luaconf.h @@ -3,6 +3,28 @@ ** Configuration file for Lua ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lconfig_h diff --git a/mk/linux/mojosetup/lua/src/lualib.h b/mk/linux/mojosetup/lua/src/lualib.h index 9fd126bf7..a3ac9f026 100644 --- a/mk/linux/mojosetup/lua/src/lualib.h +++ b/mk/linux/mojosetup/lua/src/lualib.h @@ -3,6 +3,28 @@ ** Lua standard libraries ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lualib_h diff --git a/mk/linux/mojosetup/lua/src/lundump.c b/mk/linux/mojosetup/lua/src/lundump.c index 54de011a4..4e718e4e0 100644 --- a/mk/linux/mojosetup/lua/src/lundump.c +++ b/mk/linux/mojosetup/lua/src/lundump.c @@ -3,6 +3,28 @@ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lundump.h b/mk/linux/mojosetup/lua/src/lundump.h index 2b8accecb..840e9f4c8 100644 --- a/mk/linux/mojosetup/lua/src/lundump.h +++ b/mk/linux/mojosetup/lua/src/lundump.h @@ -3,6 +3,28 @@ ** load precompiled Lua chunks ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lundump_h #define lundump_h diff --git a/mk/linux/mojosetup/lua/src/lvm.c b/mk/linux/mojosetup/lua/src/lvm.c index b77eac26d..93b042210 100644 --- a/mk/linux/mojosetup/lua/src/lvm.c +++ b/mk/linux/mojosetup/lua/src/lvm.c @@ -3,6 +3,28 @@ ** Lua virtual machine ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lvm.h b/mk/linux/mojosetup/lua/src/lvm.h index ec3582240..8759da575 100644 --- a/mk/linux/mojosetup/lua/src/lvm.h +++ b/mk/linux/mojosetup/lua/src/lvm.h @@ -3,6 +3,28 @@ ** Lua virtual machine ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lvm_h #define lvm_h diff --git a/mk/linux/mojosetup/lua/src/lzio.c b/mk/linux/mojosetup/lua/src/lzio.c index 8b77054e0..40f7e0ef5 100644 --- a/mk/linux/mojosetup/lua/src/lzio.c +++ b/mk/linux/mojosetup/lua/src/lzio.c @@ -3,6 +3,28 @@ ** Buffered streams ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include diff --git a/mk/linux/mojosetup/lua/src/lzio.h b/mk/linux/mojosetup/lua/src/lzio.h index 08682301e..783737fa9 100644 --- a/mk/linux/mojosetup/lua/src/lzio.h +++ b/mk/linux/mojosetup/lua/src/lzio.h @@ -3,6 +3,28 @@ ** Buffered streams ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #ifndef lzio_h diff --git a/mk/linux/mojosetup/lua/src/print.c b/mk/linux/mojosetup/lua/src/print.c index e240cfc3c..0a259d5a2 100644 --- a/mk/linux/mojosetup/lua/src/print.c +++ b/mk/linux/mojosetup/lua/src/print.c @@ -3,6 +3,28 @@ ** print bytecodes ** See Copyright Notice in lua.h */ +/****************************************************************************** +* Copyright (C) 1994-2012 Lua.org, PUC-Rio. +* +* Permission is hereby granted, free of charge, to any person obtaining +* a copy of this software and associated documentation files (the +* "Software"), to deal in the Software without restriction, including +* without limitation the rights to use, copy, modify, merge, publish, +* distribute, sublicense, and/or sell copies of the Software, and to +* permit persons to whom the Software is furnished to do so, subject to +* the following conditions: +* +* The above copyright notice and this permission notice shall be +* included in all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +******************************************************************************/ #include #include diff --git a/mk/linux/mojosetup/lua_glue.c b/mk/linux/mojosetup/lua_glue.c index 833257ac3..f93529153 100644 --- a/mk/linux/mojosetup/lua_glue.c +++ b/mk/linux/mojosetup/lua_glue.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #include "universal.h" diff --git a/mk/linux/mojosetup/lua_glue.h b/mk/linux/mojosetup/lua_glue.h index 14465abac..e5fbe7942 100644 --- a/mk/linux/mojosetup/lua_glue.h +++ b/mk/linux/mojosetup/lua_glue.h @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #ifndef _INCL_LUA_GLUE_H_ diff --git a/mk/linux/mojosetup/miniz.c b/mk/linux/mojosetup/miniz.c index 6c94108a6..3a4bcfe3a 100644 --- a/mk/linux/mojosetup/miniz.c +++ b/mk/linux/mojosetup/miniz.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #define MINIZ_INCLUDE_IMPLEMENTATION 1 diff --git a/mk/linux/mojosetup/miniz.h b/mk/linux/mojosetup/miniz.h index 0c7f2455e..7117b1c61 100644 --- a/mk/linux/mojosetup/miniz.h +++ b/mk/linux/mojosetup/miniz.h @@ -1,10 +1,36 @@ /* tinfl.c v1.11 - public domain inflate with zlib header parsing/adler32 checking (inflate-only subset of miniz.c) See "unlicense" statement at the end of this file. - Rich Geldreich , last updated May 20, 2011 + Copyright 2012 Rich Geldreich , last updated May 20, 2011 Implements RFC 1950: http://www.ietf.org/rfc/rfc1950.txt and RFC 1951: http://www.ietf.org/rfc/rfc1951.txt - The entire decompressor coroutine is implemented in tinfl_decompress(). The other functions are optional high-level helpers. + The entire decompressor coroutine is implemented in tinfl_decompress(). The other functions are optional high-level helpers. + + This is free and unencumbered software released into the public domain. + + Anyone is free to copy, modify, publish, use, compile, sell, or + distribute this software, either in source code form or as a compiled + binary, for any purpose, commercial or non-commercial, and by any + means. + + In jurisdictions that recognize copyright laws, the author or authors + of this software dedicate any and all copyright interest in the + software to the public domain. We make this dedication for the benefit + of the public at large and to the detriment of our heirs and + successors. We intend this dedication to be an overt act of + relinquishment in perpetuity of all present and future rights to this + software under copyright law. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + For more information, please refer to */ + #ifndef TINFL_HEADER_INCLUDED #define TINFL_HEADER_INCLUDED @@ -678,29 +704,3 @@ int mz_inflateEnd(mz_streamp pStream) #define Z_VERSION_ERROR MZ_VERSION_ERROR #define MAX_WBITS 15 -/* - This is free and unencumbered software released into the public domain. - - Anyone is free to copy, modify, publish, use, compile, sell, or - distribute this software, either in source code form or as a compiled - binary, for any purpose, commercial or non-commercial, and by any - means. - - In jurisdictions that recognize copyright laws, the author or authors - of this software dedicate any and all copyright interest in the - software to the public domain. We make this dedication for the benefit - of the public at large and to the detriment of our heirs and - successors. We intend this dedication to be an overt act of - relinquishment in perpetuity of all present and future rights to this - software under copyright law. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. - IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR - OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, - ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - OTHER DEALINGS IN THE SOFTWARE. - - For more information, please refer to -*/ diff --git a/mk/linux/mojosetup/misc/find_localizable_strings.sh b/mk/linux/mojosetup/misc/find_localizable_strings.sh deleted file mode 100755 index d07c07e14..000000000 --- a/mk/linux/mojosetup/misc/find_localizable_strings.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh - -grep -n '_("' *.[chm] scripts/*.lua |perl -w -p -e 's/\A.*?_\((".*?")\).*?\Z/$1/;' |sort |uniq |perl -w -p -e 'chomp; $_ = " [$_] = {\n };\n\n";' - diff --git a/mk/linux/mojosetup/misc/launchpad-import.sh b/mk/linux/mojosetup/misc/launchpad-import.sh deleted file mode 100755 index 4bd8c3aca..000000000 --- a/mk/linux/mojosetup/misc/launchpad-import.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash - -set -e -set -x - -cd `hg root` -hg fetch # will only work on a unmodified working directory. -rm -rf launchpad -mkdir $_ -cd $_ -tar -xzf ~/Downloads/launchpad-export.tar.gz -../misc/po2localization.pl *.po mojosetup/mojosetup.pot >../scripts/localization.lua -hg diff ../scripts/localization.lua |less -set +x -echo "enter to commit, ctrl-c to abort." -read -set -x -hg commit -m "Latest translations from launchpad.net ..." ../scripts/localization.lua -cd .. -rm -rf launchpad ~/Downloads/launchpad-export.tar.gz -exit 0 diff --git a/mk/linux/mojosetup/misc/localization2pot.pl b/mk/linux/mojosetup/misc/localization2pot.pl deleted file mode 100755 index ec33a9dc6..000000000 --- a/mk/linux/mojosetup/misc/localization2pot.pl +++ /dev/null @@ -1,110 +0,0 @@ -#!/usr/bin/perl -w - -use warnings; -use strict; -use Encode qw( decode_utf8 ); - -# Fixes unicode dumping to stdio...hopefully you have a utf-8 terminal by now. -binmode(STDIN, ":utf8"); -binmode(STDOUT, ":utf8"); -binmode(STDERR, ":utf8"); - -my $now = `date '+%Y-%m-%d %H:%M:%S%z'`; -chomp($now); - -my $hgver = `hg tip --template 'hg-{rev}:{node|short}' 2>/dev/null`; -$hgver = '???' if ($hgver eq ''); - -my $exportdate = ''; -my $generator = ''; -while () { - chomp; - if (s/\A\-\-\s*(X-Launchpad-Export-Date: .*?)\Z/"$1\\n"/) { - $exportdate = $_; - next; - } - if (s/\A\-\-\s*(X-Generator: .*?)\Z/"$1\\n"/) { - $generator = $_; - next; - } - last if (/MojoSetup.localization = {/); -} - - -print <<__EOF__; -# MojoSetup; a portable, flexible installation application. -# http://icculus.org/mojosetup/ -# -# Please see the file LICENSE.txt in the source's root directory. -# -# This file generated by localization2pot.pl, version $hgver ... -# -# -# NOTE: If you care about Unicode or ASCII chars above 127, this file _MUST_ -# be UTF-8 encoded! If you think you're using a certain high-ascii codepage, -# you're wrong! -# -# Whenever you see a %x sequence, that is replaced with a string at runtime. -# So if you see, "Hello, %0, my name is %1.", then this might become -# "Hello, Alice, my name is Bob." at runtime. If your culture would find -# introducing yourself second to be rude, you might translate this to: -# "My name is %1, hello %0." If you need a literal '%' char, write "%%": -# "Operation is %0%% complete" might give "Operation is 3% complete." -# All strings, from your locale or otherwise, are checked for formatter -# correctness at startup. This is to prevent the installer working fine -# in all reasonable tests, then finding out that one guy in Ghana has a -# crashing installer because his localization forgot to add a %1 somewhere. -# -# Occasionally you might see a "\\n" ... that's a newline character. "\\t" is -# a tab character, and "\\\\" turns into a single "\\" character. -# -# Questions about the intent of a specific string can go to Ryan C. Gordon -# (icculus\@icculus.org). - -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: mojosetup $hgver\\n" -"Report-Msgid-Bugs-To: icculus\@icculus.org\\n" -"POT-Creation-Date: $now\\n" -"PO-Revision-Date: $now\\n" -"Last-Translator: Ryan C. Gordon \\n" -"Language-Team: Ryan C. Gordon \\n" -"MIME-Version: 1.0\\n" -"Content-Type: text/plain; charset=UTF-8\\n" -"Content-Transfer-Encoding: 8bit\\n" -$exportdate -$generator - -__EOF__ - - -my $looking_for_end = 0; - -while () { - chomp; - s/\A\s+//; - s/\s+\Z//; - next if ($_ eq ''); - if (/\A};\Z/) { - last if (not $looking_for_end); - $looking_for_end = 0; - next; - } else { - next if $looking_for_end; - } - - if (s/\A\[(\".*?\")\] = {\Z/msgid $1\nmsgstr ""\n/) { - print("$_\n"); - $looking_for_end = 1; - } elsif (s/\A--\s+(.*?)\Z/#. $1/) { - print("$_\n"); - } else { - die("unhandled string: '$_'\n"); - } -} - -print "# end of localization.pot ...\n\n"; - -# end of localization2pot.pl ... - diff --git a/mk/linux/mojosetup/misc/make_self_extracting.c b/mk/linux/mojosetup/misc/make_self_extracting.c index e942f4461..ca264e54c 100644 --- a/mk/linux/mojosetup/misc/make_self_extracting.c +++ b/mk/linux/mojosetup/misc/make_self_extracting.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #include diff --git a/mk/linux/mojosetup/misc/po2localization.pl b/mk/linux/mojosetup/misc/po2localization.pl deleted file mode 100755 index 7a0bbf479..000000000 --- a/mk/linux/mojosetup/misc/po2localization.pl +++ /dev/null @@ -1,182 +0,0 @@ -#!/usr/bin/perl -w - -use warnings; -use strict; -use Encode qw( decode_utf8 ); - -# Fixes unicode dumping to stdio...hopefully you have a utf-8 terminal by now. -binmode(STDIN, ":utf8"); -binmode(STDOUT, ":utf8"); -binmode(STDERR, ":utf8"); - -my $now = `date '+%Y-%m-%d %H:%M:%S%z'`; -chomp($now); - -my $hgver = `hg tip --template 'hg-{rev}:{node|short}' 2>/dev/null`; -$hgver = '???' if ($hgver eq ''); - -my %languages; -my %comments; -my %msgstrs; -my @strings; -my $saw_template = 0; -my $exportdate = ''; -my $generator = ''; - -foreach (@ARGV) { - my $fname = $_; - my $template = /\.pot\Z/; - - open(POIO, '<', $fname) or die("Failed to open $_: $!\n"); - binmode(POIO, ":utf8"); - - if ($template) { - die("multiple .pot files specified\n") if ($saw_template); - $saw_template = 1; - } - - my $comment = ''; - my $currentlang = ''; - - while () { - chomp; - s/\A\s+//; - s/\s+\Z//; - next if ($_ eq ''); - - if (s/\A\#\.\s*(.*)\Z/$1/) { - if ($template) { - my $txt = $_; - $txt = " $txt" if ($comment ne ''); - $comment .= " -- $txt\n"; - } - next; - } - - next if /\A\#/; - - if (s/msgid\s*\"(.*?)\"\Z/$1/) { - if (($_ eq '') and ($currentlang eq '')) { # initial string. - while () { # Skip most of the metadata. - chomp; - s/\A\s+//; - s/\s+\Z//; - last if ($_ eq ''); - if (/\A\"Language-Team: (.*?) \<(.*?)\@.*?\>\\n"\Z/) { - $currentlang = $2; - if (defined $languages{$currentlang}) { - die("Same language twice: $currentlang\n"); - } elsif ($currentlang eq 'en') { - die("Found an 'en' translation.\n"); - } elsif ($currentlang eq 'en_US') { - die("Found an 'en_US' translation.\n"); - } - $languages{$currentlang} = $1 if (not $template); - } elsif (s/\A\"(X-Launchpad-Export-Date: .*?)\\n\"/$1/) { - $exportdate = $_ if ($template); - } elsif (s/\A"(X-Generator: .*?)\\n\"\Z/$1/) { - $generator = $_ if ($template); - } - } - } elsif ($currentlang eq '') { - die("No current language!\n"); - } else { # new string - my $msgstr = ''; - my $msgid = $_; - while () { # check for multiline msgid strings. - chomp; - s/\A\s+//; - s/\s+\Z//; - if (s/\Amsgstr \"(.*?)\"\Z/$1/) { - $msgstr = $_; - last; - } - if (s/\A\"(.*?)\"\Z/$1/) { - $msgid .= $_; - } else { - die("unexpected line: $_\n"); - } - } - while () { # check for multiline msgstr strings. - chomp; - s/\A\s+//; - s/\s+\Z//; - last if ($_ eq ''); - if (s/\A\"(.*?)\"\Z/$1/) { - $msgstr .= $_; - } else { - die("unexpected line: $_\n"); - } - } - - if ($template) { - push @strings, $msgid; # This is a list, to keep original order. - $comments{$msgid} = $comment; - $comment = ''; - } elsif ($msgstr ne '') { - $msgstrs{$currentlang}{$msgid} = $msgstr; - } - } - } - } - - close(POIO); -} - -die("no template seen\n") if (not $saw_template); - - -print <<__EOF__; --- MojoSetup; a portable, flexible installation application. --- --- Please see the file LICENSE.txt in the source's root directory. --- --- DO NOT EDIT BY HAND. --- This file was generated with po2localization.pl, version $hgver ... --- on $now --- --- Your own installer's localizations go into app_localization.lua instead. --- If you want to add strings to be translated to this file, contact Ryan --- (icculus\@icculus.org). If you want to add or change a translation for --- existing strings, please use our nice web interface here for your work: --- --- https://translations.launchpad.net/mojosetup/ --- --- ...and that work eventually ends up in this file. --- --- $exportdate --- $generator - -MojoSetup.languages = { -__EOF__ - -print " en_US = \"English (United States)\""; - -foreach (sort keys %languages) { - my $k = $_; - my $v = $languages{$k}; - print ",\n $k = \"$v\"" -} -print "\n};\n\nMojoSetup.localization = {"; - -foreach (@strings) { - my $msgid = $_; - print "\n"; - print $comments{$msgid}; - print " [\"$msgid\"] = {\n"; - my $first = 1; - foreach (sort keys %languages) { - my $k = $_; - my $str = $msgstrs{$k}{$msgid}; - next if ((not defined $str) or ($str eq '')); - print ",\n" if (not $first); - print " $k = \"$str\""; - $first = 0; - } - print "\n };\n"; -} - -print "};\n\n-- end of localization.lua ...\n\n"; - -# end of po2localization.pl ... - diff --git a/mk/linux/mojosetup/misc/shrinksh.pl b/mk/linux/mojosetup/misc/shrinksh.pl deleted file mode 100755 index 1f31b7aca..000000000 --- a/mk/linux/mojosetup/misc/shrinksh.pl +++ /dev/null @@ -1,98 +0,0 @@ -#!/usr/bin/perl - -use strict; -use Shell::Parser; - -my $sawnewline = 1; -my $sawwhitespace = 1; -my $funccount = 0; -my $braces = 0; -my $currentfn = undef; -my %funcmap; -my %funcstart; -my %funcend; -my %funcused; -my @output; - -my $parser = new Shell::Parser handlers => { default => \&dumpnode }; -$parser->parse(join '', <>); - -sub dumpnode { - my $self = shift; - my %args = @_; - - my $token = $args{token}; - my $type = $args{type}; - - if (($type eq 'comment') or ($token eq '')) { - return; - } elsif ($token eq "\n") { - return if ($sawnewline); - $sawnewline = 1; - $sawwhitespace = 1; - push @output, "\n"; - return; - } elsif ($token =~ /\A\s+\Z/) { - return if ($sawwhitespace); - $sawwhitespace = 1; - push @output, ' '; - return; - } else { - $sawnewline = 0; - $sawwhitespace = 0; - - # shrink function names down to "fX" - if ($token eq ')') { - my $prev1 = pop @output; - if ((not defined $prev1) or ($prev1 ne '(')) { - push @output, $prev1; - } else { - my $prev2 = pop @output; - if (defined $prev2) { - $funccount = $funccount + 1; - my $mappedfn = "f${funccount}"; - $currentfn = $prev2; - $funcmap{$currentfn} = $mappedfn; - $funcused{$currentfn} = 0; - $funcstart{$currentfn} = scalar(@output); - $prev2 = $mappedfn; - } - push @output, $prev2; - push @output, $prev1; - } - } elsif ($token eq '{') { - $braces++; - } elsif ($token eq '}') { - $braces--; - if (($braces == 0) and (defined $currentfn)) { - $funcend{$currentfn} = scalar(@output) + 1; - $currentfn = undef; - } - } elsif (defined $funcmap{$token}) { - $funcused{$token} = 1; - $token = $funcmap{$token}; - } - - push @output, $token; - } -} - -foreach my $fn (keys(%funcused)) { - #print STDERR "funcused{'" . $fn . "'} == '" . $funcused{$fn} . "';\n"; - #print STDERR "funcstart{'" . $fn . "'} == '" . $funcstart{$fn} . "';\n"; - #print STDERR "funcend{'" . $fn . "'} == '" . $funcend{$fn} . "';\n"; - #print STDERR "\n"; - next if $funcused{$fn}; - my $fnstart = $funcstart{$fn}; - my $fnend = $funcend{$fn}; - my $len = $fnend - $fnstart; - for (my $i = $fnstart; $i <= $fnend; $i++) { - $output[$i] = undef; - } - #print STDERR "Removed unused function $fn ($len tokens)\n"; -} - -foreach (@output) { - print($_) if defined $_; -} - diff --git a/mk/linux/mojosetup/mojosetup.c b/mk/linux/mojosetup/mojosetup.c index 50e453c2d..00d4a3501 100644 --- a/mk/linux/mojosetup/mojosetup.c +++ b/mk/linux/mojosetup/mojosetup.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #include diff --git a/mk/linux/mojosetup/platform.h b/mk/linux/mojosetup/platform.h index 7093bc8c1..fb555907c 100644 --- a/mk/linux/mojosetup/platform.h +++ b/mk/linux/mojosetup/platform.h @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + */ #ifndef _INCL_PLATFORM_H_ diff --git a/mk/linux/mojosetup/platform_beos.cpp b/mk/linux/mojosetup/platform_beos.cpp index 793cf6d53..f8d403b3e 100644 --- a/mk/linux/mojosetup/platform_beos.cpp +++ b/mk/linux/mojosetup/platform_beos.cpp @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ // You also need to compile unix.c, but this lets us add some things that diff --git a/mk/linux/mojosetup/platform_unix.c b/mk/linux/mojosetup/platform_unix.c index 230fb36ff..0f7cc97f6 100644 --- a/mk/linux/mojosetup/platform_unix.c +++ b/mk/linux/mojosetup/platform_unix.c @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #if PLATFORM_UNIX diff --git a/mk/linux/mojosetup/stb_image.c b/mk/linux/mojosetup/stb_image.c index 067eaac29..403e1ef36 100644 --- a/mk/linux/mojosetup/stb_image.c +++ b/mk/linux/mojosetup/stb_image.c @@ -1,6 +1,12 @@ // (Changes to this code are wrapped in __MOJOSETUP__ sections. --ryan.) // (Changes to JUST THIS FILE are also public domain. The rest of MojoSetup // falls under different licensing terms. --ryan.) +/* +Copyright (c) 2006-2010 Ryan C. Gordon and others. + + Public Domain. + Ryan C. Gordon +/* #if !__MOJOSETUP__ #error This file is probably miscompiled. #endif diff --git a/mk/linux/mojosetup/universal.h b/mk/linux/mojosetup/universal.h index beb9db101..c85d101d9 100644 --- a/mk/linux/mojosetup/universal.h +++ b/mk/linux/mojosetup/universal.h @@ -4,6 +4,29 @@ * Please see the file LICENSE.txt in the source's root directory. * * This file written by Ryan C. Gordon. + * + Copyright (c) 2006-2010 Ryan C. Gordon and others. + + This software is provided 'as-is', without any express or implied warranty. + In no event will the authors be held liable for any damages arising from + the use of this software. + + Permission is granted to anyone to use this software for any purpose, + including commercial applications, and to alter it and redistribute it + freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not + claim that you wrote the original software. If you use this software in a + product, an acknowledgment in the product documentation would be + appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be + misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. + + Ryan C. Gordon + * */ #ifndef _INCL_UNIVERSAL_H_ diff --git a/mk/linux/mojosetup/zlib/crc32.h b/mk/linux/mojosetup/zlib/crc32.h deleted file mode 100644 index 8053b6117..000000000 --- a/mk/linux/mojosetup/zlib/crc32.h +++ /dev/null @@ -1,441 +0,0 @@ -/* crc32.h -- tables for rapid CRC calculation - * Generated automatically by crc32.c - */ - -local const unsigned long FAR crc_table[TBLS][256] = -{ - { - 0x00000000UL, 0x77073096UL, 0xee0e612cUL, 0x990951baUL, 0x076dc419UL, - 0x706af48fUL, 0xe963a535UL, 0x9e6495a3UL, 0x0edb8832UL, 0x79dcb8a4UL, - 0xe0d5e91eUL, 0x97d2d988UL, 0x09b64c2bUL, 0x7eb17cbdUL, 0xe7b82d07UL, - 0x90bf1d91UL, 0x1db71064UL, 0x6ab020f2UL, 0xf3b97148UL, 0x84be41deUL, - 0x1adad47dUL, 0x6ddde4ebUL, 0xf4d4b551UL, 0x83d385c7UL, 0x136c9856UL, - 0x646ba8c0UL, 0xfd62f97aUL, 0x8a65c9ecUL, 0x14015c4fUL, 0x63066cd9UL, - 0xfa0f3d63UL, 0x8d080df5UL, 0x3b6e20c8UL, 0x4c69105eUL, 0xd56041e4UL, - 0xa2677172UL, 0x3c03e4d1UL, 0x4b04d447UL, 0xd20d85fdUL, 0xa50ab56bUL, - 0x35b5a8faUL, 0x42b2986cUL, 0xdbbbc9d6UL, 0xacbcf940UL, 0x32d86ce3UL, - 0x45df5c75UL, 0xdcd60dcfUL, 0xabd13d59UL, 0x26d930acUL, 0x51de003aUL, - 0xc8d75180UL, 0xbfd06116UL, 0x21b4f4b5UL, 0x56b3c423UL, 0xcfba9599UL, - 0xb8bda50fUL, 0x2802b89eUL, 0x5f058808UL, 0xc60cd9b2UL, 0xb10be924UL, - 0x2f6f7c87UL, 0x58684c11UL, 0xc1611dabUL, 0xb6662d3dUL, 0x76dc4190UL, - 0x01db7106UL, 0x98d220bcUL, 0xefd5102aUL, 0x71b18589UL, 0x06b6b51fUL, - 0x9fbfe4a5UL, 0xe8b8d433UL, 0x7807c9a2UL, 0x0f00f934UL, 0x9609a88eUL, - 0xe10e9818UL, 0x7f6a0dbbUL, 0x086d3d2dUL, 0x91646c97UL, 0xe6635c01UL, - 0x6b6b51f4UL, 0x1c6c6162UL, 0x856530d8UL, 0xf262004eUL, 0x6c0695edUL, - 0x1b01a57bUL, 0x8208f4c1UL, 0xf50fc457UL, 0x65b0d9c6UL, 0x12b7e950UL, - 0x8bbeb8eaUL, 0xfcb9887cUL, 0x62dd1ddfUL, 0x15da2d49UL, 0x8cd37cf3UL, - 0xfbd44c65UL, 0x4db26158UL, 0x3ab551ceUL, 0xa3bc0074UL, 0xd4bb30e2UL, - 0x4adfa541UL, 0x3dd895d7UL, 0xa4d1c46dUL, 0xd3d6f4fbUL, 0x4369e96aUL, - 0x346ed9fcUL, 0xad678846UL, 0xda60b8d0UL, 0x44042d73UL, 0x33031de5UL, - 0xaa0a4c5fUL, 0xdd0d7cc9UL, 0x5005713cUL, 0x270241aaUL, 0xbe0b1010UL, - 0xc90c2086UL, 0x5768b525UL, 0x206f85b3UL, 0xb966d409UL, 0xce61e49fUL, - 0x5edef90eUL, 0x29d9c998UL, 0xb0d09822UL, 0xc7d7a8b4UL, 0x59b33d17UL, - 0x2eb40d81UL, 0xb7bd5c3bUL, 0xc0ba6cadUL, 0xedb88320UL, 0x9abfb3b6UL, - 0x03b6e20cUL, 0x74b1d29aUL, 0xead54739UL, 0x9dd277afUL, 0x04db2615UL, - 0x73dc1683UL, 0xe3630b12UL, 0x94643b84UL, 0x0d6d6a3eUL, 0x7a6a5aa8UL, - 0xe40ecf0bUL, 0x9309ff9dUL, 0x0a00ae27UL, 0x7d079eb1UL, 0xf00f9344UL, - 0x8708a3d2UL, 0x1e01f268UL, 0x6906c2feUL, 0xf762575dUL, 0x806567cbUL, - 0x196c3671UL, 0x6e6b06e7UL, 0xfed41b76UL, 0x89d32be0UL, 0x10da7a5aUL, - 0x67dd4accUL, 0xf9b9df6fUL, 0x8ebeeff9UL, 0x17b7be43UL, 0x60b08ed5UL, - 0xd6d6a3e8UL, 0xa1d1937eUL, 0x38d8c2c4UL, 0x4fdff252UL, 0xd1bb67f1UL, - 0xa6bc5767UL, 0x3fb506ddUL, 0x48b2364bUL, 0xd80d2bdaUL, 0xaf0a1b4cUL, - 0x36034af6UL, 0x41047a60UL, 0xdf60efc3UL, 0xa867df55UL, 0x316e8eefUL, - 0x4669be79UL, 0xcb61b38cUL, 0xbc66831aUL, 0x256fd2a0UL, 0x5268e236UL, - 0xcc0c7795UL, 0xbb0b4703UL, 0x220216b9UL, 0x5505262fUL, 0xc5ba3bbeUL, - 0xb2bd0b28UL, 0x2bb45a92UL, 0x5cb36a04UL, 0xc2d7ffa7UL, 0xb5d0cf31UL, - 0x2cd99e8bUL, 0x5bdeae1dUL, 0x9b64c2b0UL, 0xec63f226UL, 0x756aa39cUL, - 0x026d930aUL, 0x9c0906a9UL, 0xeb0e363fUL, 0x72076785UL, 0x05005713UL, - 0x95bf4a82UL, 0xe2b87a14UL, 0x7bb12baeUL, 0x0cb61b38UL, 0x92d28e9bUL, - 0xe5d5be0dUL, 0x7cdcefb7UL, 0x0bdbdf21UL, 0x86d3d2d4UL, 0xf1d4e242UL, - 0x68ddb3f8UL, 0x1fda836eUL, 0x81be16cdUL, 0xf6b9265bUL, 0x6fb077e1UL, - 0x18b74777UL, 0x88085ae6UL, 0xff0f6a70UL, 0x66063bcaUL, 0x11010b5cUL, - 0x8f659effUL, 0xf862ae69UL, 0x616bffd3UL, 0x166ccf45UL, 0xa00ae278UL, - 0xd70dd2eeUL, 0x4e048354UL, 0x3903b3c2UL, 0xa7672661UL, 0xd06016f7UL, - 0x4969474dUL, 0x3e6e77dbUL, 0xaed16a4aUL, 0xd9d65adcUL, 0x40df0b66UL, - 0x37d83bf0UL, 0xa9bcae53UL, 0xdebb9ec5UL, 0x47b2cf7fUL, 0x30b5ffe9UL, - 0xbdbdf21cUL, 0xcabac28aUL, 0x53b39330UL, 0x24b4a3a6UL, 0xbad03605UL, - 0xcdd70693UL, 0x54de5729UL, 0x23d967bfUL, 0xb3667a2eUL, 0xc4614ab8UL, - 0x5d681b02UL, 0x2a6f2b94UL, 0xb40bbe37UL, 0xc30c8ea1UL, 0x5a05df1bUL, - 0x2d02ef8dUL -#ifdef BYFOUR - }, - { - 0x00000000UL, 0x191b3141UL, 0x32366282UL, 0x2b2d53c3UL, 0x646cc504UL, - 0x7d77f445UL, 0x565aa786UL, 0x4f4196c7UL, 0xc8d98a08UL, 0xd1c2bb49UL, - 0xfaefe88aUL, 0xe3f4d9cbUL, 0xacb54f0cUL, 0xb5ae7e4dUL, 0x9e832d8eUL, - 0x87981ccfUL, 0x4ac21251UL, 0x53d92310UL, 0x78f470d3UL, 0x61ef4192UL, - 0x2eaed755UL, 0x37b5e614UL, 0x1c98b5d7UL, 0x05838496UL, 0x821b9859UL, - 0x9b00a918UL, 0xb02dfadbUL, 0xa936cb9aUL, 0xe6775d5dUL, 0xff6c6c1cUL, - 0xd4413fdfUL, 0xcd5a0e9eUL, 0x958424a2UL, 0x8c9f15e3UL, 0xa7b24620UL, - 0xbea97761UL, 0xf1e8e1a6UL, 0xe8f3d0e7UL, 0xc3de8324UL, 0xdac5b265UL, - 0x5d5daeaaUL, 0x44469febUL, 0x6f6bcc28UL, 0x7670fd69UL, 0x39316baeUL, - 0x202a5aefUL, 0x0b07092cUL, 0x121c386dUL, 0xdf4636f3UL, 0xc65d07b2UL, - 0xed705471UL, 0xf46b6530UL, 0xbb2af3f7UL, 0xa231c2b6UL, 0x891c9175UL, - 0x9007a034UL, 0x179fbcfbUL, 0x0e848dbaUL, 0x25a9de79UL, 0x3cb2ef38UL, - 0x73f379ffUL, 0x6ae848beUL, 0x41c51b7dUL, 0x58de2a3cUL, 0xf0794f05UL, - 0xe9627e44UL, 0xc24f2d87UL, 0xdb541cc6UL, 0x94158a01UL, 0x8d0ebb40UL, - 0xa623e883UL, 0xbf38d9c2UL, 0x38a0c50dUL, 0x21bbf44cUL, 0x0a96a78fUL, - 0x138d96ceUL, 0x5ccc0009UL, 0x45d73148UL, 0x6efa628bUL, 0x77e153caUL, - 0xbabb5d54UL, 0xa3a06c15UL, 0x888d3fd6UL, 0x91960e97UL, 0xded79850UL, - 0xc7cca911UL, 0xece1fad2UL, 0xf5facb93UL, 0x7262d75cUL, 0x6b79e61dUL, - 0x4054b5deUL, 0x594f849fUL, 0x160e1258UL, 0x0f152319UL, 0x243870daUL, - 0x3d23419bUL, 0x65fd6ba7UL, 0x7ce65ae6UL, 0x57cb0925UL, 0x4ed03864UL, - 0x0191aea3UL, 0x188a9fe2UL, 0x33a7cc21UL, 0x2abcfd60UL, 0xad24e1afUL, - 0xb43fd0eeUL, 0x9f12832dUL, 0x8609b26cUL, 0xc94824abUL, 0xd05315eaUL, - 0xfb7e4629UL, 0xe2657768UL, 0x2f3f79f6UL, 0x362448b7UL, 0x1d091b74UL, - 0x04122a35UL, 0x4b53bcf2UL, 0x52488db3UL, 0x7965de70UL, 0x607eef31UL, - 0xe7e6f3feUL, 0xfefdc2bfUL, 0xd5d0917cUL, 0xcccba03dUL, 0x838a36faUL, - 0x9a9107bbUL, 0xb1bc5478UL, 0xa8a76539UL, 0x3b83984bUL, 0x2298a90aUL, - 0x09b5fac9UL, 0x10aecb88UL, 0x5fef5d4fUL, 0x46f46c0eUL, 0x6dd93fcdUL, - 0x74c20e8cUL, 0xf35a1243UL, 0xea412302UL, 0xc16c70c1UL, 0xd8774180UL, - 0x9736d747UL, 0x8e2de606UL, 0xa500b5c5UL, 0xbc1b8484UL, 0x71418a1aUL, - 0x685abb5bUL, 0x4377e898UL, 0x5a6cd9d9UL, 0x152d4f1eUL, 0x0c367e5fUL, - 0x271b2d9cUL, 0x3e001cddUL, 0xb9980012UL, 0xa0833153UL, 0x8bae6290UL, - 0x92b553d1UL, 0xddf4c516UL, 0xc4eff457UL, 0xefc2a794UL, 0xf6d996d5UL, - 0xae07bce9UL, 0xb71c8da8UL, 0x9c31de6bUL, 0x852aef2aUL, 0xca6b79edUL, - 0xd37048acUL, 0xf85d1b6fUL, 0xe1462a2eUL, 0x66de36e1UL, 0x7fc507a0UL, - 0x54e85463UL, 0x4df36522UL, 0x02b2f3e5UL, 0x1ba9c2a4UL, 0x30849167UL, - 0x299fa026UL, 0xe4c5aeb8UL, 0xfdde9ff9UL, 0xd6f3cc3aUL, 0xcfe8fd7bUL, - 0x80a96bbcUL, 0x99b25afdUL, 0xb29f093eUL, 0xab84387fUL, 0x2c1c24b0UL, - 0x350715f1UL, 0x1e2a4632UL, 0x07317773UL, 0x4870e1b4UL, 0x516bd0f5UL, - 0x7a468336UL, 0x635db277UL, 0xcbfad74eUL, 0xd2e1e60fUL, 0xf9ccb5ccUL, - 0xe0d7848dUL, 0xaf96124aUL, 0xb68d230bUL, 0x9da070c8UL, 0x84bb4189UL, - 0x03235d46UL, 0x1a386c07UL, 0x31153fc4UL, 0x280e0e85UL, 0x674f9842UL, - 0x7e54a903UL, 0x5579fac0UL, 0x4c62cb81UL, 0x8138c51fUL, 0x9823f45eUL, - 0xb30ea79dUL, 0xaa1596dcUL, 0xe554001bUL, 0xfc4f315aUL, 0xd7626299UL, - 0xce7953d8UL, 0x49e14f17UL, 0x50fa7e56UL, 0x7bd72d95UL, 0x62cc1cd4UL, - 0x2d8d8a13UL, 0x3496bb52UL, 0x1fbbe891UL, 0x06a0d9d0UL, 0x5e7ef3ecUL, - 0x4765c2adUL, 0x6c48916eUL, 0x7553a02fUL, 0x3a1236e8UL, 0x230907a9UL, - 0x0824546aUL, 0x113f652bUL, 0x96a779e4UL, 0x8fbc48a5UL, 0xa4911b66UL, - 0xbd8a2a27UL, 0xf2cbbce0UL, 0xebd08da1UL, 0xc0fdde62UL, 0xd9e6ef23UL, - 0x14bce1bdUL, 0x0da7d0fcUL, 0x268a833fUL, 0x3f91b27eUL, 0x70d024b9UL, - 0x69cb15f8UL, 0x42e6463bUL, 0x5bfd777aUL, 0xdc656bb5UL, 0xc57e5af4UL, - 0xee530937UL, 0xf7483876UL, 0xb809aeb1UL, 0xa1129ff0UL, 0x8a3fcc33UL, - 0x9324fd72UL - }, - { - 0x00000000UL, 0x01c26a37UL, 0x0384d46eUL, 0x0246be59UL, 0x0709a8dcUL, - 0x06cbc2ebUL, 0x048d7cb2UL, 0x054f1685UL, 0x0e1351b8UL, 0x0fd13b8fUL, - 0x0d9785d6UL, 0x0c55efe1UL, 0x091af964UL, 0x08d89353UL, 0x0a9e2d0aUL, - 0x0b5c473dUL, 0x1c26a370UL, 0x1de4c947UL, 0x1fa2771eUL, 0x1e601d29UL, - 0x1b2f0bacUL, 0x1aed619bUL, 0x18abdfc2UL, 0x1969b5f5UL, 0x1235f2c8UL, - 0x13f798ffUL, 0x11b126a6UL, 0x10734c91UL, 0x153c5a14UL, 0x14fe3023UL, - 0x16b88e7aUL, 0x177ae44dUL, 0x384d46e0UL, 0x398f2cd7UL, 0x3bc9928eUL, - 0x3a0bf8b9UL, 0x3f44ee3cUL, 0x3e86840bUL, 0x3cc03a52UL, 0x3d025065UL, - 0x365e1758UL, 0x379c7d6fUL, 0x35dac336UL, 0x3418a901UL, 0x3157bf84UL, - 0x3095d5b3UL, 0x32d36beaUL, 0x331101ddUL, 0x246be590UL, 0x25a98fa7UL, - 0x27ef31feUL, 0x262d5bc9UL, 0x23624d4cUL, 0x22a0277bUL, 0x20e69922UL, - 0x2124f315UL, 0x2a78b428UL, 0x2bbade1fUL, 0x29fc6046UL, 0x283e0a71UL, - 0x2d711cf4UL, 0x2cb376c3UL, 0x2ef5c89aUL, 0x2f37a2adUL, 0x709a8dc0UL, - 0x7158e7f7UL, 0x731e59aeUL, 0x72dc3399UL, 0x7793251cUL, 0x76514f2bUL, - 0x7417f172UL, 0x75d59b45UL, 0x7e89dc78UL, 0x7f4bb64fUL, 0x7d0d0816UL, - 0x7ccf6221UL, 0x798074a4UL, 0x78421e93UL, 0x7a04a0caUL, 0x7bc6cafdUL, - 0x6cbc2eb0UL, 0x6d7e4487UL, 0x6f38fadeUL, 0x6efa90e9UL, 0x6bb5866cUL, - 0x6a77ec5bUL, 0x68315202UL, 0x69f33835UL, 0x62af7f08UL, 0x636d153fUL, - 0x612bab66UL, 0x60e9c151UL, 0x65a6d7d4UL, 0x6464bde3UL, 0x662203baUL, - 0x67e0698dUL, 0x48d7cb20UL, 0x4915a117UL, 0x4b531f4eUL, 0x4a917579UL, - 0x4fde63fcUL, 0x4e1c09cbUL, 0x4c5ab792UL, 0x4d98dda5UL, 0x46c49a98UL, - 0x4706f0afUL, 0x45404ef6UL, 0x448224c1UL, 0x41cd3244UL, 0x400f5873UL, - 0x4249e62aUL, 0x438b8c1dUL, 0x54f16850UL, 0x55330267UL, 0x5775bc3eUL, - 0x56b7d609UL, 0x53f8c08cUL, 0x523aaabbUL, 0x507c14e2UL, 0x51be7ed5UL, - 0x5ae239e8UL, 0x5b2053dfUL, 0x5966ed86UL, 0x58a487b1UL, 0x5deb9134UL, - 0x5c29fb03UL, 0x5e6f455aUL, 0x5fad2f6dUL, 0xe1351b80UL, 0xe0f771b7UL, - 0xe2b1cfeeUL, 0xe373a5d9UL, 0xe63cb35cUL, 0xe7fed96bUL, 0xe5b86732UL, - 0xe47a0d05UL, 0xef264a38UL, 0xeee4200fUL, 0xeca29e56UL, 0xed60f461UL, - 0xe82fe2e4UL, 0xe9ed88d3UL, 0xebab368aUL, 0xea695cbdUL, 0xfd13b8f0UL, - 0xfcd1d2c7UL, 0xfe976c9eUL, 0xff5506a9UL, 0xfa1a102cUL, 0xfbd87a1bUL, - 0xf99ec442UL, 0xf85cae75UL, 0xf300e948UL, 0xf2c2837fUL, 0xf0843d26UL, - 0xf1465711UL, 0xf4094194UL, 0xf5cb2ba3UL, 0xf78d95faUL, 0xf64fffcdUL, - 0xd9785d60UL, 0xd8ba3757UL, 0xdafc890eUL, 0xdb3ee339UL, 0xde71f5bcUL, - 0xdfb39f8bUL, 0xddf521d2UL, 0xdc374be5UL, 0xd76b0cd8UL, 0xd6a966efUL, - 0xd4efd8b6UL, 0xd52db281UL, 0xd062a404UL, 0xd1a0ce33UL, 0xd3e6706aUL, - 0xd2241a5dUL, 0xc55efe10UL, 0xc49c9427UL, 0xc6da2a7eUL, 0xc7184049UL, - 0xc25756ccUL, 0xc3953cfbUL, 0xc1d382a2UL, 0xc011e895UL, 0xcb4dafa8UL, - 0xca8fc59fUL, 0xc8c97bc6UL, 0xc90b11f1UL, 0xcc440774UL, 0xcd866d43UL, - 0xcfc0d31aUL, 0xce02b92dUL, 0x91af9640UL, 0x906dfc77UL, 0x922b422eUL, - 0x93e92819UL, 0x96a63e9cUL, 0x976454abUL, 0x9522eaf2UL, 0x94e080c5UL, - 0x9fbcc7f8UL, 0x9e7eadcfUL, 0x9c381396UL, 0x9dfa79a1UL, 0x98b56f24UL, - 0x99770513UL, 0x9b31bb4aUL, 0x9af3d17dUL, 0x8d893530UL, 0x8c4b5f07UL, - 0x8e0de15eUL, 0x8fcf8b69UL, 0x8a809decUL, 0x8b42f7dbUL, 0x89044982UL, - 0x88c623b5UL, 0x839a6488UL, 0x82580ebfUL, 0x801eb0e6UL, 0x81dcdad1UL, - 0x8493cc54UL, 0x8551a663UL, 0x8717183aUL, 0x86d5720dUL, 0xa9e2d0a0UL, - 0xa820ba97UL, 0xaa6604ceUL, 0xaba46ef9UL, 0xaeeb787cUL, 0xaf29124bUL, - 0xad6fac12UL, 0xacadc625UL, 0xa7f18118UL, 0xa633eb2fUL, 0xa4755576UL, - 0xa5b73f41UL, 0xa0f829c4UL, 0xa13a43f3UL, 0xa37cfdaaUL, 0xa2be979dUL, - 0xb5c473d0UL, 0xb40619e7UL, 0xb640a7beUL, 0xb782cd89UL, 0xb2cddb0cUL, - 0xb30fb13bUL, 0xb1490f62UL, 0xb08b6555UL, 0xbbd72268UL, 0xba15485fUL, - 0xb853f606UL, 0xb9919c31UL, 0xbcde8ab4UL, 0xbd1ce083UL, 0xbf5a5edaUL, - 0xbe9834edUL - }, - { - 0x00000000UL, 0xb8bc6765UL, 0xaa09c88bUL, 0x12b5afeeUL, 0x8f629757UL, - 0x37def032UL, 0x256b5fdcUL, 0x9dd738b9UL, 0xc5b428efUL, 0x7d084f8aUL, - 0x6fbde064UL, 0xd7018701UL, 0x4ad6bfb8UL, 0xf26ad8ddUL, 0xe0df7733UL, - 0x58631056UL, 0x5019579fUL, 0xe8a530faUL, 0xfa109f14UL, 0x42acf871UL, - 0xdf7bc0c8UL, 0x67c7a7adUL, 0x75720843UL, 0xcdce6f26UL, 0x95ad7f70UL, - 0x2d111815UL, 0x3fa4b7fbUL, 0x8718d09eUL, 0x1acfe827UL, 0xa2738f42UL, - 0xb0c620acUL, 0x087a47c9UL, 0xa032af3eUL, 0x188ec85bUL, 0x0a3b67b5UL, - 0xb28700d0UL, 0x2f503869UL, 0x97ec5f0cUL, 0x8559f0e2UL, 0x3de59787UL, - 0x658687d1UL, 0xdd3ae0b4UL, 0xcf8f4f5aUL, 0x7733283fUL, 0xeae41086UL, - 0x525877e3UL, 0x40edd80dUL, 0xf851bf68UL, 0xf02bf8a1UL, 0x48979fc4UL, - 0x5a22302aUL, 0xe29e574fUL, 0x7f496ff6UL, 0xc7f50893UL, 0xd540a77dUL, - 0x6dfcc018UL, 0x359fd04eUL, 0x8d23b72bUL, 0x9f9618c5UL, 0x272a7fa0UL, - 0xbafd4719UL, 0x0241207cUL, 0x10f48f92UL, 0xa848e8f7UL, 0x9b14583dUL, - 0x23a83f58UL, 0x311d90b6UL, 0x89a1f7d3UL, 0x1476cf6aUL, 0xaccaa80fUL, - 0xbe7f07e1UL, 0x06c36084UL, 0x5ea070d2UL, 0xe61c17b7UL, 0xf4a9b859UL, - 0x4c15df3cUL, 0xd1c2e785UL, 0x697e80e0UL, 0x7bcb2f0eUL, 0xc377486bUL, - 0xcb0d0fa2UL, 0x73b168c7UL, 0x6104c729UL, 0xd9b8a04cUL, 0x446f98f5UL, - 0xfcd3ff90UL, 0xee66507eUL, 0x56da371bUL, 0x0eb9274dUL, 0xb6054028UL, - 0xa4b0efc6UL, 0x1c0c88a3UL, 0x81dbb01aUL, 0x3967d77fUL, 0x2bd27891UL, - 0x936e1ff4UL, 0x3b26f703UL, 0x839a9066UL, 0x912f3f88UL, 0x299358edUL, - 0xb4446054UL, 0x0cf80731UL, 0x1e4da8dfUL, 0xa6f1cfbaUL, 0xfe92dfecUL, - 0x462eb889UL, 0x549b1767UL, 0xec277002UL, 0x71f048bbUL, 0xc94c2fdeUL, - 0xdbf98030UL, 0x6345e755UL, 0x6b3fa09cUL, 0xd383c7f9UL, 0xc1366817UL, - 0x798a0f72UL, 0xe45d37cbUL, 0x5ce150aeUL, 0x4e54ff40UL, 0xf6e89825UL, - 0xae8b8873UL, 0x1637ef16UL, 0x048240f8UL, 0xbc3e279dUL, 0x21e91f24UL, - 0x99557841UL, 0x8be0d7afUL, 0x335cb0caUL, 0xed59b63bUL, 0x55e5d15eUL, - 0x47507eb0UL, 0xffec19d5UL, 0x623b216cUL, 0xda874609UL, 0xc832e9e7UL, - 0x708e8e82UL, 0x28ed9ed4UL, 0x9051f9b1UL, 0x82e4565fUL, 0x3a58313aUL, - 0xa78f0983UL, 0x1f336ee6UL, 0x0d86c108UL, 0xb53aa66dUL, 0xbd40e1a4UL, - 0x05fc86c1UL, 0x1749292fUL, 0xaff54e4aUL, 0x322276f3UL, 0x8a9e1196UL, - 0x982bbe78UL, 0x2097d91dUL, 0x78f4c94bUL, 0xc048ae2eUL, 0xd2fd01c0UL, - 0x6a4166a5UL, 0xf7965e1cUL, 0x4f2a3979UL, 0x5d9f9697UL, 0xe523f1f2UL, - 0x4d6b1905UL, 0xf5d77e60UL, 0xe762d18eUL, 0x5fdeb6ebUL, 0xc2098e52UL, - 0x7ab5e937UL, 0x680046d9UL, 0xd0bc21bcUL, 0x88df31eaUL, 0x3063568fUL, - 0x22d6f961UL, 0x9a6a9e04UL, 0x07bda6bdUL, 0xbf01c1d8UL, 0xadb46e36UL, - 0x15080953UL, 0x1d724e9aUL, 0xa5ce29ffUL, 0xb77b8611UL, 0x0fc7e174UL, - 0x9210d9cdUL, 0x2aacbea8UL, 0x38191146UL, 0x80a57623UL, 0xd8c66675UL, - 0x607a0110UL, 0x72cfaefeUL, 0xca73c99bUL, 0x57a4f122UL, 0xef189647UL, - 0xfdad39a9UL, 0x45115eccUL, 0x764dee06UL, 0xcef18963UL, 0xdc44268dUL, - 0x64f841e8UL, 0xf92f7951UL, 0x41931e34UL, 0x5326b1daUL, 0xeb9ad6bfUL, - 0xb3f9c6e9UL, 0x0b45a18cUL, 0x19f00e62UL, 0xa14c6907UL, 0x3c9b51beUL, - 0x842736dbUL, 0x96929935UL, 0x2e2efe50UL, 0x2654b999UL, 0x9ee8defcUL, - 0x8c5d7112UL, 0x34e11677UL, 0xa9362eceUL, 0x118a49abUL, 0x033fe645UL, - 0xbb838120UL, 0xe3e09176UL, 0x5b5cf613UL, 0x49e959fdUL, 0xf1553e98UL, - 0x6c820621UL, 0xd43e6144UL, 0xc68bceaaUL, 0x7e37a9cfUL, 0xd67f4138UL, - 0x6ec3265dUL, 0x7c7689b3UL, 0xc4caeed6UL, 0x591dd66fUL, 0xe1a1b10aUL, - 0xf3141ee4UL, 0x4ba87981UL, 0x13cb69d7UL, 0xab770eb2UL, 0xb9c2a15cUL, - 0x017ec639UL, 0x9ca9fe80UL, 0x241599e5UL, 0x36a0360bUL, 0x8e1c516eUL, - 0x866616a7UL, 0x3eda71c2UL, 0x2c6fde2cUL, 0x94d3b949UL, 0x090481f0UL, - 0xb1b8e695UL, 0xa30d497bUL, 0x1bb12e1eUL, 0x43d23e48UL, 0xfb6e592dUL, - 0xe9dbf6c3UL, 0x516791a6UL, 0xccb0a91fUL, 0x740cce7aUL, 0x66b96194UL, - 0xde0506f1UL - }, - { - 0x00000000UL, 0x96300777UL, 0x2c610eeeUL, 0xba510999UL, 0x19c46d07UL, - 0x8ff46a70UL, 0x35a563e9UL, 0xa395649eUL, 0x3288db0eUL, 0xa4b8dc79UL, - 0x1ee9d5e0UL, 0x88d9d297UL, 0x2b4cb609UL, 0xbd7cb17eUL, 0x072db8e7UL, - 0x911dbf90UL, 0x6410b71dUL, 0xf220b06aUL, 0x4871b9f3UL, 0xde41be84UL, - 0x7dd4da1aUL, 0xebe4dd6dUL, 0x51b5d4f4UL, 0xc785d383UL, 0x56986c13UL, - 0xc0a86b64UL, 0x7af962fdUL, 0xecc9658aUL, 0x4f5c0114UL, 0xd96c0663UL, - 0x633d0ffaUL, 0xf50d088dUL, 0xc8206e3bUL, 0x5e10694cUL, 0xe44160d5UL, - 0x727167a2UL, 0xd1e4033cUL, 0x47d4044bUL, 0xfd850dd2UL, 0x6bb50aa5UL, - 0xfaa8b535UL, 0x6c98b242UL, 0xd6c9bbdbUL, 0x40f9bcacUL, 0xe36cd832UL, - 0x755cdf45UL, 0xcf0dd6dcUL, 0x593dd1abUL, 0xac30d926UL, 0x3a00de51UL, - 0x8051d7c8UL, 0x1661d0bfUL, 0xb5f4b421UL, 0x23c4b356UL, 0x9995bacfUL, - 0x0fa5bdb8UL, 0x9eb80228UL, 0x0888055fUL, 0xb2d90cc6UL, 0x24e90bb1UL, - 0x877c6f2fUL, 0x114c6858UL, 0xab1d61c1UL, 0x3d2d66b6UL, 0x9041dc76UL, - 0x0671db01UL, 0xbc20d298UL, 0x2a10d5efUL, 0x8985b171UL, 0x1fb5b606UL, - 0xa5e4bf9fUL, 0x33d4b8e8UL, 0xa2c90778UL, 0x34f9000fUL, 0x8ea80996UL, - 0x18980ee1UL, 0xbb0d6a7fUL, 0x2d3d6d08UL, 0x976c6491UL, 0x015c63e6UL, - 0xf4516b6bUL, 0x62616c1cUL, 0xd8306585UL, 0x4e0062f2UL, 0xed95066cUL, - 0x7ba5011bUL, 0xc1f40882UL, 0x57c40ff5UL, 0xc6d9b065UL, 0x50e9b712UL, - 0xeab8be8bUL, 0x7c88b9fcUL, 0xdf1ddd62UL, 0x492dda15UL, 0xf37cd38cUL, - 0x654cd4fbUL, 0x5861b24dUL, 0xce51b53aUL, 0x7400bca3UL, 0xe230bbd4UL, - 0x41a5df4aUL, 0xd795d83dUL, 0x6dc4d1a4UL, 0xfbf4d6d3UL, 0x6ae96943UL, - 0xfcd96e34UL, 0x468867adUL, 0xd0b860daUL, 0x732d0444UL, 0xe51d0333UL, - 0x5f4c0aaaUL, 0xc97c0dddUL, 0x3c710550UL, 0xaa410227UL, 0x10100bbeUL, - 0x86200cc9UL, 0x25b56857UL, 0xb3856f20UL, 0x09d466b9UL, 0x9fe461ceUL, - 0x0ef9de5eUL, 0x98c9d929UL, 0x2298d0b0UL, 0xb4a8d7c7UL, 0x173db359UL, - 0x810db42eUL, 0x3b5cbdb7UL, 0xad6cbac0UL, 0x2083b8edUL, 0xb6b3bf9aUL, - 0x0ce2b603UL, 0x9ad2b174UL, 0x3947d5eaUL, 0xaf77d29dUL, 0x1526db04UL, - 0x8316dc73UL, 0x120b63e3UL, 0x843b6494UL, 0x3e6a6d0dUL, 0xa85a6a7aUL, - 0x0bcf0ee4UL, 0x9dff0993UL, 0x27ae000aUL, 0xb19e077dUL, 0x44930ff0UL, - 0xd2a30887UL, 0x68f2011eUL, 0xfec20669UL, 0x5d5762f7UL, 0xcb676580UL, - 0x71366c19UL, 0xe7066b6eUL, 0x761bd4feUL, 0xe02bd389UL, 0x5a7ada10UL, - 0xcc4add67UL, 0x6fdfb9f9UL, 0xf9efbe8eUL, 0x43beb717UL, 0xd58eb060UL, - 0xe8a3d6d6UL, 0x7e93d1a1UL, 0xc4c2d838UL, 0x52f2df4fUL, 0xf167bbd1UL, - 0x6757bca6UL, 0xdd06b53fUL, 0x4b36b248UL, 0xda2b0dd8UL, 0x4c1b0aafUL, - 0xf64a0336UL, 0x607a0441UL, 0xc3ef60dfUL, 0x55df67a8UL, 0xef8e6e31UL, - 0x79be6946UL, 0x8cb361cbUL, 0x1a8366bcUL, 0xa0d26f25UL, 0x36e26852UL, - 0x95770cccUL, 0x03470bbbUL, 0xb9160222UL, 0x2f260555UL, 0xbe3bbac5UL, - 0x280bbdb2UL, 0x925ab42bUL, 0x046ab35cUL, 0xa7ffd7c2UL, 0x31cfd0b5UL, - 0x8b9ed92cUL, 0x1daede5bUL, 0xb0c2649bUL, 0x26f263ecUL, 0x9ca36a75UL, - 0x0a936d02UL, 0xa906099cUL, 0x3f360eebUL, 0x85670772UL, 0x13570005UL, - 0x824abf95UL, 0x147ab8e2UL, 0xae2bb17bUL, 0x381bb60cUL, 0x9b8ed292UL, - 0x0dbed5e5UL, 0xb7efdc7cUL, 0x21dfdb0bUL, 0xd4d2d386UL, 0x42e2d4f1UL, - 0xf8b3dd68UL, 0x6e83da1fUL, 0xcd16be81UL, 0x5b26b9f6UL, 0xe177b06fUL, - 0x7747b718UL, 0xe65a0888UL, 0x706a0fffUL, 0xca3b0666UL, 0x5c0b0111UL, - 0xff9e658fUL, 0x69ae62f8UL, 0xd3ff6b61UL, 0x45cf6c16UL, 0x78e20aa0UL, - 0xeed20dd7UL, 0x5483044eUL, 0xc2b30339UL, 0x612667a7UL, 0xf71660d0UL, - 0x4d476949UL, 0xdb776e3eUL, 0x4a6ad1aeUL, 0xdc5ad6d9UL, 0x660bdf40UL, - 0xf03bd837UL, 0x53aebca9UL, 0xc59ebbdeUL, 0x7fcfb247UL, 0xe9ffb530UL, - 0x1cf2bdbdUL, 0x8ac2bacaUL, 0x3093b353UL, 0xa6a3b424UL, 0x0536d0baUL, - 0x9306d7cdUL, 0x2957de54UL, 0xbf67d923UL, 0x2e7a66b3UL, 0xb84a61c4UL, - 0x021b685dUL, 0x942b6f2aUL, 0x37be0bb4UL, 0xa18e0cc3UL, 0x1bdf055aUL, - 0x8def022dUL - }, - { - 0x00000000UL, 0x41311b19UL, 0x82623632UL, 0xc3532d2bUL, 0x04c56c64UL, - 0x45f4777dUL, 0x86a75a56UL, 0xc796414fUL, 0x088ad9c8UL, 0x49bbc2d1UL, - 0x8ae8effaUL, 0xcbd9f4e3UL, 0x0c4fb5acUL, 0x4d7eaeb5UL, 0x8e2d839eUL, - 0xcf1c9887UL, 0x5112c24aUL, 0x1023d953UL, 0xd370f478UL, 0x9241ef61UL, - 0x55d7ae2eUL, 0x14e6b537UL, 0xd7b5981cUL, 0x96848305UL, 0x59981b82UL, - 0x18a9009bUL, 0xdbfa2db0UL, 0x9acb36a9UL, 0x5d5d77e6UL, 0x1c6c6cffUL, - 0xdf3f41d4UL, 0x9e0e5acdUL, 0xa2248495UL, 0xe3159f8cUL, 0x2046b2a7UL, - 0x6177a9beUL, 0xa6e1e8f1UL, 0xe7d0f3e8UL, 0x2483dec3UL, 0x65b2c5daUL, - 0xaaae5d5dUL, 0xeb9f4644UL, 0x28cc6b6fUL, 0x69fd7076UL, 0xae6b3139UL, - 0xef5a2a20UL, 0x2c09070bUL, 0x6d381c12UL, 0xf33646dfUL, 0xb2075dc6UL, - 0x715470edUL, 0x30656bf4UL, 0xf7f32abbUL, 0xb6c231a2UL, 0x75911c89UL, - 0x34a00790UL, 0xfbbc9f17UL, 0xba8d840eUL, 0x79dea925UL, 0x38efb23cUL, - 0xff79f373UL, 0xbe48e86aUL, 0x7d1bc541UL, 0x3c2ade58UL, 0x054f79f0UL, - 0x447e62e9UL, 0x872d4fc2UL, 0xc61c54dbUL, 0x018a1594UL, 0x40bb0e8dUL, - 0x83e823a6UL, 0xc2d938bfUL, 0x0dc5a038UL, 0x4cf4bb21UL, 0x8fa7960aUL, - 0xce968d13UL, 0x0900cc5cUL, 0x4831d745UL, 0x8b62fa6eUL, 0xca53e177UL, - 0x545dbbbaUL, 0x156ca0a3UL, 0xd63f8d88UL, 0x970e9691UL, 0x5098d7deUL, - 0x11a9ccc7UL, 0xd2fae1ecUL, 0x93cbfaf5UL, 0x5cd76272UL, 0x1de6796bUL, - 0xdeb55440UL, 0x9f844f59UL, 0x58120e16UL, 0x1923150fUL, 0xda703824UL, - 0x9b41233dUL, 0xa76bfd65UL, 0xe65ae67cUL, 0x2509cb57UL, 0x6438d04eUL, - 0xa3ae9101UL, 0xe29f8a18UL, 0x21cca733UL, 0x60fdbc2aUL, 0xafe124adUL, - 0xeed03fb4UL, 0x2d83129fUL, 0x6cb20986UL, 0xab2448c9UL, 0xea1553d0UL, - 0x29467efbUL, 0x687765e2UL, 0xf6793f2fUL, 0xb7482436UL, 0x741b091dUL, - 0x352a1204UL, 0xf2bc534bUL, 0xb38d4852UL, 0x70de6579UL, 0x31ef7e60UL, - 0xfef3e6e7UL, 0xbfc2fdfeUL, 0x7c91d0d5UL, 0x3da0cbccUL, 0xfa368a83UL, - 0xbb07919aUL, 0x7854bcb1UL, 0x3965a7a8UL, 0x4b98833bUL, 0x0aa99822UL, - 0xc9fab509UL, 0x88cbae10UL, 0x4f5def5fUL, 0x0e6cf446UL, 0xcd3fd96dUL, - 0x8c0ec274UL, 0x43125af3UL, 0x022341eaUL, 0xc1706cc1UL, 0x804177d8UL, - 0x47d73697UL, 0x06e62d8eUL, 0xc5b500a5UL, 0x84841bbcUL, 0x1a8a4171UL, - 0x5bbb5a68UL, 0x98e87743UL, 0xd9d96c5aUL, 0x1e4f2d15UL, 0x5f7e360cUL, - 0x9c2d1b27UL, 0xdd1c003eUL, 0x120098b9UL, 0x533183a0UL, 0x9062ae8bUL, - 0xd153b592UL, 0x16c5f4ddUL, 0x57f4efc4UL, 0x94a7c2efUL, 0xd596d9f6UL, - 0xe9bc07aeUL, 0xa88d1cb7UL, 0x6bde319cUL, 0x2aef2a85UL, 0xed796bcaUL, - 0xac4870d3UL, 0x6f1b5df8UL, 0x2e2a46e1UL, 0xe136de66UL, 0xa007c57fUL, - 0x6354e854UL, 0x2265f34dUL, 0xe5f3b202UL, 0xa4c2a91bUL, 0x67918430UL, - 0x26a09f29UL, 0xb8aec5e4UL, 0xf99fdefdUL, 0x3accf3d6UL, 0x7bfde8cfUL, - 0xbc6ba980UL, 0xfd5ab299UL, 0x3e099fb2UL, 0x7f3884abUL, 0xb0241c2cUL, - 0xf1150735UL, 0x32462a1eUL, 0x73773107UL, 0xb4e17048UL, 0xf5d06b51UL, - 0x3683467aUL, 0x77b25d63UL, 0x4ed7facbUL, 0x0fe6e1d2UL, 0xccb5ccf9UL, - 0x8d84d7e0UL, 0x4a1296afUL, 0x0b238db6UL, 0xc870a09dUL, 0x8941bb84UL, - 0x465d2303UL, 0x076c381aUL, 0xc43f1531UL, 0x850e0e28UL, 0x42984f67UL, - 0x03a9547eUL, 0xc0fa7955UL, 0x81cb624cUL, 0x1fc53881UL, 0x5ef42398UL, - 0x9da70eb3UL, 0xdc9615aaUL, 0x1b0054e5UL, 0x5a314ffcUL, 0x996262d7UL, - 0xd85379ceUL, 0x174fe149UL, 0x567efa50UL, 0x952dd77bUL, 0xd41ccc62UL, - 0x138a8d2dUL, 0x52bb9634UL, 0x91e8bb1fUL, 0xd0d9a006UL, 0xecf37e5eUL, - 0xadc26547UL, 0x6e91486cUL, 0x2fa05375UL, 0xe836123aUL, 0xa9070923UL, - 0x6a542408UL, 0x2b653f11UL, 0xe479a796UL, 0xa548bc8fUL, 0x661b91a4UL, - 0x272a8abdUL, 0xe0bccbf2UL, 0xa18dd0ebUL, 0x62defdc0UL, 0x23efe6d9UL, - 0xbde1bc14UL, 0xfcd0a70dUL, 0x3f838a26UL, 0x7eb2913fUL, 0xb924d070UL, - 0xf815cb69UL, 0x3b46e642UL, 0x7a77fd5bUL, 0xb56b65dcUL, 0xf45a7ec5UL, - 0x370953eeUL, 0x763848f7UL, 0xb1ae09b8UL, 0xf09f12a1UL, 0x33cc3f8aUL, - 0x72fd2493UL - }, - { - 0x00000000UL, 0x376ac201UL, 0x6ed48403UL, 0x59be4602UL, 0xdca80907UL, - 0xebc2cb06UL, 0xb27c8d04UL, 0x85164f05UL, 0xb851130eUL, 0x8f3bd10fUL, - 0xd685970dUL, 0xe1ef550cUL, 0x64f91a09UL, 0x5393d808UL, 0x0a2d9e0aUL, - 0x3d475c0bUL, 0x70a3261cUL, 0x47c9e41dUL, 0x1e77a21fUL, 0x291d601eUL, - 0xac0b2f1bUL, 0x9b61ed1aUL, 0xc2dfab18UL, 0xf5b56919UL, 0xc8f23512UL, - 0xff98f713UL, 0xa626b111UL, 0x914c7310UL, 0x145a3c15UL, 0x2330fe14UL, - 0x7a8eb816UL, 0x4de47a17UL, 0xe0464d38UL, 0xd72c8f39UL, 0x8e92c93bUL, - 0xb9f80b3aUL, 0x3cee443fUL, 0x0b84863eUL, 0x523ac03cUL, 0x6550023dUL, - 0x58175e36UL, 0x6f7d9c37UL, 0x36c3da35UL, 0x01a91834UL, 0x84bf5731UL, - 0xb3d59530UL, 0xea6bd332UL, 0xdd011133UL, 0x90e56b24UL, 0xa78fa925UL, - 0xfe31ef27UL, 0xc95b2d26UL, 0x4c4d6223UL, 0x7b27a022UL, 0x2299e620UL, - 0x15f32421UL, 0x28b4782aUL, 0x1fdeba2bUL, 0x4660fc29UL, 0x710a3e28UL, - 0xf41c712dUL, 0xc376b32cUL, 0x9ac8f52eUL, 0xada2372fUL, 0xc08d9a70UL, - 0xf7e75871UL, 0xae591e73UL, 0x9933dc72UL, 0x1c259377UL, 0x2b4f5176UL, - 0x72f11774UL, 0x459bd575UL, 0x78dc897eUL, 0x4fb64b7fUL, 0x16080d7dUL, - 0x2162cf7cUL, 0xa4748079UL, 0x931e4278UL, 0xcaa0047aUL, 0xfdcac67bUL, - 0xb02ebc6cUL, 0x87447e6dUL, 0xdefa386fUL, 0xe990fa6eUL, 0x6c86b56bUL, - 0x5bec776aUL, 0x02523168UL, 0x3538f369UL, 0x087faf62UL, 0x3f156d63UL, - 0x66ab2b61UL, 0x51c1e960UL, 0xd4d7a665UL, 0xe3bd6464UL, 0xba032266UL, - 0x8d69e067UL, 0x20cbd748UL, 0x17a11549UL, 0x4e1f534bUL, 0x7975914aUL, - 0xfc63de4fUL, 0xcb091c4eUL, 0x92b75a4cUL, 0xa5dd984dUL, 0x989ac446UL, - 0xaff00647UL, 0xf64e4045UL, 0xc1248244UL, 0x4432cd41UL, 0x73580f40UL, - 0x2ae64942UL, 0x1d8c8b43UL, 0x5068f154UL, 0x67023355UL, 0x3ebc7557UL, - 0x09d6b756UL, 0x8cc0f853UL, 0xbbaa3a52UL, 0xe2147c50UL, 0xd57ebe51UL, - 0xe839e25aUL, 0xdf53205bUL, 0x86ed6659UL, 0xb187a458UL, 0x3491eb5dUL, - 0x03fb295cUL, 0x5a456f5eUL, 0x6d2fad5fUL, 0x801b35e1UL, 0xb771f7e0UL, - 0xeecfb1e2UL, 0xd9a573e3UL, 0x5cb33ce6UL, 0x6bd9fee7UL, 0x3267b8e5UL, - 0x050d7ae4UL, 0x384a26efUL, 0x0f20e4eeUL, 0x569ea2ecUL, 0x61f460edUL, - 0xe4e22fe8UL, 0xd388ede9UL, 0x8a36abebUL, 0xbd5c69eaUL, 0xf0b813fdUL, - 0xc7d2d1fcUL, 0x9e6c97feUL, 0xa90655ffUL, 0x2c101afaUL, 0x1b7ad8fbUL, - 0x42c49ef9UL, 0x75ae5cf8UL, 0x48e900f3UL, 0x7f83c2f2UL, 0x263d84f0UL, - 0x115746f1UL, 0x944109f4UL, 0xa32bcbf5UL, 0xfa958df7UL, 0xcdff4ff6UL, - 0x605d78d9UL, 0x5737bad8UL, 0x0e89fcdaUL, 0x39e33edbUL, 0xbcf571deUL, - 0x8b9fb3dfUL, 0xd221f5ddUL, 0xe54b37dcUL, 0xd80c6bd7UL, 0xef66a9d6UL, - 0xb6d8efd4UL, 0x81b22dd5UL, 0x04a462d0UL, 0x33cea0d1UL, 0x6a70e6d3UL, - 0x5d1a24d2UL, 0x10fe5ec5UL, 0x27949cc4UL, 0x7e2adac6UL, 0x494018c7UL, - 0xcc5657c2UL, 0xfb3c95c3UL, 0xa282d3c1UL, 0x95e811c0UL, 0xa8af4dcbUL, - 0x9fc58fcaUL, 0xc67bc9c8UL, 0xf1110bc9UL, 0x740744ccUL, 0x436d86cdUL, - 0x1ad3c0cfUL, 0x2db902ceUL, 0x4096af91UL, 0x77fc6d90UL, 0x2e422b92UL, - 0x1928e993UL, 0x9c3ea696UL, 0xab546497UL, 0xf2ea2295UL, 0xc580e094UL, - 0xf8c7bc9fUL, 0xcfad7e9eUL, 0x9613389cUL, 0xa179fa9dUL, 0x246fb598UL, - 0x13057799UL, 0x4abb319bUL, 0x7dd1f39aUL, 0x3035898dUL, 0x075f4b8cUL, - 0x5ee10d8eUL, 0x698bcf8fUL, 0xec9d808aUL, 0xdbf7428bUL, 0x82490489UL, - 0xb523c688UL, 0x88649a83UL, 0xbf0e5882UL, 0xe6b01e80UL, 0xd1dadc81UL, - 0x54cc9384UL, 0x63a65185UL, 0x3a181787UL, 0x0d72d586UL, 0xa0d0e2a9UL, - 0x97ba20a8UL, 0xce0466aaUL, 0xf96ea4abUL, 0x7c78ebaeUL, 0x4b1229afUL, - 0x12ac6fadUL, 0x25c6adacUL, 0x1881f1a7UL, 0x2feb33a6UL, 0x765575a4UL, - 0x413fb7a5UL, 0xc429f8a0UL, 0xf3433aa1UL, 0xaafd7ca3UL, 0x9d97bea2UL, - 0xd073c4b5UL, 0xe71906b4UL, 0xbea740b6UL, 0x89cd82b7UL, 0x0cdbcdb2UL, - 0x3bb10fb3UL, 0x620f49b1UL, 0x55658bb0UL, 0x6822d7bbUL, 0x5f4815baUL, - 0x06f653b8UL, 0x319c91b9UL, 0xb48adebcUL, 0x83e01cbdUL, 0xda5e5abfUL, - 0xed3498beUL - }, - { - 0x00000000UL, 0x6567bcb8UL, 0x8bc809aaUL, 0xeeafb512UL, 0x5797628fUL, - 0x32f0de37UL, 0xdc5f6b25UL, 0xb938d79dUL, 0xef28b4c5UL, 0x8a4f087dUL, - 0x64e0bd6fUL, 0x018701d7UL, 0xb8bfd64aUL, 0xddd86af2UL, 0x3377dfe0UL, - 0x56106358UL, 0x9f571950UL, 0xfa30a5e8UL, 0x149f10faUL, 0x71f8ac42UL, - 0xc8c07bdfUL, 0xada7c767UL, 0x43087275UL, 0x266fcecdUL, 0x707fad95UL, - 0x1518112dUL, 0xfbb7a43fUL, 0x9ed01887UL, 0x27e8cf1aUL, 0x428f73a2UL, - 0xac20c6b0UL, 0xc9477a08UL, 0x3eaf32a0UL, 0x5bc88e18UL, 0xb5673b0aUL, - 0xd00087b2UL, 0x6938502fUL, 0x0c5fec97UL, 0xe2f05985UL, 0x8797e53dUL, - 0xd1878665UL, 0xb4e03addUL, 0x5a4f8fcfUL, 0x3f283377UL, 0x8610e4eaUL, - 0xe3775852UL, 0x0dd8ed40UL, 0x68bf51f8UL, 0xa1f82bf0UL, 0xc49f9748UL, - 0x2a30225aUL, 0x4f579ee2UL, 0xf66f497fUL, 0x9308f5c7UL, 0x7da740d5UL, - 0x18c0fc6dUL, 0x4ed09f35UL, 0x2bb7238dUL, 0xc518969fUL, 0xa07f2a27UL, - 0x1947fdbaUL, 0x7c204102UL, 0x928ff410UL, 0xf7e848a8UL, 0x3d58149bUL, - 0x583fa823UL, 0xb6901d31UL, 0xd3f7a189UL, 0x6acf7614UL, 0x0fa8caacUL, - 0xe1077fbeUL, 0x8460c306UL, 0xd270a05eUL, 0xb7171ce6UL, 0x59b8a9f4UL, - 0x3cdf154cUL, 0x85e7c2d1UL, 0xe0807e69UL, 0x0e2fcb7bUL, 0x6b4877c3UL, - 0xa20f0dcbUL, 0xc768b173UL, 0x29c70461UL, 0x4ca0b8d9UL, 0xf5986f44UL, - 0x90ffd3fcUL, 0x7e5066eeUL, 0x1b37da56UL, 0x4d27b90eUL, 0x284005b6UL, - 0xc6efb0a4UL, 0xa3880c1cUL, 0x1ab0db81UL, 0x7fd76739UL, 0x9178d22bUL, - 0xf41f6e93UL, 0x03f7263bUL, 0x66909a83UL, 0x883f2f91UL, 0xed589329UL, - 0x546044b4UL, 0x3107f80cUL, 0xdfa84d1eUL, 0xbacff1a6UL, 0xecdf92feUL, - 0x89b82e46UL, 0x67179b54UL, 0x027027ecUL, 0xbb48f071UL, 0xde2f4cc9UL, - 0x3080f9dbUL, 0x55e74563UL, 0x9ca03f6bUL, 0xf9c783d3UL, 0x176836c1UL, - 0x720f8a79UL, 0xcb375de4UL, 0xae50e15cUL, 0x40ff544eUL, 0x2598e8f6UL, - 0x73888baeUL, 0x16ef3716UL, 0xf8408204UL, 0x9d273ebcUL, 0x241fe921UL, - 0x41785599UL, 0xafd7e08bUL, 0xcab05c33UL, 0x3bb659edUL, 0x5ed1e555UL, - 0xb07e5047UL, 0xd519ecffUL, 0x6c213b62UL, 0x094687daUL, 0xe7e932c8UL, - 0x828e8e70UL, 0xd49eed28UL, 0xb1f95190UL, 0x5f56e482UL, 0x3a31583aUL, - 0x83098fa7UL, 0xe66e331fUL, 0x08c1860dUL, 0x6da63ab5UL, 0xa4e140bdUL, - 0xc186fc05UL, 0x2f294917UL, 0x4a4ef5afUL, 0xf3762232UL, 0x96119e8aUL, - 0x78be2b98UL, 0x1dd99720UL, 0x4bc9f478UL, 0x2eae48c0UL, 0xc001fdd2UL, - 0xa566416aUL, 0x1c5e96f7UL, 0x79392a4fUL, 0x97969f5dUL, 0xf2f123e5UL, - 0x05196b4dUL, 0x607ed7f5UL, 0x8ed162e7UL, 0xebb6de5fUL, 0x528e09c2UL, - 0x37e9b57aUL, 0xd9460068UL, 0xbc21bcd0UL, 0xea31df88UL, 0x8f566330UL, - 0x61f9d622UL, 0x049e6a9aUL, 0xbda6bd07UL, 0xd8c101bfUL, 0x366eb4adUL, - 0x53090815UL, 0x9a4e721dUL, 0xff29cea5UL, 0x11867bb7UL, 0x74e1c70fUL, - 0xcdd91092UL, 0xa8beac2aUL, 0x46111938UL, 0x2376a580UL, 0x7566c6d8UL, - 0x10017a60UL, 0xfeaecf72UL, 0x9bc973caUL, 0x22f1a457UL, 0x479618efUL, - 0xa939adfdUL, 0xcc5e1145UL, 0x06ee4d76UL, 0x6389f1ceUL, 0x8d2644dcUL, - 0xe841f864UL, 0x51792ff9UL, 0x341e9341UL, 0xdab12653UL, 0xbfd69aebUL, - 0xe9c6f9b3UL, 0x8ca1450bUL, 0x620ef019UL, 0x07694ca1UL, 0xbe519b3cUL, - 0xdb362784UL, 0x35999296UL, 0x50fe2e2eUL, 0x99b95426UL, 0xfcdee89eUL, - 0x12715d8cUL, 0x7716e134UL, 0xce2e36a9UL, 0xab498a11UL, 0x45e63f03UL, - 0x208183bbUL, 0x7691e0e3UL, 0x13f65c5bUL, 0xfd59e949UL, 0x983e55f1UL, - 0x2106826cUL, 0x44613ed4UL, 0xaace8bc6UL, 0xcfa9377eUL, 0x38417fd6UL, - 0x5d26c36eUL, 0xb389767cUL, 0xd6eecac4UL, 0x6fd61d59UL, 0x0ab1a1e1UL, - 0xe41e14f3UL, 0x8179a84bUL, 0xd769cb13UL, 0xb20e77abUL, 0x5ca1c2b9UL, - 0x39c67e01UL, 0x80fea99cUL, 0xe5991524UL, 0x0b36a036UL, 0x6e511c8eUL, - 0xa7166686UL, 0xc271da3eUL, 0x2cde6f2cUL, 0x49b9d394UL, 0xf0810409UL, - 0x95e6b8b1UL, 0x7b490da3UL, 0x1e2eb11bUL, 0x483ed243UL, 0x2d596efbUL, - 0xc3f6dbe9UL, 0xa6916751UL, 0x1fa9b0ccUL, 0x7ace0c74UL, 0x9461b966UL, - 0xf10605deUL -#endif - } -}; diff --git a/mk/linux/mojosetup/zlib/inffixed.h b/mk/linux/mojosetup/zlib/inffixed.h deleted file mode 100644 index 75ed4b597..000000000 --- a/mk/linux/mojosetup/zlib/inffixed.h +++ /dev/null @@ -1,94 +0,0 @@ - /* inffixed.h -- table for decoding fixed codes - * Generated automatically by makefixed(). - */ - - /* WARNING: this file should *not* be used by applications. It - is part of the implementation of the compression library and - is subject to change. Applications should only use zlib.h. - */ - - static const code lenfix[512] = { - {96,7,0},{0,8,80},{0,8,16},{20,8,115},{18,7,31},{0,8,112},{0,8,48}, - {0,9,192},{16,7,10},{0,8,96},{0,8,32},{0,9,160},{0,8,0},{0,8,128}, - {0,8,64},{0,9,224},{16,7,6},{0,8,88},{0,8,24},{0,9,144},{19,7,59}, - {0,8,120},{0,8,56},{0,9,208},{17,7,17},{0,8,104},{0,8,40},{0,9,176}, - {0,8,8},{0,8,136},{0,8,72},{0,9,240},{16,7,4},{0,8,84},{0,8,20}, - {21,8,227},{19,7,43},{0,8,116},{0,8,52},{0,9,200},{17,7,13},{0,8,100}, - {0,8,36},{0,9,168},{0,8,4},{0,8,132},{0,8,68},{0,9,232},{16,7,8}, - {0,8,92},{0,8,28},{0,9,152},{20,7,83},{0,8,124},{0,8,60},{0,9,216}, - {18,7,23},{0,8,108},{0,8,44},{0,9,184},{0,8,12},{0,8,140},{0,8,76}, - {0,9,248},{16,7,3},{0,8,82},{0,8,18},{21,8,163},{19,7,35},{0,8,114}, - {0,8,50},{0,9,196},{17,7,11},{0,8,98},{0,8,34},{0,9,164},{0,8,2}, - {0,8,130},{0,8,66},{0,9,228},{16,7,7},{0,8,90},{0,8,26},{0,9,148}, - {20,7,67},{0,8,122},{0,8,58},{0,9,212},{18,7,19},{0,8,106},{0,8,42}, - {0,9,180},{0,8,10},{0,8,138},{0,8,74},{0,9,244},{16,7,5},{0,8,86}, - {0,8,22},{64,8,0},{19,7,51},{0,8,118},{0,8,54},{0,9,204},{17,7,15}, - {0,8,102},{0,8,38},{0,9,172},{0,8,6},{0,8,134},{0,8,70},{0,9,236}, - {16,7,9},{0,8,94},{0,8,30},{0,9,156},{20,7,99},{0,8,126},{0,8,62}, - {0,9,220},{18,7,27},{0,8,110},{0,8,46},{0,9,188},{0,8,14},{0,8,142}, - {0,8,78},{0,9,252},{96,7,0},{0,8,81},{0,8,17},{21,8,131},{18,7,31}, - {0,8,113},{0,8,49},{0,9,194},{16,7,10},{0,8,97},{0,8,33},{0,9,162}, - {0,8,1},{0,8,129},{0,8,65},{0,9,226},{16,7,6},{0,8,89},{0,8,25}, - {0,9,146},{19,7,59},{0,8,121},{0,8,57},{0,9,210},{17,7,17},{0,8,105}, - {0,8,41},{0,9,178},{0,8,9},{0,8,137},{0,8,73},{0,9,242},{16,7,4}, - {0,8,85},{0,8,21},{16,8,258},{19,7,43},{0,8,117},{0,8,53},{0,9,202}, - {17,7,13},{0,8,101},{0,8,37},{0,9,170},{0,8,5},{0,8,133},{0,8,69}, - {0,9,234},{16,7,8},{0,8,93},{0,8,29},{0,9,154},{20,7,83},{0,8,125}, - {0,8,61},{0,9,218},{18,7,23},{0,8,109},{0,8,45},{0,9,186},{0,8,13}, - {0,8,141},{0,8,77},{0,9,250},{16,7,3},{0,8,83},{0,8,19},{21,8,195}, - {19,7,35},{0,8,115},{0,8,51},{0,9,198},{17,7,11},{0,8,99},{0,8,35}, - {0,9,166},{0,8,3},{0,8,131},{0,8,67},{0,9,230},{16,7,7},{0,8,91}, - {0,8,27},{0,9,150},{20,7,67},{0,8,123},{0,8,59},{0,9,214},{18,7,19}, - {0,8,107},{0,8,43},{0,9,182},{0,8,11},{0,8,139},{0,8,75},{0,9,246}, - {16,7,5},{0,8,87},{0,8,23},{64,8,0},{19,7,51},{0,8,119},{0,8,55}, - {0,9,206},{17,7,15},{0,8,103},{0,8,39},{0,9,174},{0,8,7},{0,8,135}, - {0,8,71},{0,9,238},{16,7,9},{0,8,95},{0,8,31},{0,9,158},{20,7,99}, - {0,8,127},{0,8,63},{0,9,222},{18,7,27},{0,8,111},{0,8,47},{0,9,190}, - {0,8,15},{0,8,143},{0,8,79},{0,9,254},{96,7,0},{0,8,80},{0,8,16}, - {20,8,115},{18,7,31},{0,8,112},{0,8,48},{0,9,193},{16,7,10},{0,8,96}, - {0,8,32},{0,9,161},{0,8,0},{0,8,128},{0,8,64},{0,9,225},{16,7,6}, - {0,8,88},{0,8,24},{0,9,145},{19,7,59},{0,8,120},{0,8,56},{0,9,209}, - {17,7,17},{0,8,104},{0,8,40},{0,9,177},{0,8,8},{0,8,136},{0,8,72}, - {0,9,241},{16,7,4},{0,8,84},{0,8,20},{21,8,227},{19,7,43},{0,8,116}, - {0,8,52},{0,9,201},{17,7,13},{0,8,100},{0,8,36},{0,9,169},{0,8,4}, - {0,8,132},{0,8,68},{0,9,233},{16,7,8},{0,8,92},{0,8,28},{0,9,153}, - {20,7,83},{0,8,124},{0,8,60},{0,9,217},{18,7,23},{0,8,108},{0,8,44}, - {0,9,185},{0,8,12},{0,8,140},{0,8,76},{0,9,249},{16,7,3},{0,8,82}, - {0,8,18},{21,8,163},{19,7,35},{0,8,114},{0,8,50},{0,9,197},{17,7,11}, - {0,8,98},{0,8,34},{0,9,165},{0,8,2},{0,8,130},{0,8,66},{0,9,229}, - {16,7,7},{0,8,90},{0,8,26},{0,9,149},{20,7,67},{0,8,122},{0,8,58}, - {0,9,213},{18,7,19},{0,8,106},{0,8,42},{0,9,181},{0,8,10},{0,8,138}, - {0,8,74},{0,9,245},{16,7,5},{0,8,86},{0,8,22},{64,8,0},{19,7,51}, - {0,8,118},{0,8,54},{0,9,205},{17,7,15},{0,8,102},{0,8,38},{0,9,173}, - {0,8,6},{0,8,134},{0,8,70},{0,9,237},{16,7,9},{0,8,94},{0,8,30}, - {0,9,157},{20,7,99},{0,8,126},{0,8,62},{0,9,221},{18,7,27},{0,8,110}, - {0,8,46},{0,9,189},{0,8,14},{0,8,142},{0,8,78},{0,9,253},{96,7,0}, - {0,8,81},{0,8,17},{21,8,131},{18,7,31},{0,8,113},{0,8,49},{0,9,195}, - {16,7,10},{0,8,97},{0,8,33},{0,9,163},{0,8,1},{0,8,129},{0,8,65}, - {0,9,227},{16,7,6},{0,8,89},{0,8,25},{0,9,147},{19,7,59},{0,8,121}, - {0,8,57},{0,9,211},{17,7,17},{0,8,105},{0,8,41},{0,9,179},{0,8,9}, - {0,8,137},{0,8,73},{0,9,243},{16,7,4},{0,8,85},{0,8,21},{16,8,258}, - {19,7,43},{0,8,117},{0,8,53},{0,9,203},{17,7,13},{0,8,101},{0,8,37}, - {0,9,171},{0,8,5},{0,8,133},{0,8,69},{0,9,235},{16,7,8},{0,8,93}, - {0,8,29},{0,9,155},{20,7,83},{0,8,125},{0,8,61},{0,9,219},{18,7,23}, - {0,8,109},{0,8,45},{0,9,187},{0,8,13},{0,8,141},{0,8,77},{0,9,251}, - {16,7,3},{0,8,83},{0,8,19},{21,8,195},{19,7,35},{0,8,115},{0,8,51}, - {0,9,199},{17,7,11},{0,8,99},{0,8,35},{0,9,167},{0,8,3},{0,8,131}, - {0,8,67},{0,9,231},{16,7,7},{0,8,91},{0,8,27},{0,9,151},{20,7,67}, - {0,8,123},{0,8,59},{0,9,215},{18,7,19},{0,8,107},{0,8,43},{0,9,183}, - {0,8,11},{0,8,139},{0,8,75},{0,9,247},{16,7,5},{0,8,87},{0,8,23}, - {64,8,0},{19,7,51},{0,8,119},{0,8,55},{0,9,207},{17,7,15},{0,8,103}, - {0,8,39},{0,9,175},{0,8,7},{0,8,135},{0,8,71},{0,9,239},{16,7,9}, - {0,8,95},{0,8,31},{0,9,159},{20,7,99},{0,8,127},{0,8,63},{0,9,223}, - {18,7,27},{0,8,111},{0,8,47},{0,9,191},{0,8,15},{0,8,143},{0,8,79}, - {0,9,255} - }; - - static const code distfix[32] = { - {16,5,1},{23,5,257},{19,5,17},{27,5,4097},{17,5,5},{25,5,1025}, - {21,5,65},{29,5,16385},{16,5,3},{24,5,513},{20,5,33},{28,5,8193}, - {18,5,9},{26,5,2049},{22,5,129},{64,5,0},{16,5,2},{23,5,385}, - {19,5,25},{27,5,6145},{17,5,7},{25,5,1537},{21,5,97},{29,5,24577}, - {16,5,4},{24,5,769},{20,5,49},{28,5,12289},{18,5,13},{26,5,3073}, - {22,5,193},{64,5,0} - }; diff --git a/mk/linux/mojosetup/zlib/trees.h b/mk/linux/mojosetup/zlib/trees.h deleted file mode 100644 index d35639d82..000000000 --- a/mk/linux/mojosetup/zlib/trees.h +++ /dev/null @@ -1,128 +0,0 @@ -/* header created automatically with -DGEN_TREES_H */ - -local const ct_data static_ltree[L_CODES+2] = { -{{ 12},{ 8}}, {{140},{ 8}}, {{ 76},{ 8}}, {{204},{ 8}}, {{ 44},{ 8}}, -{{172},{ 8}}, {{108},{ 8}}, {{236},{ 8}}, {{ 28},{ 8}}, {{156},{ 8}}, -{{ 92},{ 8}}, {{220},{ 8}}, {{ 60},{ 8}}, {{188},{ 8}}, {{124},{ 8}}, -{{252},{ 8}}, {{ 2},{ 8}}, {{130},{ 8}}, {{ 66},{ 8}}, {{194},{ 8}}, -{{ 34},{ 8}}, {{162},{ 8}}, {{ 98},{ 8}}, {{226},{ 8}}, {{ 18},{ 8}}, -{{146},{ 8}}, {{ 82},{ 8}}, {{210},{ 8}}, {{ 50},{ 8}}, {{178},{ 8}}, -{{114},{ 8}}, {{242},{ 8}}, {{ 10},{ 8}}, {{138},{ 8}}, {{ 74},{ 8}}, -{{202},{ 8}}, {{ 42},{ 8}}, {{170},{ 8}}, {{106},{ 8}}, {{234},{ 8}}, -{{ 26},{ 8}}, {{154},{ 8}}, {{ 90},{ 8}}, {{218},{ 8}}, {{ 58},{ 8}}, -{{186},{ 8}}, {{122},{ 8}}, {{250},{ 8}}, {{ 6},{ 8}}, {{134},{ 8}}, -{{ 70},{ 8}}, {{198},{ 8}}, {{ 38},{ 8}}, {{166},{ 8}}, {{102},{ 8}}, -{{230},{ 8}}, {{ 22},{ 8}}, {{150},{ 8}}, {{ 86},{ 8}}, {{214},{ 8}}, -{{ 54},{ 8}}, {{182},{ 8}}, {{118},{ 8}}, {{246},{ 8}}, {{ 14},{ 8}}, -{{142},{ 8}}, {{ 78},{ 8}}, {{206},{ 8}}, {{ 46},{ 8}}, {{174},{ 8}}, -{{110},{ 8}}, {{238},{ 8}}, {{ 30},{ 8}}, {{158},{ 8}}, {{ 94},{ 8}}, -{{222},{ 8}}, {{ 62},{ 8}}, {{190},{ 8}}, {{126},{ 8}}, {{254},{ 8}}, -{{ 1},{ 8}}, {{129},{ 8}}, {{ 65},{ 8}}, {{193},{ 8}}, {{ 33},{ 8}}, -{{161},{ 8}}, {{ 97},{ 8}}, {{225},{ 8}}, {{ 17},{ 8}}, {{145},{ 8}}, -{{ 81},{ 8}}, {{209},{ 8}}, {{ 49},{ 8}}, {{177},{ 8}}, {{113},{ 8}}, -{{241},{ 8}}, {{ 9},{ 8}}, {{137},{ 8}}, {{ 73},{ 8}}, {{201},{ 8}}, -{{ 41},{ 8}}, {{169},{ 8}}, {{105},{ 8}}, {{233},{ 8}}, {{ 25},{ 8}}, -{{153},{ 8}}, {{ 89},{ 8}}, {{217},{ 8}}, {{ 57},{ 8}}, {{185},{ 8}}, -{{121},{ 8}}, {{249},{ 8}}, {{ 5},{ 8}}, {{133},{ 8}}, {{ 69},{ 8}}, -{{197},{ 8}}, {{ 37},{ 8}}, {{165},{ 8}}, {{101},{ 8}}, {{229},{ 8}}, -{{ 21},{ 8}}, {{149},{ 8}}, {{ 85},{ 8}}, {{213},{ 8}}, {{ 53},{ 8}}, -{{181},{ 8}}, {{117},{ 8}}, {{245},{ 8}}, {{ 13},{ 8}}, {{141},{ 8}}, -{{ 77},{ 8}}, {{205},{ 8}}, {{ 45},{ 8}}, {{173},{ 8}}, {{109},{ 8}}, -{{237},{ 8}}, {{ 29},{ 8}}, {{157},{ 8}}, {{ 93},{ 8}}, {{221},{ 8}}, -{{ 61},{ 8}}, {{189},{ 8}}, {{125},{ 8}}, {{253},{ 8}}, {{ 19},{ 9}}, -{{275},{ 9}}, {{147},{ 9}}, {{403},{ 9}}, {{ 83},{ 9}}, {{339},{ 9}}, -{{211},{ 9}}, {{467},{ 9}}, {{ 51},{ 9}}, {{307},{ 9}}, {{179},{ 9}}, -{{435},{ 9}}, {{115},{ 9}}, {{371},{ 9}}, {{243},{ 9}}, {{499},{ 9}}, -{{ 11},{ 9}}, {{267},{ 9}}, {{139},{ 9}}, {{395},{ 9}}, {{ 75},{ 9}}, -{{331},{ 9}}, {{203},{ 9}}, {{459},{ 9}}, {{ 43},{ 9}}, {{299},{ 9}}, -{{171},{ 9}}, {{427},{ 9}}, {{107},{ 9}}, {{363},{ 9}}, {{235},{ 9}}, -{{491},{ 9}}, {{ 27},{ 9}}, {{283},{ 9}}, {{155},{ 9}}, {{411},{ 9}}, -{{ 91},{ 9}}, {{347},{ 9}}, {{219},{ 9}}, {{475},{ 9}}, {{ 59},{ 9}}, -{{315},{ 9}}, {{187},{ 9}}, {{443},{ 9}}, {{123},{ 9}}, {{379},{ 9}}, -{{251},{ 9}}, {{507},{ 9}}, {{ 7},{ 9}}, {{263},{ 9}}, {{135},{ 9}}, -{{391},{ 9}}, {{ 71},{ 9}}, {{327},{ 9}}, {{199},{ 9}}, {{455},{ 9}}, -{{ 39},{ 9}}, {{295},{ 9}}, {{167},{ 9}}, {{423},{ 9}}, {{103},{ 9}}, -{{359},{ 9}}, {{231},{ 9}}, {{487},{ 9}}, {{ 23},{ 9}}, {{279},{ 9}}, -{{151},{ 9}}, {{407},{ 9}}, {{ 87},{ 9}}, {{343},{ 9}}, {{215},{ 9}}, -{{471},{ 9}}, {{ 55},{ 9}}, {{311},{ 9}}, {{183},{ 9}}, {{439},{ 9}}, -{{119},{ 9}}, {{375},{ 9}}, {{247},{ 9}}, {{503},{ 9}}, {{ 15},{ 9}}, -{{271},{ 9}}, {{143},{ 9}}, {{399},{ 9}}, {{ 79},{ 9}}, {{335},{ 9}}, -{{207},{ 9}}, {{463},{ 9}}, {{ 47},{ 9}}, {{303},{ 9}}, {{175},{ 9}}, -{{431},{ 9}}, {{111},{ 9}}, {{367},{ 9}}, {{239},{ 9}}, {{495},{ 9}}, -{{ 31},{ 9}}, {{287},{ 9}}, {{159},{ 9}}, {{415},{ 9}}, {{ 95},{ 9}}, -{{351},{ 9}}, {{223},{ 9}}, {{479},{ 9}}, {{ 63},{ 9}}, {{319},{ 9}}, -{{191},{ 9}}, {{447},{ 9}}, {{127},{ 9}}, {{383},{ 9}}, {{255},{ 9}}, -{{511},{ 9}}, {{ 0},{ 7}}, {{ 64},{ 7}}, {{ 32},{ 7}}, {{ 96},{ 7}}, -{{ 16},{ 7}}, {{ 80},{ 7}}, {{ 48},{ 7}}, {{112},{ 7}}, {{ 8},{ 7}}, -{{ 72},{ 7}}, {{ 40},{ 7}}, {{104},{ 7}}, {{ 24},{ 7}}, {{ 88},{ 7}}, -{{ 56},{ 7}}, {{120},{ 7}}, {{ 4},{ 7}}, {{ 68},{ 7}}, {{ 36},{ 7}}, -{{100},{ 7}}, {{ 20},{ 7}}, {{ 84},{ 7}}, {{ 52},{ 7}}, {{116},{ 7}}, -{{ 3},{ 8}}, {{131},{ 8}}, {{ 67},{ 8}}, {{195},{ 8}}, {{ 35},{ 8}}, -{{163},{ 8}}, {{ 99},{ 8}}, {{227},{ 8}} -}; - -local const ct_data static_dtree[D_CODES] = { -{{ 0},{ 5}}, {{16},{ 5}}, {{ 8},{ 5}}, {{24},{ 5}}, {{ 4},{ 5}}, -{{20},{ 5}}, {{12},{ 5}}, {{28},{ 5}}, {{ 2},{ 5}}, {{18},{ 5}}, -{{10},{ 5}}, {{26},{ 5}}, {{ 6},{ 5}}, {{22},{ 5}}, {{14},{ 5}}, -{{30},{ 5}}, {{ 1},{ 5}}, {{17},{ 5}}, {{ 9},{ 5}}, {{25},{ 5}}, -{{ 5},{ 5}}, {{21},{ 5}}, {{13},{ 5}}, {{29},{ 5}}, {{ 3},{ 5}}, -{{19},{ 5}}, {{11},{ 5}}, {{27},{ 5}}, {{ 7},{ 5}}, {{23},{ 5}} -}; - -const uch ZLIB_INTERNAL _dist_code[DIST_CODE_LEN] = { - 0, 1, 2, 3, 4, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, - 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 10, 10, 10, -10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, -11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, -12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, -13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, 13, -13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, -14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, -14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, -14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 15, 15, -15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, -15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, -15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 0, 0, 16, 17, -18, 18, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 22, 22, 22, 22, 22, 22, 22, 22, -23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, -24, 24, 24, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, -26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, -26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, -27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, -27, 27, 27, 27, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, -28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, -28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, 28, -28, 28, 28, 28, 28, 28, 28, 28, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, -29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, -29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, -29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29, 29 -}; - -const uch ZLIB_INTERNAL _length_code[MAX_MATCH-MIN_MATCH+1]= { - 0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 12, 12, -13, 13, 13, 13, 14, 14, 14, 14, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 16, -17, 17, 17, 17, 17, 17, 17, 17, 18, 18, 18, 18, 18, 18, 18, 18, 19, 19, 19, 19, -19, 19, 19, 19, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, 20, -21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 21, 22, 22, 22, 22, -22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 22, 23, 23, 23, 23, 23, 23, 23, 23, -23, 23, 23, 23, 23, 23, 23, 23, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, -24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, 24, -25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, -25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 26, 26, 26, 26, 26, 26, 26, 26, -26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, 26, -26, 26, 26, 26, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, -27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 27, 28 -}; - -local const int base_length[LENGTH_CODES] = { -0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 20, 24, 28, 32, 40, 48, 56, -64, 80, 96, 112, 128, 160, 192, 224, 0 -}; - -local const int base_dist[D_CODES] = { - 0, 1, 2, 3, 4, 6, 8, 12, 16, 24, - 32, 48, 64, 96, 128, 192, 256, 384, 512, 768, - 1024, 1536, 2048, 3072, 4096, 6144, 8192, 12288, 16384, 24576 -}; - diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index 6a7786a3f..8125e02e2 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -1,6 +1,6 @@ // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2008 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published @@ -3131,6 +3131,8 @@ int glestMain(int argc, char** argv) { // Prints the run-time version ver = *SDL_Linked_Version(); print_SDL_version("SDL runtime version", &ver); + //const SDL_VideoInfo *vidInfo = SDL_GetVideoInfo(); + //printf("Video card Memory: %u\n",vidInfo->video_mem); } if(hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_LUA_INFO]) == true) { diff --git a/source/glest_game/main/program.cpp b/source/glest_game/main/program.cpp index 826c465b0..b6ec7f929 100644 --- a/source/glest_game/main/program.cpp +++ b/source/glest_game/main/program.cpp @@ -1,3 +1,4 @@ +// ============================================================== // This file is part of Glest (www.glest.org) // // Copyright (C) 2001-2008 Martiño Figueroa diff --git a/source/glest_game/menu/menu_state_about.h b/source/glest_game/menu/menu_state_about.h index db30d21f0..5c368aaa1 100644 --- a/source/glest_game/menu/menu_state_about.h +++ b/source/glest_game/menu/menu_state_about.h @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_connected_game.h b/source/glest_game/menu/menu_state_connected_game.h index 75928a8b5..cbe59ddf4 100644 --- a/source/glest_game/menu/menu_state_connected_game.h +++ b/source/glest_game/menu/menu_state_connected_game.h @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_custom_game.h b/source/glest_game/menu/menu_state_custom_game.h index a8055acf4..93956f06f 100644 --- a/source/glest_game/menu/menu_state_custom_game.h +++ b/source/glest_game/menu/menu_state_custom_game.h @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_graphic_info.cpp b/source/glest_game/menu/menu_state_graphic_info.cpp index 45cee3f05..424ca53cf 100644 --- a/source/glest_game/menu/menu_state_graphic_info.cpp +++ b/source/glest_game/menu/menu_state_graphic_info.cpp @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_join_game.cpp b/source/glest_game/menu/menu_state_join_game.cpp index 40c295205..ec3f5f13e 100644 --- a/source/glest_game/menu/menu_state_join_game.cpp +++ b/source/glest_game/menu/menu_state_join_game.cpp @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_load_game.cpp b/source/glest_game/menu/menu_state_load_game.cpp index 799c30595..bf08a8801 100644 --- a/source/glest_game/menu/menu_state_load_game.cpp +++ b/source/glest_game/menu/menu_state_load_game.cpp @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_load_game.h b/source/glest_game/menu/menu_state_load_game.h index b46af2607..7305251ed 100644 --- a/source/glest_game/menu/menu_state_load_game.h +++ b/source/glest_game/menu/menu_state_load_game.h @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_masterserver.h b/source/glest_game/menu/menu_state_masterserver.h index 2ca0c58ef..9b0cad4bd 100644 --- a/source/glest_game/menu/menu_state_masterserver.h +++ b/source/glest_game/menu/menu_state_masterserver.h @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_new_game.cpp b/source/glest_game/menu/menu_state_new_game.cpp index cb7239903..46669c7e2 100644 --- a/source/glest_game/menu/menu_state_new_game.cpp +++ b/source/glest_game/menu/menu_state_new_game.cpp @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_new_game.h b/source/glest_game/menu/menu_state_new_game.h index 5b88f3e15..d8ac2d2e0 100644 --- a/source/glest_game/menu/menu_state_new_game.h +++ b/source/glest_game/menu/menu_state_new_game.h @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_options.cpp b/source/glest_game/menu/menu_state_options.cpp index ebb43f252..486aeaa9a 100644 --- a/source/glest_game/menu/menu_state_options.cpp +++ b/source/glest_game/menu/menu_state_options.cpp @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_options.h b/source/glest_game/menu/menu_state_options.h index 07ffe28b6..0c069fa5c 100644 --- a/source/glest_game/menu/menu_state_options.h +++ b/source/glest_game/menu/menu_state_options.h @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_root.cpp b/source/glest_game/menu/menu_state_root.cpp index ccdaa6e36..76b24105b 100644 --- a/source/glest_game/menu/menu_state_root.cpp +++ b/source/glest_game/menu/menu_state_root.cpp @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/glest_game/menu/menu_state_root.h b/source/glest_game/menu/menu_state_root.h index 45e3dfa67..23aa073aa 100644 --- a/source/glest_game/menu/menu_state_root.h +++ b/source/glest_game/menu/menu_state_root.h @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/shared_lib/include/graphics/d3d9/graphics_factory_d3d9.h b/source/shared_lib/include/graphics/d3d9/graphics_factory_d3d9.h new file mode 100644 index 000000000..f3002cbff --- /dev/null +++ b/source/shared_lib/include/graphics/d3d9/graphics_factory_d3d9.h @@ -0,0 +1,44 @@ +// ============================================================== +// This file is part of Glest (www.glest.org) +// +// Copyright (C) 2001-2008 Martiño Figueroa +// +// You can redistribute this code and/or modify it under +// the terms of the GNU General Public License as published +// by the Free Software Foundation; either version 2 of the +// License, or (at your option) any later version +// ============================================================== + +#ifndef _SHARED_D3D9_GRAPHICSFACTORYD3D9_H_ +#define _SHARED_D3D9_GRAPHICSFACTORYD3D9_H_ + +#include "context_d3d9.h" +#include "model_renderer_d3d9.h" +#include "texture_d3d9.h" +#include "font_d3d9.h" +#include "text_renderer_d3d9.h" +#include "shader_d3d9.h" +#include "graphics_factory.h" + +namespace Shared{ namespace Graphics{ namespace D3d9{ + +// =============================== +// class GraphicsFactoryD3d9 +// =============================== + +class GraphicsFactoryD3d9: public GraphicsFactory{ +public: + virtual TextRenderer2D *newTextRenderer2D() {return new TextRenderer2DD3d9();} + virtual ModelRenderer *newModelRenderer() {return NULL;} + virtual Context *newContext() {return new ContextD3d9();} + virtual Texture2D *newTexture2D() {return new Texture2DD3d9();} + virtual TextureCube *newTextureCube() {return new TextureCubeD3d9();} + virtual Font2D *newFont2D() {return new Font2DD3d9();} + virtual ShaderProgram *newShaderProgram() {return new ShaderProgramD3d9();} + virtual VertexShader *newVertexShader() {return new VertexShaderD3d9();} + virtual FragmentShader *newFragmentShader() {return new PixelShaderD3d9();} +}; + +}}}//end namespace + +#endif diff --git a/source/shared_lib/include/graphics/gl/graphics_factory_gl2.h b/source/shared_lib/include/graphics/gl/graphics_factory_gl2.h index 510216820..ba573684b 100644 --- a/source/shared_lib/include/graphics/gl/graphics_factory_gl2.h +++ b/source/shared_lib/include/graphics/gl/graphics_factory_gl2.h @@ -1,3 +1,14 @@ +// ============================================================== +// This file is part of Glest (www.glest.org) +// +// Copyright (C) 2001-2008 Martiño Figueroa +// +// You can redistribute this code and/or modify it under +// the terms of the GNU General Public License as published +// by the Free Software Foundation; either version 2 of the +// License, or (at your option) any later version +// ============================================================== + #ifndef _SHARED_GRAPHICS_GL_GRAPHICSFACTORYGL2_H_ #define _SHARED_GRAPHICS_GL_GRAPHICSFACTORYGL2_H_ diff --git a/source/shared_lib/include/graphics/gl2/graphics_factory_gl2.h b/source/shared_lib/include/graphics/gl2/graphics_factory_gl2.h new file mode 100644 index 000000000..877a9f477 --- /dev/null +++ b/source/shared_lib/include/graphics/gl2/graphics_factory_gl2.h @@ -0,0 +1,72 @@ +// ============================================================== +// This file is part of Glest (www.glest.org) +// +// Copyright (C) 2001-2008 Martiño Figueroa +// +// You can redistribute this code and/or modify it under +// the terms of the GNU General Public License as published +// by the Free Software Foundation; either version 2 of the +// License, or (at your option) any later version +// ============================================================== + +#ifndef _SHARED_GRAPHICS_GL_GRAPHICSFACTORYGL2_H_ +#define _SHARED_GRAPHICS_GL_GRAPHICSFACTORYGL2_H_ + +#include "texture_manager.h" +#include "model_manager.h" +#include "particle_manager.h" +#include "font_manager.h" +#include "graphics_factory.h" +#include "text_renderer_gl.h" +#include "model_renderer_gl.h" +#include "particle_renderer_gl.h" +#include "context_gl.h" +#include "model_gl.h" +#include "texture_gl.h" +#include "font_gl.h" +#include "shader_gl.h" + +namespace Shared{ namespace Graphics{ namespace Gl{ + +// ===================================================== +// class GraphicsFactoryGl +// ===================================================== + +class GraphicsFactoryGl: public GraphicsFactory{ +public: + //context + virtual Context *newContext() {return new ContextGl();} + + //textures + virtual TextureManager *newTextureManager() {return new TextureManager();} + virtual Texture1D *newTexture1D() {return new Texture1DGl();} + virtual Texture2D *newTexture2D() {return new Texture2DGl();} + virtual Texture3D *newTexture3D() {return new Texture3DGl();} + virtual TextureCube *newTextureCube() {return new TextureCubeGl();} + + //models + virtual ModelManager *newModelManager() {return new ModelManager();} + virtual ModelRenderer *newModelRenderer() {return new ModelRendererGl();} + virtual Model *newModel() {return new ModelGl();} + + //text + virtual FontManager *newFontManager() {return new FontManager();} + virtual TextRenderer2D *newTextRenderer2D() {return new TextRenderer2DGl();} + virtual TextRenderer3D *newTextRenderer3D() {return new TextRenderer3DGl();} + virtual Font2D *newFont2D() {return new Font2DGl();} + virtual Font3D *newFont3D() {return new Font3DGl();} + + //particles + virtual ParticleManager *newParticleManager() {return new ParticleManager();} + virtual ParticleRenderer *newParticleRenderer() {return new ParticleRendererGl();} + + //shaders + virtual Shadermanager *newShadermanager() {return new ShaderManager();} + virtual ShaderProgram *newShaderProgram() {return new ShaderProgramGl();} + virtual VertexShader *newVertexShader() {return new VertexShaderGl();} + virtual FragmentShader *newFragmentShader() {return new FragmentShaderGl();} +}; + +}}}//end namespace + +#endif diff --git a/source/shared_lib/include/graphics/gl2/shader_gl.h b/source/shared_lib/include/graphics/gl2/shader_gl.h new file mode 100644 index 000000000..20afef367 --- /dev/null +++ b/source/shared_lib/include/graphics/gl2/shader_gl.h @@ -0,0 +1,110 @@ +// ============================================================== +// This file is part of Glest Shared Library (www.glest.org) +// +// Copyright (C) 2001-2008 Martiño Figueroa +// +// You can redistribute this code and/or modify it under +// the terms of the GNU General Public License as published +// by the Free Software Foundation; either version 2 of the +// License, or (at your option) any later version +// ============================================================== + +#ifndef _SHARED_GRAPHICS_GL_SHADERGL_H_ +#define _SHARED_GRAPHICS_GL_SHADERGL_H_ + +#include +#include + +#include "shader.h" +#include "opengl.h" + +using std::vector; +using std::string; +using std::pair; + +namespace Shared{ namespace Graphics{ namespace Gl{ + +// ===================================================== +// class ShaderProgramGl +// ===================================================== + +class ShaderProgramGl: public ShaderProgram{ +private: + typedef pair AttributePair; + typedef vector Attributes; + +private: + Attributes attributes; + GLhandleARB handle; + VertexShader *vertexShader; + FragmentShader *fragmentShader; + bool inited; + +public: + ShaderProgramGl(); + + GLhandleARB getHandle() const {return handle;} + + virtual void init(); + virtual void end(); + + virtual void attach(VertexShader *vertexShader, FragmentShader *fragmentShader); + virtual bool link(string &messages); + virtual void activate(); + + virtual void setUniform(const string &name, int value); + virtual void setUniform(const string &name, float value); + virtual void setUniform(const string &name, const Vec2f &value); + virtual void setUniform(const string &name, const Vec3f &value); + virtual void setUniform(const string &name, const Vec4f &value); + virtual void setUniform(const string &name, const Matrix3f &value); + virtual void setUniform(const string &name, const Matrix4f &value); + + void bindAttribute(const string &name, int index); + +private: + GLint getLocation(const string &name); +}; + +// ===================================================== +// class ShaderGl +// ===================================================== + +class ShaderGl: virtual public Shader{ +protected: + GLhandleARB handle; + ShaderSource source; + bool inited; + +public: + ShaderGl(); + + const ShaderSource *getSource() const {return &source;} + GLhandleARB getHandle() const {return handle;} + + virtual void load(const string &path); + virtual bool compile(string &messages); + virtual void end(); +}; + +// ===================================================== +// class VertexShaderGl +// ===================================================== + +class VertexShaderGl: public VertexShader, public ShaderGl{ +public: + virtual void init(); +}; + +// ===================================================== +// class FragmentShaderGl +// ===================================================== + +class FragmentShaderGl: public FragmentShader, public ShaderGl{ +public: + virtual void init(); +}; + +}}}//end namespace + +#endif diff --git a/source/shared_lib/include/platform/sdl/noimpl.h b/source/shared_lib/include/platform/sdl/noimpl.h index d7de3538d..e1c028b47 100644 --- a/source/shared_lib/include/platform/sdl/noimpl.h +++ b/source/shared_lib/include/platform/sdl/noimpl.h @@ -1,3 +1,14 @@ +// ============================================================== +// This file is part of Glest (www.glest.org) +// +// Copyright (C) 2001-2008 Martiño Figueroa +// +// You can redistribute this code and/or modify it under +// the terms of the GNU General Public License as published +// by the Free Software Foundation; either version 2 of the +// License, or (at your option) any later version +// ============================================================== + #ifndef _NOIMPL_H_ #define _NOIMPL_H_ diff --git a/source/shared_lib/include/streflop/FPUSettings.h b/source/shared_lib/include/streflop/FPUSettings.h index 013be871e..ecb034c7b 100644 --- a/source/shared_lib/include/streflop/FPUSettings.h +++ b/source/shared_lib/include/streflop/FPUSettings.h @@ -1,6 +1,7 @@ /* streflop: STandalone REproducible FLOating-Point - Nicolas Brodu, 2006 + Copyright 2006 Nicolas Brodu + 2012 Mark Vejvoda Code released according to the GNU Lesser General Public License Heavily relies on GNU Libm, itself depending on netlib fplibm, GNU MP, and IBM MP lib. diff --git a/source/shared_lib/include/streflop/IntegerTypes.h b/source/shared_lib/include/streflop/IntegerTypes.h index 943df14df..17c1251f6 100644 --- a/source/shared_lib/include/streflop/IntegerTypes.h +++ b/source/shared_lib/include/streflop/IntegerTypes.h @@ -1,6 +1,7 @@ /* streflop: STandalone REproducible FLOating-Point - Nicolas Brodu, 2006 + Copyright 2006 Nicolas Brodu + 2012 Mark Vejvoda Code released according to the GNU Lesser General Public License Heavily relies on GNU Libm, itself depending on netlib fplibm, GNU MP, and IBM MP lib. diff --git a/source/shared_lib/include/streflop/Random.h b/source/shared_lib/include/streflop/Random.h index fee7acd77..2467e8849 100644 --- a/source/shared_lib/include/streflop/Random.h +++ b/source/shared_lib/include/streflop/Random.h @@ -1,6 +1,8 @@ /* streflop: STandalone REproducible FLOating-Point - Nicolas Brodu, 2006 + Copyright 2006 Nicolas Brodu + 2010 Mark Vejvoda + Code released according to the GNU Lesser General Public License Heavily relies on GNU Libm, itself depending on netlib fplibm, GNU MP, and IBM MP lib. diff --git a/source/shared_lib/include/streflop/SMath.h b/source/shared_lib/include/streflop/SMath.h index 7da7e55b3..e6f136084 100644 --- a/source/shared_lib/include/streflop/SMath.h +++ b/source/shared_lib/include/streflop/SMath.h @@ -1,6 +1,8 @@ /* streflop: STandalone REproducible FLOating-Point - Nicolas Brodu, 2006 + Copyright 2006 Nicolas Brodu + 2010 Mark Vejvoda + Code released according to the GNU Lesser General Public License Heavily relies on GNU Libm, itself depending on netlib fplibm, GNU MP, diff --git a/source/shared_lib/include/streflop/SoftFloatWrapper.h b/source/shared_lib/include/streflop/SoftFloatWrapper.h index c3bbf0a42..3f2e82196 100644 --- a/source/shared_lib/include/streflop/SoftFloatWrapper.h +++ b/source/shared_lib/include/streflop/SoftFloatWrapper.h @@ -1,6 +1,8 @@ /* streflop: STandalone REproducible FLOating-Point - Nicolas Brodu, 2006 + Copyright 2006 Nicolas Brodu + 2010 Mark Vejvoda + Code released according to the GNU Lesser General Public License Heavily relies on GNU Libm, itself depending on netlib fplibm, GNU MP, and IBM MP lib. diff --git a/source/shared_lib/include/streflop/System.h b/source/shared_lib/include/streflop/System.h index 542d3f441..ee04aeb42 100644 --- a/source/shared_lib/include/streflop/System.h +++ b/source/shared_lib/include/streflop/System.h @@ -1,6 +1,7 @@ /* streflop: STandalone REproducible FLOating-Point - Nicolas Brodu, 2006 + Copyright 2006 Nicolas Brodu + 2012 Mark Vejvoda Code released according to the GNU Lesser General Public License Heavily relies on GNU Libm, itself depending on netlib fplibm, GNU MP, and IBM MP lib. diff --git a/source/shared_lib/include/streflop/X87DenormalSquasher.h b/source/shared_lib/include/streflop/X87DenormalSquasher.h index d2199f0fd..bbfa2f630 100644 --- a/source/shared_lib/include/streflop/X87DenormalSquasher.h +++ b/source/shared_lib/include/streflop/X87DenormalSquasher.h @@ -1,6 +1,7 @@ /* streflop: STandalone REproducible FLOating-Point - Nicolas Brodu, 2006 + Copyright 2006 Nicolas Brodu + 2012 Mark Vejvoda Code released according to the GNU Lesser General Public License Heavily relies on GNU Libm, itself depending on netlib fplibm, GNU MP, and IBM MP lib. diff --git a/source/shared_lib/include/streflop/libm/headers/SMath.h b/source/shared_lib/include/streflop/libm/headers/SMath.h index 4a7531b4f..5538ed49f 100644 --- a/source/shared_lib/include/streflop/libm/headers/SMath.h +++ b/source/shared_lib/include/streflop/libm/headers/SMath.h @@ -1,4 +1,10 @@ -/* Copied from math.h in same directory */ +/* Copied from math.h in same directory + * + Copyright 2006 Nicolas Brodu + 2010 Mark Vejvoda + Code released according to the GNU Lesser General Public License + + */ /* This file is stub automatically generated by import.pl */ diff --git a/source/shared_lib/include/streflop/libm/headers/math.h b/source/shared_lib/include/streflop/libm/headers/math.h index edc4f9d34..c42b7c12b 100644 --- a/source/shared_lib/include/streflop/libm/headers/math.h +++ b/source/shared_lib/include/streflop/libm/headers/math.h @@ -1,4 +1,9 @@ -/* This file is stub automatically generated by import.pl */ +/* This file is stub automatically generated by import.pl + * + Copyright 2006 Nicolas Brodu + 2010 Mark Vejvoda + Code released according to the GNU Lesser General Public License +*/ // Include bridge, just in case math_private is not included #include "../streflop_libm_bridge.h" diff --git a/source/shared_lib/include/streflop/libm/import.pl b/source/shared_lib/include/streflop/libm/import.pl deleted file mode 100755 index cb71762a1..000000000 --- a/source/shared_lib/include/streflop/libm/import.pl +++ /dev/null @@ -1,536 +0,0 @@ -#!/usr/bin/perl - -# streflop: STandalone REproducible FLOating-Point - -# This script imports the GNU libm files and convert them in such a way they can be compiled with streflop types. - -# Code released according to the GNU Lesser General Public License -# Nicolas Brodu, 2006 - -# Please read the history and copyright information in the accompanying documentation - -if ($#ARGV==-1) { -print <> headers/endian.h"); - -# remove some routines we don't need -if (-r "ldbl-96/printf_fphex.c") {unlink "ldbl-96/printf_fphex.c";} -if (-r "ldbl-96/strtold_l.c") {unlink "ldbl-96/strtold_l.c";} -if (-r "flt-32/mpn2flt.c") {unlink "flt-32/mpn2flt.c";} -if (-r "dbl-64/mpn2dbl.c") {unlink "dbl-64/mpn2dbl.c";} -if (-r "dbl-64/dbl2mpn.c") {unlink "dbl-64/dbl2mpn.c";} -if (-r "dbl-64/t_exp.c") {unlink "dbl-64/t_exp.c";} -if (-r "ldbl-96/mpn2ldbl.c") {unlink "ldbl-96/mpn2ldbl.c";} -if (-r "ldbl-96/ldbl2mpn.c") {unlink "ldbl-96/ldbl2mpn.c";} -if (-r "ldbl-96/s_nexttoward.c") {unlink "ldbl-96/s_nexttoward.c";} -if (-r "ldbl-96/s_nexttowardf.c") {unlink "ldbl-96/s_nexttowardf.c";} -if (-r "ldbl-96/math_ldbl.h") {unlink "ldbl-96/math_ldbl.h";} - -# The float exp in e_expf.c uses doubles internally since revision 1.2 in the libm-ieee754 CVS attic! -# Roll back to the slower, but purely float version, and also overwrite the wrapper by a wraper to the float only version -system("cp -f w_expf.c e_expf.c flt-32"); - -# convert .c => .cpp for clarity -@filelist = glob("flt-32/*.c dbl-64/*.c ldbl-96/*.c"); -foreach $f (@filelist) { - $g = $f; - $g =~ s/\.c$/.cpp/; - rename $f, $g; -} - -# create dummy math.h stub -open(FILE, ">headers/math.h"); -print FILE <) { - # replace double by float, OK in these files - s/double/float/g; - $content.=$_; - } - close FILE; - open(FILE,">$f"); - print FILE $content; - close FILE; -} - -# These files in the dbl directory wrongly use float, long double and float functions -foreach $f ("dbl-64/e_lgamma_r.cpp", "dbl-64/t_exp2.h", "dbl-64/s_llrint.cpp") { - open(FILE,"<$f"); - $content = ""; - while() { - s/fabsf/fabs/g; - s/float/double/g; - s/long double/double/g; - $content.=$_; - } - close FILE; - open(FILE,">$f"); - print FILE $content; - close FILE; -} - -# These files in the ldbl directory wrongly use lower precision types -foreach $f ("ldbl-96/e_lgammal_r.cpp", "ldbl-96/s_cbrtl.cpp", "ldbl-96/s_logbl.cpp", "ldbl-96/s_ldexpl.cpp") { - open(FILE,"<$f"); - $content = ""; - while() { - # do the substitution now - s/long double/Extended/g; - s/\(double\) i;/(long double) i;/g; - s/double (_|v)/long double $1/g; - s/const double factor/const long double factor/g; - s/fabs(?!l)/fabsl$1/g; - s/ldexp(?!l)/ldexpl$1/g; - s/__finite\(/__finitel\(/g; - s/__scalbn\(/__scalbnl\(/g; - $content.=$_; - } - close FILE; - open(FILE,">$f"); - print FILE $content; - close FILE; -} - - -# DOUBLE_FROM_INT_PTR(x) could simply be *reinterpret_cast(x) -# for basic types, but may use a dedicated factory for Object wrappers -# BaseType is either the same as FloatType for plain old float/double, or it is -# the float/double type when FloatType is an Object wrapper -$xdaccessor= - "inline Double& d() {return DOUBLE_FROM_INT_PTR(&i[0]);}\n" -."inline Double& x() {return DOUBLE_FROM_INT_PTR(&i[0]);}\n" -."inline Double& d(int idx) {return DOUBLE_FROM_INT_PTR(&i[idx*(sizeof(double)/sizeof(i))]);}\n" -."inline Double& x(int idx) {return DOUBLE_FROM_INT_PTR(&i[idx*(sizeof(double)/sizeof(i))]);}\n" -."inline const Double& d() const {return CONST_DOUBLE_FROM_INT_PTR(&i[0]);}\n" -."inline const Double& x() const {return CONST_DOUBLE_FROM_INT_PTR(&i[0]);}\n" -."inline const Double& d(int idx) const {return CONST_DOUBLE_FROM_INT_PTR(&i[idx*(sizeof(double)/sizeof(i))]);}\n" -."inline const Double& x(int idx) const {return CONST_DOUBLE_FROM_INT_PTR(&i[idx*(sizeof(double)/sizeof(i))]);}\n" -; - -@filelist = glob("flt-32/* dbl-64/* ldbl-96/*"); - -foreach $f (@filelist) { - - open(FILE,"<$f"); - $content = ""; - $opened_namespace = 0; - while() { - # remove all system-wide includes - if (/.*?#include(.*?)(.*)/#$1include$2\"$3\"$4/g; - # fp environment is now handled directly by streflop (and FPUSettings.h) - s/fenv\.h/..\/streflop_libm_bridge.h/g; - # integer types handled by the bridge - s/inttypes\.h/..\/streflop_libm_bridge.h/g; - # get rid of stdlib too - s/stdlib\.h/..\/streflop_libm_bridge.h/g; - # and limits.h - s/limits\.h/..\/streflop_libm_bridge.h/g; - # float.h too - s/float\.h/..\/streflop_libm_bridge.h/g; - # errno.h falls back to system, remove it - s/errno\.h/..\/streflop_libm_bridge.h/g; - # replace all occurences of problematic union fields with objects - # by proper C++ accessors - s/\b(\.d(?!\[)\b|\.d\[(.*?)\])/.d($2)/g; - s/\b(\.x(?!\[)\b|\.x\[(.*?)\])/.x($2)/g; - s/\b(\.f(?!\[)\b|\.f\[(.*?)\])/.f($2)/g; # ieee754.h - s/\b(->d(?!\[)\b|->d\[(.*?)\])/->d($2)/g; - s/\b(->x(?!\[)\b|->x\[(.*?)\])/->x($2)/g; - s/\b(->f(?!\[)\b|->f\[(.*?)\])/->f($2)/g; # ieee754.h - # Some more occurences from arrays of such unions/structs - s/\]\.d\b/].d()/g; - # named field C construct is invalid (C++ would initialize first union member) - # and we replace unions by struct + accessor anyway - s/{ *?.i *?= *?{/{{/g; - # volatile declaration of static const global variables poses problem with the wrapper types - s/volatile //g; - # Now substitute the base types by their Simple/Double/Extended aliases or wrapper - s/long double/Extended/g; # before double - s/\bdouble\b/Double/g; - s/\bfloat\b/Simple/g; - # Replace problematic int += double - s/E(X|Y|Z)(.*?=.*?)ONE/E${1}${2}1/g; - # problematic ?: operator with different types. This simple check catches all problematic occurences -# if (/\?(.*?(\b0\.|\.0).*?:.*?|.*?:.*?(\b0\.|\.0).*?);/) { -# print "$f => ?$1;\n"; -# } - if (/\?(.*?):(.*?)\b(0\.0|10\.0|1\.0)\b/) { - my $type = ""; - if ($f =~ /flt-32/) {$type = "Simple";} - if ($f =~ /dbl-64/) {$type = "Double";} - if ($f =~ /ldbl-96/) {$type = "Extended";} - s/\?(.*?):(.*?)\b(0\.0|10\.0|1\.0)\b/?$1:$2$type($3)/g; - } - my $type = ""; - my $flit = ""; - if ($f =~ /flt-32/) {$type = "Simple"; $flit = "f";} - if ($f =~ /dbl-64/) {$type = "Double"; $flit = "";} - if ($f =~ /ldbl-96/) {$type = "Extended"; $flit = "l";} - # replace problematic mixed-type ?: operators where an int and a float are used as arguments, incompatible with wrappers - if (/\?(.*?)\b(0\.0|1\.0)\b(.*?):(.*?)/) { - s/\?(.*?)\b(0\.0|1\.0)\b(.*?):(.*?)/?$1$type($2)$3:$4/g; - } - # These special cases are OK because no other ?: pattern use them in the 3 subdirs - s/\?0:/?Double(0.0):/; - s/:0;/:Double(0.0);/; - # protect the new symbol names by namespace to avoid any conflict with system libm - if (((/#ifdef __STDC__/) || (/.*? (__|mcr|ss32)[a-z,A-Z,_,0-9]*?\(.*?{$/) || (/Double (atan2Mp|atanMp|slow|tanMp|__exp1|__ieee754_remainder|__ieee754_sqrt)/) || (/^(Simple|Double|Extended|void|int)$/) || ((/^#ifdef BIG_ENDI$/) && ($f =~ /(uatan|mpa2|mpexp|atnat|sincos32)/)) || (/^#define MM 5$/) || (/^void __mp(log|sqrt|exp|atan)\(/) || (/^int __(b|mp)ranred\(/)) && ($opened_namespace == 0)) { - $_ = "namespace streflop_libm {\n".$_; - $opened_namespace = 1; - } - - # Prevent type promotion for native aliases - # Ex: promotion would cause computations like y = 0.5 * x to be done in double for x,y float, then cast back to float - # We want the whole computation done in float, not temporary switching to double. - # In some case the FPU internal precision is enough to mask the problem, but for SSE for example, the float/double - # are using different instructions and the problem cannot be ignored (in these cases, there are differences from - # soft float implementation) - # Cannot replace by s/blah/$type($1)/g; because of static order initialization fiasco with wrapper types - # So use next best option to use litteral type specification - # => this solves the problem for native types - # => wrappers are OK thanks to the redefinitions of the operators - s/\b((\d+\.\d*|\d*\.\d+)((e|E)[-+]?\d+)?)(f|F|l|L)?\b/$1$flit/g; - $content.=$_; - } - close FILE; - # multi-line spanning regexp - $content =~ s/union ?{(.*?);.*?Double.*?}/struct {\n$xdaccessor$1;}/sg; - # close opened namespace - if ($opened_namespace==1) { - $content .= "}\n"; - } - open(FILE,">$f"); - print FILE $importNotice; - print FILE $content; - close FILE; -} - - -# ieee754.h union+accessor -open(FILE,") { - # Comment out decls sections - if (/.*?__.*?_DECLS.*/) {$_="//".$_;} - # Convert all includes to local files - s/^([ \t]*)#include([ \t]*)<(.*)>(.*)/#$1include$2\"$3\"$4/g; - # insert our own bridge - if (/^#define _IEEE754_H.*/) { - $_.="#include \"../streflop_libm_bridge.h\"\n\n"; - } - # Protect the Simple section by a #define - if (/.*?ieee754_float.*?/) { - $_ = "#if defined(LIBM_COMPILING_FLT32)\n".$_; - } - if (/.*?IEEE754_FLOAT_BIAS.*?/) { - $_ = $_."\n#endif\n"; - } - # Protect the Double section by a #define - if (/.*?ieee754_double.*?/) { - $_ = "#if defined(LIBM_COMPILING_DBL64)\n".$_; - } - if (/.*?IEEE754_DOUBLE_BIAS.*?/) { - $_ = $_."\n#endif\n"; - } - # Protect the Extended section by a #define - if (/.*?ieee854_long_double.*?/) { - $_ = "#if defined(Extended)\n".$_; - $_ = "#if defined(LIBM_COMPILING_LDBL96)\n".$_; - } - if (/.*?IEEE854_LONG_DOUBLE_BIAS.*?/) { - $_ = $_."\n#endif\n"; - $_ = $_."\n#endif\n"; - } - $content.=$_; -} -$ieeeAccessorSimple= - "inline Simple& f() {return SIMPLE_FROM_INT_PTR(&storage[0]);}\n" -."inline const Simple& f() const {return CONST_SIMPLE_FROM_INT_PTR(&storage[0]);}\n"; -$ieeeAccessorDouble= - "inline Double& d() {return DOUBLE_FROM_INT_PTR(&storage[0]);}\n" -."inline const Double& d() const {return CONST_DOUBLE_FROM_INT_PTR(&storage[0]);}\n"; -$ieeeAccessorExtended= - "inline Extended& d() {return EXTENDED_FROM_INT_PTR(&storage[0]);}\n" -."inline const Extended& d() const {return CONST_EXTENDED_FROM_INT_PTR(&storage[0]);}\n"; - -# multi-line spanning regexp -$content =~ s/union(.*?ieee854_long_double.*?){.*?;/union$1\{\nint storage[sizeof(long double)\/sizeof(int)];\n$ieeeAccessorExtended/sg; -$content =~ s/union(.*?ieee754_double.*?){.*?;/union$1\{\nint storage[sizeof(double)\/sizeof(int)];\n$ieeeAccessorDouble/sg; -$content =~ s/union(.*?ieee754_float.*?){.*?;/union$1\{\nint storage[sizeof(float)\/sizeof(int)];\n$ieeeAccessorSimple/sg; -close FILE; -open(FILE,">headers/ieee754.h"); -print FILE $importNotice; -print FILE $content; -close FILE; - -# math_private.h needs a special treatement to define the macros for the wrapper objects -# The macros will be defined separately -open(FILE,") { - # keep initial lines with header information and #define file protection - # skip all lines defining macros and unions - if (/^#define _MATH_PRIVATE_H_.*/) { - push @convert,$_; - push @convert,"\n/* import.pl: Skipped the macro definitions, keep only the declarations, converted to use streflop types (aliases or wrappers) */\n#include \"../streflop_libm_bridge.h\"\n\nnamespace streflop_libm {\n\n"; - # ensure strict separation of precision mode, each one does not have access to the other names - push @convert,"#ifdef LIBM_COMPILING_FLT32\n"; - # define wrappers as the libm would do in IEEE754 mode - push @convert,"#define __sqrtf __ieee754_sqrtf\n"; - push @convert,"#define fabsf __fabsf\n"; - push @convert,"#define copysignf __copysignf\n"; - # add missing defines - push @convert,"extern Simple __log1pf(Simple x);\n"; - push @convert,"extern Simple __fabsf(Simple x);\n"; - push @convert,"extern Simple __atanf(Simple x);\n"; - push @convert,"extern Simple __expm1f(Simple x);\n"; - push @convert,"extern int __isinff(Simple x);\n"; - push @convert,"extern Simple __rintf(Simple x);\n"; - push @convert,"extern Simple __cosf(Simple x);\n"; - push @convert,"extern void __sincosf (Simple x, Simple *sinx, Simple *cosx);\n"; - push @convert,"extern Simple __floorf(Simple x);\n"; - push @convert,"extern Simple __scalbnf (Simple x, int n);\n"; - push @convert,"extern Simple __frexpf(Simple x, int *eptr);\n"; - push @convert,"extern Simple __ldexpf(Simple value, int exp);\n"; - push @convert,"extern int __finitef(Simple x);\n"; - push @convert,"#endif\n\n"; - push @convert,"#ifdef LIBM_COMPILING_DBL64\n"; - push @convert,"#define __sqrt __ieee754_sqrt\n"; - push @convert,"#define fabs __fabs\n"; - push @convert,"#define copysign __copysign\n"; - push @convert,"extern Double __log1p(Double x);\n"; - push @convert,"extern Double __fabs(Double x);\n"; - push @convert,"extern Double atan(Double x);\n"; - push @convert,"extern Double __expm1(Double x);\n"; - push @convert,"extern int __isinf(Double x);\n"; - push @convert,"extern Double __rint(Double x);\n"; - push @convert,"extern Double __cos(Double x);\n"; - push @convert,"extern void __sincos (Double x, Double *sinx, Double *cosx);\n"; - push @convert,"extern Double __floor(Double x);\n"; - push @convert,"extern Double __scalbn(Double x, int n);\n"; - push @convert,"extern Double __frexp(Double x, int *eptr);\n"; - push @convert,"extern Double __ldexp(Double value, int exp);\n"; - push @convert,"extern int __finite(Double x);\n"; - push @convert,"#endif\n\n"; - push @convert,"#ifdef LIBM_COMPILING_LDBL96\n"; - push @convert,"#if defined(Extended)\n"; - push @convert,"#define fabsl __fabsl\n"; - push @convert,"extern Extended __cosl(Extended x);\n"; - push @convert,"extern Extended __sinl(Extended x);\n"; - push @convert,"extern Extended __fabsl(Extended x);\n"; - push @convert,"#endif\n"; - push @convert,"#endif\n"; - push @convert,"\n"; - $flag = 0; - } - if (/^extern(.*)/) { - $flag = 1; - } - if ($flag==0) {next MPRIV_LOOP;} - - - - # Now substitute the base types by their Simple/Double/Extended aliases or wrapper - s/\blong double\b/Extended/g; # before double - s/\bdouble\b/Double/g; - s/\bfloat\b/Simple/g; - # Protect the Extended section by a #define - if (/.*?elementary Extended functions.*?/) { - $_ = "#if defined(Extended)\n".$_; - } - if (/.*?functions of the IBM.*?/) { - $_ = "#endif\n\n".$_; - } - # remove the inline aliases - s/__GNUC_PREREQ \(.*?\)/0/; - # end namespace protection - if (/^#endif.*_MATH_PRIVATE_H_/) { - $_ = "}\n\n".$_; - } - - # now insert protection for symbols separation - if (/^extern(.*)/) { - $remline = $1; - if ($remline =~ /Extended/) { - if ($precisionMode ne "Extended") { - if ($precisionMode ne "none") {$_ = "#endif\n".$_;} - $_ = "#ifdef LIBM_COMPILING_LDBL96\n".$_; - $precisionMode = "Extended"; - } - } - elsif ($remline =~ /Double/) { - if ($precisionMode ne "Double") { - if ($precisionMode ne "none") {$_ = "#endif\n".$_;} - $_ = "#ifdef LIBM_COMPILING_DBL64\n".$_; - $precisionMode = "Double"; - } - } - elsif ($remline =~ /Simple/) { - if ($precisionMode ne "Simple") { - if ($precisionMode ne "none") {$_ = "#endif\n".$_;} - $_ = "#ifdef LIBM_COMPILING_FLT32\n".$_; - $precisionMode = "Simple"; - } - } - } else { - $line = $_; - chomp $line; - if (($line =~ /^(\s)*$/) && ($precisionMode ne "none")) { - $_ = "#endif\n".$_; - $precisionMode = "none"; - } - } - - push @convert,$_; -} -close FILE; -open(FILE,">headers/math_private.h"); -print FILE $importNotice; -print FILE @convert; -close FILE; - -# features.h is nearly ready, just do not include more external defs -open(FILE,") { - # commment out external includes - s,(.*?#.*?include.*),//$1,; - push @convert,$_; -} -close FILE; -open(FILE,">headers/features.h"); -print FILE $importNotice; -print FILE @convert; -close FILE; - -# headers/endian.h -open(FILE,") { - # change machine specific bits/endian by streflop configuration - if (//) { - s,,\"../streflop_libm_bridge.h\",; - #keep features.h, but locally - } elsif (//) { - s,,"features.h",; - } else { - # commment out all other external includes - s,(.*?#.*?include.*),//$1,; - } - #unconditional definition of endian things - if (/defined _LIBC/) { - $_ = "#if 1\n//".$_; - } - push @convert,$_; -} -close FILE; -open(FILE,">headers/endian.h"); -print FILE $importNotice; -print FILE @convert; -close FILE; - - -# include the bridge from mpa.h -open(FILE,") { - # special case - s/->d\(\)/->mantissa/g; - $content.=$_; -} -close FILE; -$mpAccessor= - "inline Double& d(int idx) {return mantissa[idx];}\n" -."inline const Double& d(int idx) const {return mantissa[idx];}\n"; -# multi-line spanning regexp -$content =~ s/Double d\[(.*?)\].*?} mp_no/Double mantissa[$1];\n$mpAccessor} mp_no/sg; -open(FILE,">dbl-64/mpa.h"); -print FILE $content."}\n"; # also close namespace -close FILE; - -# Generate specific Makefiles -$parentMakefile=""; -foreach $dir ("flt-32", "dbl-64", "ldbl-96") { - @objFiles = glob("$dir/*.cpp"); - $parentObjects = "$dir-objects ="; - foreach $f (@objFiles) { - $f =~ s/\.cpp$/.o/; - $parentObjects .= " libm/$f"; - $f =~ s/^$dir\///; - } - open(FILE, ">$dir/Makefile"); - my $DIR = uc($dir); - $DIR =~ s/\-//; - print FILE "# Makefile automatically generated by import.pl\n" - ."include ../../Makefile.common\n" - ."CPPFLAGS += -I../headers -DLIBM_COMPILING_$DIR=1\n" - ."all: @objFiles\n" - ."\techo '$dir done!'\n"; - close FILE; - $parentMakefile .= $parentObjects."\n\n"; -} - -# generate Makefile rule in parent directory -@projectFiles = glob("flt-32/* dbl-64/* ldbl-96/* headers/*"); -foreach $f (@projectFiles) {$f = " libm/$f";} -open(FILE, ">../Makefile.libm_objects"); -print FILE "# Makefile automatically generated by libm/import.pl. Do not edit.\n\n" - .$parentMakefile - ."\nlibm-src ="; -print FILE @projectFiles; -print FILE "\n"; -close FILE; diff --git a/source/shared_lib/include/streflop/libm/streflop_libm_bridge.h b/source/shared_lib/include/streflop/libm/streflop_libm_bridge.h index 989685734..fa8bd0c5b 100644 --- a/source/shared_lib/include/streflop/libm/streflop_libm_bridge.h +++ b/source/shared_lib/include/streflop/libm/streflop_libm_bridge.h @@ -12,7 +12,8 @@ It is included by the libm converted files to produce the streflop binary, that will be linked by the user program instead of the system libm. - Nicolas Brodu, 2006 + Copyright 2006 Nicolas Brodu + 2010 Mark Vejvoda Code released according to the GNU Lesser General Public License */ diff --git a/source/shared_lib/include/streflop/softfloat/milieu.h b/source/shared_lib/include/streflop/softfloat/milieu.h index a18403ebc..8e0adbc3c 100644 --- a/source/shared_lib/include/streflop/softfloat/milieu.h +++ b/source/shared_lib/include/streflop/softfloat/milieu.h @@ -3,7 +3,10 @@ PROMINENT NOTICE: THIS IS A DERIVATIVE WORK OF THE ORIGINAL SOFTFLOAT CODE CHANGES: Removed processors include This file serves as a bridge to the streflop system -Nicolas Brodu, 2006 + + Copyright 2006 Nicolas Brodu + 2012 Mark Vejvoda + =============================================================================*/ /*============================================================================ diff --git a/source/shared_lib/include/streflop/softfloat/softfloat.h b/source/shared_lib/include/streflop/softfloat/softfloat.h index 9376d3680..cf5608035 100644 --- a/source/shared_lib/include/streflop/softfloat/softfloat.h +++ b/source/shared_lib/include/streflop/softfloat/softfloat.h @@ -7,7 +7,10 @@ CHANGES: Added variable to control the sending of real system traps Protect this header by a #define pack the fields of floatx80, just in case (should be useless) -Nicolas Brodu, 2006 + + Copyright 2006 Nicolas Brodu + 2012 Mark Vejvoda + =============================================================================*/ #ifdef STREFLOP_SOFT diff --git a/source/shared_lib/include/streflop/streflop.h b/source/shared_lib/include/streflop/streflop.h index b5f819732..35791b756 100644 --- a/source/shared_lib/include/streflop/streflop.h +++ b/source/shared_lib/include/streflop/streflop.h @@ -1,6 +1,8 @@ /* streflop: STandalone REproducible FLOating-Point - Nicolas Brodu, 2006 + Copyright 2006 Nicolas Brodu + 2010 Mark Vejvoda + Code released according to the GNU Lesser General Public License Heavily relies on GNU Libm, itself depending on netlib fplibm, GNU MP, and IBM MP lib. diff --git a/source/shared_lib/include/streflop/streflop_cond.h b/source/shared_lib/include/streflop/streflop_cond.h index d6e55c79a..95815b086 100644 --- a/source/shared_lib/include/streflop/streflop_cond.h +++ b/source/shared_lib/include/streflop/streflop_cond.h @@ -1,4 +1,12 @@ -/* Copyright (C) 2008 Tobi Vollebregt */ +/* Copyright (C) 2008 Tobi Vollebregt + 2010 Mark Vejvoda + + You can redistribute this code and/or modify it under + the terms of the GNU General Public License as published + by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version + ============================================================== +*/ /* Conditionally include streflop depending on STREFLOP_* #defines: If one of those is present, #include "streflop.h", otherwise #include diff --git a/source/shared_lib/sources/graphics/gl2/shader_gl.cpp b/source/shared_lib/sources/graphics/gl2/shader_gl.cpp index 8537bb4c7..9506529cc 100644 --- a/source/shared_lib/sources/graphics/gl2/shader_gl.cpp +++ b/source/shared_lib/sources/graphics/gl2/shader_gl.cpp @@ -1,7 +1,7 @@ // ============================================================== // This file is part of Glest Shared Library (www.glest.org) // -// Copyright (C) 2001-2005 Marti�o Figueroa +// Copyright (C) 2001-2008 Martiño Figueroa // // You can redistribute this code and/or modify it under // the terms of the GNU General Public License as published diff --git a/source/shared_lib/sources/libircclient/build/source/libircclient/src/win32/make_distro.sh b/source/shared_lib/sources/libircclient/build/source/libircclient/src/win32/make_distro.sh deleted file mode 100644 index 7411e2e31..000000000 --- a/source/shared_lib/sources/libircclient/build/source/libircclient/src/win32/make_distro.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -mkdir -p win32/lib -mkdir -p win32/include -mkdir -p win32/examples -cp libdynamic-release/*.lib win32/lib/ -cp libdynamic-release/*.dll win32/lib/ -cp libstatic-release/*.lib win32/lib/ -cp ../../include/libircclient.h win32/include/ -cp ../../include/libirc_errors.h win32/include/ -cp ../../include/libirc_events.h win32/include/ -cp -r ../../examples/* win32/examples/ -cp spammer.dsp win32/examples/ -cd win32 -zip -r ../libircclient-win32-vc-1.2.zip . -cd .. -rm -rf win32 - -mkdir doc -cp ../../doc/html/* doc/ -cd doc -zip -r ../libircclient-dochtml-1.2.zip . -cd .. -rm -rf doc diff --git a/source/shared_lib/sources/streflop/SMath.cpp b/source/shared_lib/sources/streflop/SMath.cpp index 749d61396..ceb4def24 100644 --- a/source/shared_lib/sources/streflop/SMath.cpp +++ b/source/shared_lib/sources/streflop/SMath.cpp @@ -1,3 +1,13 @@ +/* + Copyright 2006 Nicolas Brodu + 2012 Mark Vejvoda + + You can redistribute this code and/or modify it under + the terms of the GNU General Public License as published + by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version +*/ + // Includes Math.h in turn #include "streflop.h" diff --git a/source/shared_lib/sources/streflop/SoftFloatWrapper.cpp b/source/shared_lib/sources/streflop/SoftFloatWrapper.cpp index adaf89b33..c7dd4a4e0 100644 --- a/source/shared_lib/sources/streflop/SoftFloatWrapper.cpp +++ b/source/shared_lib/sources/streflop/SoftFloatWrapper.cpp @@ -1,7 +1,12 @@ /* streflop: STandalone REproducible FLOating-Point - Nicolas Brodu, 2006 - Code released according to the GNU Lesser General Public License + Copyright 2006 Nicolas Brodu + 2012 Mark Vejvoda + + You can redistribute this code and/or modify it under + the terms of the GNU General Public License as published + by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version Heavily relies on GNU Libm, itself depending on netlib fplibm, GNU MP, and IBM MP lib. Uses SoftFloat too. diff --git a/source/shared_lib/sources/streflop/libm/flt-32/s_isinff.cpp b/source/shared_lib/sources/streflop/libm/flt-32/s_isinff.cpp index 520db800e..e6c4daea5 100644 --- a/source/shared_lib/sources/streflop/libm/flt-32/s_isinff.cpp +++ b/source/shared_lib/sources/streflop/libm/flt-32/s_isinff.cpp @@ -1,7 +1,7 @@ /* See the import.pl script for potential modifications */ /* - * Written by J.T. Conklin . - * Public domain. + * Copyright 2012 J.T. Conklin . + * Public domain */ #if defined(LIBM_SCCS) && !defined(lint) diff --git a/source/shared_lib/sources/streflop/libm/flt-32/w_expf.cpp b/source/shared_lib/sources/streflop/libm/flt-32/w_expf.cpp index dea0363a2..f0045cd79 100644 --- a/source/shared_lib/sources/streflop/libm/flt-32/w_expf.cpp +++ b/source/shared_lib/sources/streflop/libm/flt-32/w_expf.cpp @@ -1,8 +1,27 @@ /* See the import.pl script for potential modifications */ + /* The original libm wrapper may call the Double implementation and declares Double constants. This wrapper purely wraps the Simple version -*/ + + Copyright (C) 1997, 1998 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Ulrich Drepper , 1997. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1f of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ #include "math_private.h" diff --git a/source/shared_lib/sources/streflop/libm/import.pl b/source/shared_lib/sources/streflop/libm/import.pl deleted file mode 100755 index cb71762a1..000000000 --- a/source/shared_lib/sources/streflop/libm/import.pl +++ /dev/null @@ -1,536 +0,0 @@ -#!/usr/bin/perl - -# streflop: STandalone REproducible FLOating-Point - -# This script imports the GNU libm files and convert them in such a way they can be compiled with streflop types. - -# Code released according to the GNU Lesser General Public License -# Nicolas Brodu, 2006 - -# Please read the history and copyright information in the accompanying documentation - -if ($#ARGV==-1) { -print <> headers/endian.h"); - -# remove some routines we don't need -if (-r "ldbl-96/printf_fphex.c") {unlink "ldbl-96/printf_fphex.c";} -if (-r "ldbl-96/strtold_l.c") {unlink "ldbl-96/strtold_l.c";} -if (-r "flt-32/mpn2flt.c") {unlink "flt-32/mpn2flt.c";} -if (-r "dbl-64/mpn2dbl.c") {unlink "dbl-64/mpn2dbl.c";} -if (-r "dbl-64/dbl2mpn.c") {unlink "dbl-64/dbl2mpn.c";} -if (-r "dbl-64/t_exp.c") {unlink "dbl-64/t_exp.c";} -if (-r "ldbl-96/mpn2ldbl.c") {unlink "ldbl-96/mpn2ldbl.c";} -if (-r "ldbl-96/ldbl2mpn.c") {unlink "ldbl-96/ldbl2mpn.c";} -if (-r "ldbl-96/s_nexttoward.c") {unlink "ldbl-96/s_nexttoward.c";} -if (-r "ldbl-96/s_nexttowardf.c") {unlink "ldbl-96/s_nexttowardf.c";} -if (-r "ldbl-96/math_ldbl.h") {unlink "ldbl-96/math_ldbl.h";} - -# The float exp in e_expf.c uses doubles internally since revision 1.2 in the libm-ieee754 CVS attic! -# Roll back to the slower, but purely float version, and also overwrite the wrapper by a wraper to the float only version -system("cp -f w_expf.c e_expf.c flt-32"); - -# convert .c => .cpp for clarity -@filelist = glob("flt-32/*.c dbl-64/*.c ldbl-96/*.c"); -foreach $f (@filelist) { - $g = $f; - $g =~ s/\.c$/.cpp/; - rename $f, $g; -} - -# create dummy math.h stub -open(FILE, ">headers/math.h"); -print FILE <) { - # replace double by float, OK in these files - s/double/float/g; - $content.=$_; - } - close FILE; - open(FILE,">$f"); - print FILE $content; - close FILE; -} - -# These files in the dbl directory wrongly use float, long double and float functions -foreach $f ("dbl-64/e_lgamma_r.cpp", "dbl-64/t_exp2.h", "dbl-64/s_llrint.cpp") { - open(FILE,"<$f"); - $content = ""; - while() { - s/fabsf/fabs/g; - s/float/double/g; - s/long double/double/g; - $content.=$_; - } - close FILE; - open(FILE,">$f"); - print FILE $content; - close FILE; -} - -# These files in the ldbl directory wrongly use lower precision types -foreach $f ("ldbl-96/e_lgammal_r.cpp", "ldbl-96/s_cbrtl.cpp", "ldbl-96/s_logbl.cpp", "ldbl-96/s_ldexpl.cpp") { - open(FILE,"<$f"); - $content = ""; - while() { - # do the substitution now - s/long double/Extended/g; - s/\(double\) i;/(long double) i;/g; - s/double (_|v)/long double $1/g; - s/const double factor/const long double factor/g; - s/fabs(?!l)/fabsl$1/g; - s/ldexp(?!l)/ldexpl$1/g; - s/__finite\(/__finitel\(/g; - s/__scalbn\(/__scalbnl\(/g; - $content.=$_; - } - close FILE; - open(FILE,">$f"); - print FILE $content; - close FILE; -} - - -# DOUBLE_FROM_INT_PTR(x) could simply be *reinterpret_cast(x) -# for basic types, but may use a dedicated factory for Object wrappers -# BaseType is either the same as FloatType for plain old float/double, or it is -# the float/double type when FloatType is an Object wrapper -$xdaccessor= - "inline Double& d() {return DOUBLE_FROM_INT_PTR(&i[0]);}\n" -."inline Double& x() {return DOUBLE_FROM_INT_PTR(&i[0]);}\n" -."inline Double& d(int idx) {return DOUBLE_FROM_INT_PTR(&i[idx*(sizeof(double)/sizeof(i))]);}\n" -."inline Double& x(int idx) {return DOUBLE_FROM_INT_PTR(&i[idx*(sizeof(double)/sizeof(i))]);}\n" -."inline const Double& d() const {return CONST_DOUBLE_FROM_INT_PTR(&i[0]);}\n" -."inline const Double& x() const {return CONST_DOUBLE_FROM_INT_PTR(&i[0]);}\n" -."inline const Double& d(int idx) const {return CONST_DOUBLE_FROM_INT_PTR(&i[idx*(sizeof(double)/sizeof(i))]);}\n" -."inline const Double& x(int idx) const {return CONST_DOUBLE_FROM_INT_PTR(&i[idx*(sizeof(double)/sizeof(i))]);}\n" -; - -@filelist = glob("flt-32/* dbl-64/* ldbl-96/*"); - -foreach $f (@filelist) { - - open(FILE,"<$f"); - $content = ""; - $opened_namespace = 0; - while() { - # remove all system-wide includes - if (/.*?#include(.*?)(.*)/#$1include$2\"$3\"$4/g; - # fp environment is now handled directly by streflop (and FPUSettings.h) - s/fenv\.h/..\/streflop_libm_bridge.h/g; - # integer types handled by the bridge - s/inttypes\.h/..\/streflop_libm_bridge.h/g; - # get rid of stdlib too - s/stdlib\.h/..\/streflop_libm_bridge.h/g; - # and limits.h - s/limits\.h/..\/streflop_libm_bridge.h/g; - # float.h too - s/float\.h/..\/streflop_libm_bridge.h/g; - # errno.h falls back to system, remove it - s/errno\.h/..\/streflop_libm_bridge.h/g; - # replace all occurences of problematic union fields with objects - # by proper C++ accessors - s/\b(\.d(?!\[)\b|\.d\[(.*?)\])/.d($2)/g; - s/\b(\.x(?!\[)\b|\.x\[(.*?)\])/.x($2)/g; - s/\b(\.f(?!\[)\b|\.f\[(.*?)\])/.f($2)/g; # ieee754.h - s/\b(->d(?!\[)\b|->d\[(.*?)\])/->d($2)/g; - s/\b(->x(?!\[)\b|->x\[(.*?)\])/->x($2)/g; - s/\b(->f(?!\[)\b|->f\[(.*?)\])/->f($2)/g; # ieee754.h - # Some more occurences from arrays of such unions/structs - s/\]\.d\b/].d()/g; - # named field C construct is invalid (C++ would initialize first union member) - # and we replace unions by struct + accessor anyway - s/{ *?.i *?= *?{/{{/g; - # volatile declaration of static const global variables poses problem with the wrapper types - s/volatile //g; - # Now substitute the base types by their Simple/Double/Extended aliases or wrapper - s/long double/Extended/g; # before double - s/\bdouble\b/Double/g; - s/\bfloat\b/Simple/g; - # Replace problematic int += double - s/E(X|Y|Z)(.*?=.*?)ONE/E${1}${2}1/g; - # problematic ?: operator with different types. This simple check catches all problematic occurences -# if (/\?(.*?(\b0\.|\.0).*?:.*?|.*?:.*?(\b0\.|\.0).*?);/) { -# print "$f => ?$1;\n"; -# } - if (/\?(.*?):(.*?)\b(0\.0|10\.0|1\.0)\b/) { - my $type = ""; - if ($f =~ /flt-32/) {$type = "Simple";} - if ($f =~ /dbl-64/) {$type = "Double";} - if ($f =~ /ldbl-96/) {$type = "Extended";} - s/\?(.*?):(.*?)\b(0\.0|10\.0|1\.0)\b/?$1:$2$type($3)/g; - } - my $type = ""; - my $flit = ""; - if ($f =~ /flt-32/) {$type = "Simple"; $flit = "f";} - if ($f =~ /dbl-64/) {$type = "Double"; $flit = "";} - if ($f =~ /ldbl-96/) {$type = "Extended"; $flit = "l";} - # replace problematic mixed-type ?: operators where an int and a float are used as arguments, incompatible with wrappers - if (/\?(.*?)\b(0\.0|1\.0)\b(.*?):(.*?)/) { - s/\?(.*?)\b(0\.0|1\.0)\b(.*?):(.*?)/?$1$type($2)$3:$4/g; - } - # These special cases are OK because no other ?: pattern use them in the 3 subdirs - s/\?0:/?Double(0.0):/; - s/:0;/:Double(0.0);/; - # protect the new symbol names by namespace to avoid any conflict with system libm - if (((/#ifdef __STDC__/) || (/.*? (__|mcr|ss32)[a-z,A-Z,_,0-9]*?\(.*?{$/) || (/Double (atan2Mp|atanMp|slow|tanMp|__exp1|__ieee754_remainder|__ieee754_sqrt)/) || (/^(Simple|Double|Extended|void|int)$/) || ((/^#ifdef BIG_ENDI$/) && ($f =~ /(uatan|mpa2|mpexp|atnat|sincos32)/)) || (/^#define MM 5$/) || (/^void __mp(log|sqrt|exp|atan)\(/) || (/^int __(b|mp)ranred\(/)) && ($opened_namespace == 0)) { - $_ = "namespace streflop_libm {\n".$_; - $opened_namespace = 1; - } - - # Prevent type promotion for native aliases - # Ex: promotion would cause computations like y = 0.5 * x to be done in double for x,y float, then cast back to float - # We want the whole computation done in float, not temporary switching to double. - # In some case the FPU internal precision is enough to mask the problem, but for SSE for example, the float/double - # are using different instructions and the problem cannot be ignored (in these cases, there are differences from - # soft float implementation) - # Cannot replace by s/blah/$type($1)/g; because of static order initialization fiasco with wrapper types - # So use next best option to use litteral type specification - # => this solves the problem for native types - # => wrappers are OK thanks to the redefinitions of the operators - s/\b((\d+\.\d*|\d*\.\d+)((e|E)[-+]?\d+)?)(f|F|l|L)?\b/$1$flit/g; - $content.=$_; - } - close FILE; - # multi-line spanning regexp - $content =~ s/union ?{(.*?);.*?Double.*?}/struct {\n$xdaccessor$1;}/sg; - # close opened namespace - if ($opened_namespace==1) { - $content .= "}\n"; - } - open(FILE,">$f"); - print FILE $importNotice; - print FILE $content; - close FILE; -} - - -# ieee754.h union+accessor -open(FILE,") { - # Comment out decls sections - if (/.*?__.*?_DECLS.*/) {$_="//".$_;} - # Convert all includes to local files - s/^([ \t]*)#include([ \t]*)<(.*)>(.*)/#$1include$2\"$3\"$4/g; - # insert our own bridge - if (/^#define _IEEE754_H.*/) { - $_.="#include \"../streflop_libm_bridge.h\"\n\n"; - } - # Protect the Simple section by a #define - if (/.*?ieee754_float.*?/) { - $_ = "#if defined(LIBM_COMPILING_FLT32)\n".$_; - } - if (/.*?IEEE754_FLOAT_BIAS.*?/) { - $_ = $_."\n#endif\n"; - } - # Protect the Double section by a #define - if (/.*?ieee754_double.*?/) { - $_ = "#if defined(LIBM_COMPILING_DBL64)\n".$_; - } - if (/.*?IEEE754_DOUBLE_BIAS.*?/) { - $_ = $_."\n#endif\n"; - } - # Protect the Extended section by a #define - if (/.*?ieee854_long_double.*?/) { - $_ = "#if defined(Extended)\n".$_; - $_ = "#if defined(LIBM_COMPILING_LDBL96)\n".$_; - } - if (/.*?IEEE854_LONG_DOUBLE_BIAS.*?/) { - $_ = $_."\n#endif\n"; - $_ = $_."\n#endif\n"; - } - $content.=$_; -} -$ieeeAccessorSimple= - "inline Simple& f() {return SIMPLE_FROM_INT_PTR(&storage[0]);}\n" -."inline const Simple& f() const {return CONST_SIMPLE_FROM_INT_PTR(&storage[0]);}\n"; -$ieeeAccessorDouble= - "inline Double& d() {return DOUBLE_FROM_INT_PTR(&storage[0]);}\n" -."inline const Double& d() const {return CONST_DOUBLE_FROM_INT_PTR(&storage[0]);}\n"; -$ieeeAccessorExtended= - "inline Extended& d() {return EXTENDED_FROM_INT_PTR(&storage[0]);}\n" -."inline const Extended& d() const {return CONST_EXTENDED_FROM_INT_PTR(&storage[0]);}\n"; - -# multi-line spanning regexp -$content =~ s/union(.*?ieee854_long_double.*?){.*?;/union$1\{\nint storage[sizeof(long double)\/sizeof(int)];\n$ieeeAccessorExtended/sg; -$content =~ s/union(.*?ieee754_double.*?){.*?;/union$1\{\nint storage[sizeof(double)\/sizeof(int)];\n$ieeeAccessorDouble/sg; -$content =~ s/union(.*?ieee754_float.*?){.*?;/union$1\{\nint storage[sizeof(float)\/sizeof(int)];\n$ieeeAccessorSimple/sg; -close FILE; -open(FILE,">headers/ieee754.h"); -print FILE $importNotice; -print FILE $content; -close FILE; - -# math_private.h needs a special treatement to define the macros for the wrapper objects -# The macros will be defined separately -open(FILE,") { - # keep initial lines with header information and #define file protection - # skip all lines defining macros and unions - if (/^#define _MATH_PRIVATE_H_.*/) { - push @convert,$_; - push @convert,"\n/* import.pl: Skipped the macro definitions, keep only the declarations, converted to use streflop types (aliases or wrappers) */\n#include \"../streflop_libm_bridge.h\"\n\nnamespace streflop_libm {\n\n"; - # ensure strict separation of precision mode, each one does not have access to the other names - push @convert,"#ifdef LIBM_COMPILING_FLT32\n"; - # define wrappers as the libm would do in IEEE754 mode - push @convert,"#define __sqrtf __ieee754_sqrtf\n"; - push @convert,"#define fabsf __fabsf\n"; - push @convert,"#define copysignf __copysignf\n"; - # add missing defines - push @convert,"extern Simple __log1pf(Simple x);\n"; - push @convert,"extern Simple __fabsf(Simple x);\n"; - push @convert,"extern Simple __atanf(Simple x);\n"; - push @convert,"extern Simple __expm1f(Simple x);\n"; - push @convert,"extern int __isinff(Simple x);\n"; - push @convert,"extern Simple __rintf(Simple x);\n"; - push @convert,"extern Simple __cosf(Simple x);\n"; - push @convert,"extern void __sincosf (Simple x, Simple *sinx, Simple *cosx);\n"; - push @convert,"extern Simple __floorf(Simple x);\n"; - push @convert,"extern Simple __scalbnf (Simple x, int n);\n"; - push @convert,"extern Simple __frexpf(Simple x, int *eptr);\n"; - push @convert,"extern Simple __ldexpf(Simple value, int exp);\n"; - push @convert,"extern int __finitef(Simple x);\n"; - push @convert,"#endif\n\n"; - push @convert,"#ifdef LIBM_COMPILING_DBL64\n"; - push @convert,"#define __sqrt __ieee754_sqrt\n"; - push @convert,"#define fabs __fabs\n"; - push @convert,"#define copysign __copysign\n"; - push @convert,"extern Double __log1p(Double x);\n"; - push @convert,"extern Double __fabs(Double x);\n"; - push @convert,"extern Double atan(Double x);\n"; - push @convert,"extern Double __expm1(Double x);\n"; - push @convert,"extern int __isinf(Double x);\n"; - push @convert,"extern Double __rint(Double x);\n"; - push @convert,"extern Double __cos(Double x);\n"; - push @convert,"extern void __sincos (Double x, Double *sinx, Double *cosx);\n"; - push @convert,"extern Double __floor(Double x);\n"; - push @convert,"extern Double __scalbn(Double x, int n);\n"; - push @convert,"extern Double __frexp(Double x, int *eptr);\n"; - push @convert,"extern Double __ldexp(Double value, int exp);\n"; - push @convert,"extern int __finite(Double x);\n"; - push @convert,"#endif\n\n"; - push @convert,"#ifdef LIBM_COMPILING_LDBL96\n"; - push @convert,"#if defined(Extended)\n"; - push @convert,"#define fabsl __fabsl\n"; - push @convert,"extern Extended __cosl(Extended x);\n"; - push @convert,"extern Extended __sinl(Extended x);\n"; - push @convert,"extern Extended __fabsl(Extended x);\n"; - push @convert,"#endif\n"; - push @convert,"#endif\n"; - push @convert,"\n"; - $flag = 0; - } - if (/^extern(.*)/) { - $flag = 1; - } - if ($flag==0) {next MPRIV_LOOP;} - - - - # Now substitute the base types by their Simple/Double/Extended aliases or wrapper - s/\blong double\b/Extended/g; # before double - s/\bdouble\b/Double/g; - s/\bfloat\b/Simple/g; - # Protect the Extended section by a #define - if (/.*?elementary Extended functions.*?/) { - $_ = "#if defined(Extended)\n".$_; - } - if (/.*?functions of the IBM.*?/) { - $_ = "#endif\n\n".$_; - } - # remove the inline aliases - s/__GNUC_PREREQ \(.*?\)/0/; - # end namespace protection - if (/^#endif.*_MATH_PRIVATE_H_/) { - $_ = "}\n\n".$_; - } - - # now insert protection for symbols separation - if (/^extern(.*)/) { - $remline = $1; - if ($remline =~ /Extended/) { - if ($precisionMode ne "Extended") { - if ($precisionMode ne "none") {$_ = "#endif\n".$_;} - $_ = "#ifdef LIBM_COMPILING_LDBL96\n".$_; - $precisionMode = "Extended"; - } - } - elsif ($remline =~ /Double/) { - if ($precisionMode ne "Double") { - if ($precisionMode ne "none") {$_ = "#endif\n".$_;} - $_ = "#ifdef LIBM_COMPILING_DBL64\n".$_; - $precisionMode = "Double"; - } - } - elsif ($remline =~ /Simple/) { - if ($precisionMode ne "Simple") { - if ($precisionMode ne "none") {$_ = "#endif\n".$_;} - $_ = "#ifdef LIBM_COMPILING_FLT32\n".$_; - $precisionMode = "Simple"; - } - } - } else { - $line = $_; - chomp $line; - if (($line =~ /^(\s)*$/) && ($precisionMode ne "none")) { - $_ = "#endif\n".$_; - $precisionMode = "none"; - } - } - - push @convert,$_; -} -close FILE; -open(FILE,">headers/math_private.h"); -print FILE $importNotice; -print FILE @convert; -close FILE; - -# features.h is nearly ready, just do not include more external defs -open(FILE,") { - # commment out external includes - s,(.*?#.*?include.*),//$1,; - push @convert,$_; -} -close FILE; -open(FILE,">headers/features.h"); -print FILE $importNotice; -print FILE @convert; -close FILE; - -# headers/endian.h -open(FILE,") { - # change machine specific bits/endian by streflop configuration - if (//) { - s,,\"../streflop_libm_bridge.h\",; - #keep features.h, but locally - } elsif (//) { - s,,"features.h",; - } else { - # commment out all other external includes - s,(.*?#.*?include.*),//$1,; - } - #unconditional definition of endian things - if (/defined _LIBC/) { - $_ = "#if 1\n//".$_; - } - push @convert,$_; -} -close FILE; -open(FILE,">headers/endian.h"); -print FILE $importNotice; -print FILE @convert; -close FILE; - - -# include the bridge from mpa.h -open(FILE,") { - # special case - s/->d\(\)/->mantissa/g; - $content.=$_; -} -close FILE; -$mpAccessor= - "inline Double& d(int idx) {return mantissa[idx];}\n" -."inline const Double& d(int idx) const {return mantissa[idx];}\n"; -# multi-line spanning regexp -$content =~ s/Double d\[(.*?)\].*?} mp_no/Double mantissa[$1];\n$mpAccessor} mp_no/sg; -open(FILE,">dbl-64/mpa.h"); -print FILE $content."}\n"; # also close namespace -close FILE; - -# Generate specific Makefiles -$parentMakefile=""; -foreach $dir ("flt-32", "dbl-64", "ldbl-96") { - @objFiles = glob("$dir/*.cpp"); - $parentObjects = "$dir-objects ="; - foreach $f (@objFiles) { - $f =~ s/\.cpp$/.o/; - $parentObjects .= " libm/$f"; - $f =~ s/^$dir\///; - } - open(FILE, ">$dir/Makefile"); - my $DIR = uc($dir); - $DIR =~ s/\-//; - print FILE "# Makefile automatically generated by import.pl\n" - ."include ../../Makefile.common\n" - ."CPPFLAGS += -I../headers -DLIBM_COMPILING_$DIR=1\n" - ."all: @objFiles\n" - ."\techo '$dir done!'\n"; - close FILE; - $parentMakefile .= $parentObjects."\n\n"; -} - -# generate Makefile rule in parent directory -@projectFiles = glob("flt-32/* dbl-64/* ldbl-96/* headers/*"); -foreach $f (@projectFiles) {$f = " libm/$f";} -open(FILE, ">../Makefile.libm_objects"); -print FILE "# Makefile automatically generated by libm/import.pl. Do not edit.\n\n" - .$parentMakefile - ."\nlibm-src ="; -print FILE @projectFiles; -print FILE "\n"; -close FILE; diff --git a/source/shared_lib/sources/streflop/libm/w_expf.c b/source/shared_lib/sources/streflop/libm/w_expf.c index a1cc988d6..a42aaf78c 100644 --- a/source/shared_lib/sources/streflop/libm/w_expf.c +++ b/source/shared_lib/sources/streflop/libm/w_expf.c @@ -1,7 +1,25 @@ /* The original libm wrapper may call the double implementation and declares double constants. This wrapper purely wraps the float version -*/ + + Copyright (C) 1997, 1998 Free Software Foundation, Inc. + This file is part of the GNU C Library. + Contributed by Ulrich Drepper , 1997. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1f of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA + 02111-1307 USA. */ #include "math_private.h" diff --git a/source/shared_lib/sources/streflop/softfloat/softfloat.cpp b/source/shared_lib/sources/streflop/softfloat/softfloat.cpp index 31f32bcf0..96cddecfd 100644 --- a/source/shared_lib/sources/streflop/softfloat/softfloat.cpp +++ b/source/shared_lib/sources/streflop/softfloat/softfloat.cpp @@ -3,10 +3,9 @@ PROMINENT NOTICE: THIS IS A DERIVATIVE WORK OF THE ORIGINAL SOFTFLOAT CODE CHANGES: Renamed file to softfloat.cpp Make use of namespaces -Nicolas Brodu, 2006 -=============================================================================*/ -/*============================================================================ + Copyright 2006 Nicolas Brodu + 2012 Mark Vejvoda This C source file is part of the SoftFloat IEC/IEEE Floating-point Arithmetic Package, Release 2b. diff --git a/source/tools/convert_faction_xml2html/convert_faction_xml2html.pl b/source/tools/convert_faction_xml2html/convert_faction_xml2html.pl index a86549aa4..8dffcf3af 100755 --- a/source/tools/convert_faction_xml2html/convert_faction_xml2html.pl +++ b/source/tools/convert_faction_xml2html/convert_faction_xml2html.pl @@ -2,6 +2,7 @@ # script to create HTML-pages and diagrams from the glest-factions techtree # 20110120, bugs & feedback to olaus@rupp.de +# Copyright 2011 olaus # license: GPLv3 or newer our $version = "0.8 beta"; diff --git a/source/tools/convert_faction_xml2html/setupDeps.sh b/source/tools/convert_faction_xml2html/setupDeps.sh index 50024adf6..eec38cdfd 100755 --- a/source/tools/convert_faction_xml2html/setupDeps.sh +++ b/source/tools/convert_faction_xml2html/setupDeps.sh @@ -1,4 +1,10 @@ #!/bin/sh +# +# Use this script to install build dependencies on a number of Linux platforms +# ---------------------------------------------------------------------------- +# Originally written by Mark Vejvoda +# Rewritten by Tom Reynolds +# Copyright (c) 2012 Mark Vejvoda, Tom Reynolds under GNU GPL v3.0 OSTYPE=`uname -m` echo "Detected distro: [$OSTYPE]" diff --git a/source/tools/convert_faction_xml2html/xpath.pl b/source/tools/convert_faction_xml2html/xpath.pl index fc71dac75..64602ac03 100755 --- a/source/tools/convert_faction_xml2html/xpath.pl +++ b/source/tools/convert_faction_xml2html/xpath.pl @@ -1,5 +1,7 @@ #!/usr/bin/perl -w +# Copyright 2011 olaus +# license: GPLv3 or newer # show xpath in file, google xpath for syntax diff --git a/source/tools/glexemel/g3dv4.h b/source/tools/glexemel/g3dv4.h index b5062d34e..8738adcd5 100644 --- a/source/tools/glexemel/g3dv4.h +++ b/source/tools/glexemel/g3dv4.h @@ -1,14 +1,18 @@ +// ============================================================== +// This file is part of Glest Shared Library (www.glest.org) +// +// Copyright (C) 2001-2008 Martiño Figueroa +// +// You can redistribute this code and/or modify it under +// the terms of the GNU General Public License as published +// by the Free Software Foundation; either version 2 of the +// License, or (at your option) any later version +// ============================================================== /** * File: g3dv4.h * * Description: * Data types used by the G3D format. - * - * This file is copied from portions of the Glest project: - * http://www.glest.org - * - * This file may be distributed under the terms of the GNU General Public - * License. */ #ifndef G3DV4_HEADER diff --git a/source/tools/merge_new_language_vars/merge_new_language_vars.pl b/source/tools/merge_new_language_vars/merge_new_language_vars.pl index dce9a2706..fbfc0abe7 100644 --- a/source/tools/merge_new_language_vars/merge_new_language_vars.pl +++ b/source/tools/merge_new_language_vars/merge_new_language_vars.pl @@ -1,12 +1,10 @@ #!/usr/bin/perl -w - # utility for megaglest, probably works for glest and GAE too # merge new language variables from the main language (english) to all other language files -# by olaus, 20101222 +# Copyright 2011 olaus, 20101222 # license: GPL v3 - ########################################## use strict;