├── .gitignore ├── .gitmodules ├── CONTRIBUTING.md ├── LICENSE.GPL2 ├── README.md ├── build.gradle ├── cpp ├── CMakeLists.txt ├── GetGitRevisionDescription.cmake ├── GetGitRevisionDescription.cmake.in ├── jbcrypto │ └── jbcrypto.cpp ├── lz4.cmake ├── lzo.cmake ├── lzo │ ├── AUTHORS │ ├── Android.mk │ ├── B │ │ ├── 00README.TXT │ │ ├── clean.bat │ │ ├── done.bat │ │ ├── dos32 │ │ │ ├── bc_pp.bat │ │ │ ├── dj2.bat │ │ │ ├── dj2.opt │ │ │ ├── dm.bat │ │ │ ├── emx.bat │ │ │ ├── highc.bat │ │ │ ├── highc.rsp │ │ │ ├── ndp.bat │ │ │ ├── ndp.rsp │ │ │ ├── sc.bat │ │ │ ├── wc.bat │ │ │ └── zc.bat │ │ ├── generic │ │ │ ├── Makefile │ │ │ ├── build.sh │ │ │ ├── build_freestanding.sh │ │ │ ├── build_gcc.sh │ │ │ └── clean.sh │ │ ├── os2 │ │ │ ├── emx.bat │ │ │ ├── wc.bat │ │ │ └── zc.bat │ │ ├── prepare.bat │ │ ├── src.rsp │ │ ├── unset.bat │ │ ├── win32 │ │ │ ├── bc.bat │ │ │ ├── bc.rsp │ │ │ ├── cygwin.bat │ │ │ ├── cygwin.rsp │ │ │ ├── dm.bat │ │ │ ├── ic.bat │ │ │ ├── lccwin32.bat │ │ │ ├── mingw.bat │ │ │ ├── mwerks.bat │ │ │ ├── pellesc.bat │ │ │ ├── pgi.bat │ │ │ ├── pw32.bat │ │ │ ├── rsxnt.bat │ │ │ ├── sc.bat │ │ │ ├── vc.bat │ │ │ ├── vc.rsp │ │ │ ├── vc_dll.bat │ │ │ ├── vc_dll.def │ │ │ ├── wc.bat │ │ │ └── wc.rsp │ │ └── win64 │ │ │ ├── ic.bat │ │ │ ├── ic_dll.bat │ │ │ ├── vc.bat │ │ │ ├── vc.rsp │ │ │ ├── vc_dll.bat │ │ │ └── vc_dll.def │ ├── BUGS │ ├── CMakeLists.txt │ ├── COPYING │ ├── ChangeLog │ ├── INSTALL │ ├── Makefile.am │ ├── Makefile.in │ ├── NEWS │ ├── README │ ├── THANKS │ ├── aclocal.m4 │ ├── asm │ │ └── i386 │ │ │ ├── 00README.TXT │ │ │ ├── src │ │ │ ├── enter.ash │ │ │ ├── leave.ash │ │ │ ├── lzo1c_d.ash │ │ │ ├── lzo1c_s1.S │ │ │ ├── lzo1f_d.ash │ │ │ ├── lzo1f_f1.S │ │ │ ├── lzo1x_d.ash │ │ │ ├── lzo1x_f1.S │ │ │ ├── lzo1x_s1.S │ │ │ ├── lzo1y_f1.S │ │ │ ├── lzo1y_s1.S │ │ │ └── lzo_asm.h │ │ │ ├── src_gas │ │ │ ├── all │ │ │ │ └── asm_all.S │ │ │ ├── asminit.def │ │ │ ├── lzo1c_s1.S │ │ │ ├── lzo1f_f1.S │ │ │ ├── lzo1x_f1.S │ │ │ ├── lzo1x_s1.S │ │ │ ├── lzo1y_f1.S │ │ │ └── lzo1y_s1.S │ │ │ ├── src_masm │ │ │ ├── all │ │ │ │ └── asm_all.asm │ │ │ ├── asminit.def │ │ │ ├── lzo1c_s1.asm │ │ │ ├── lzo1f_f1.asm │ │ │ ├── lzo1x_f1.asm │ │ │ ├── lzo1x_s1.asm │ │ │ ├── lzo1y_f1.asm │ │ │ └── lzo1y_s1.asm │ │ │ └── src_nasm │ │ │ ├── all │ │ │ └── asm_all.asm │ │ │ ├── asminit.def │ │ │ ├── lzo1c_s1.asm │ │ │ ├── lzo1f_f1.asm │ │ │ ├── lzo1x_f1.asm │ │ │ ├── lzo1x_s1.asm │ │ │ ├── lzo1y_f1.asm │ │ │ └── lzo1y_s1.asm │ ├── autoconf │ │ ├── ar-lib │ │ ├── compile │ │ ├── config.guess │ │ ├── config.rpath │ │ ├── config.sub │ │ ├── depcomp │ │ ├── install-sh │ │ ├── local.m4 │ │ ├── ltmain.sh │ │ ├── mdate-sh │ │ ├── missing │ │ ├── mkinstalldirs │ │ ├── py-compile │ │ ├── shtool │ │ └── ylwrap │ ├── config.hin │ ├── configure │ ├── configure.ac │ ├── doc │ │ ├── LZO.FAQ │ │ ├── LZO.TXT │ │ ├── LZOAPI.TXT │ │ └── LZOTEST.TXT │ ├── examples │ │ ├── dict.c │ │ ├── lzopack.c │ │ ├── overlap.c │ │ ├── portab.h │ │ ├── portab_a.h │ │ ├── precomp.c │ │ ├── precomp2.c │ │ └── simple.c │ ├── include │ │ └── lzo │ │ │ ├── lzo1.h │ │ │ ├── lzo1a.h │ │ │ ├── lzo1b.h │ │ │ ├── lzo1c.h │ │ │ ├── lzo1f.h │ │ │ ├── lzo1x.h │ │ │ ├── lzo1y.h │ │ │ ├── lzo1z.h │ │ │ ├── lzo2a.h │ │ │ ├── lzo_asm.h │ │ │ ├── lzoconf.h │ │ │ ├── lzodefs.h │ │ │ └── lzoutil.h │ ├── lzo2.pc.cmakein │ ├── lzo2.pc.in │ ├── lzotest │ │ ├── asm.h │ │ ├── db.h │ │ ├── lzotest.c │ │ ├── wrap.h │ │ └── wrapmisc.h │ ├── minilzo │ │ ├── Makefile.minilzo │ │ ├── README.LZO │ │ ├── minilzo.c │ │ ├── minilzo.h │ │ └── testmini.c │ ├── src │ │ ├── compr1b.h │ │ ├── compr1c.h │ │ ├── config1.h │ │ ├── config1a.h │ │ ├── config1b.h │ │ ├── config1c.h │ │ ├── config1f.h │ │ ├── config1x.h │ │ ├── config1y.h │ │ ├── config1z.h │ │ ├── config2a.h │ │ ├── lzo1.c │ │ ├── lzo1_99.c │ │ ├── lzo1_cm.ch │ │ ├── lzo1_d.ch │ │ ├── lzo1a.c │ │ ├── lzo1a_99.c │ │ ├── lzo1a_cm.ch │ │ ├── lzo1a_cr.ch │ │ ├── lzo1a_de.h │ │ ├── lzo1b_1.c │ │ ├── lzo1b_2.c │ │ ├── lzo1b_3.c │ │ ├── lzo1b_4.c │ │ ├── lzo1b_5.c │ │ ├── lzo1b_6.c │ │ ├── lzo1b_7.c │ │ ├── lzo1b_8.c │ │ ├── lzo1b_9.c │ │ ├── lzo1b_99.c │ │ ├── lzo1b_9x.c │ │ ├── lzo1b_c.ch │ │ ├── lzo1b_cc.c │ │ ├── lzo1b_cc.h │ │ ├── lzo1b_cm.ch │ │ ├── lzo1b_cr.ch │ │ ├── lzo1b_d.ch │ │ ├── lzo1b_d1.c │ │ ├── lzo1b_d2.c │ │ ├── lzo1b_de.h │ │ ├── lzo1b_r.ch │ │ ├── lzo1b_rr.c │ │ ├── lzo1b_sm.ch │ │ ├── lzo1b_tm.ch │ │ ├── lzo1b_xx.c │ │ ├── lzo1c_1.c │ │ ├── lzo1c_2.c │ │ ├── lzo1c_3.c │ │ ├── lzo1c_4.c │ │ ├── lzo1c_5.c │ │ ├── lzo1c_6.c │ │ ├── lzo1c_7.c │ │ ├── lzo1c_8.c │ │ ├── lzo1c_9.c │ │ ├── lzo1c_99.c │ │ ├── lzo1c_9x.c │ │ ├── lzo1c_cc.c │ │ ├── lzo1c_cc.h │ │ ├── lzo1c_d1.c │ │ ├── lzo1c_d2.c │ │ ├── lzo1c_rr.c │ │ ├── lzo1c_xx.c │ │ ├── lzo1f_1.c │ │ ├── lzo1f_9x.c │ │ ├── lzo1f_d.ch │ │ ├── lzo1f_d1.c │ │ ├── lzo1f_d2.c │ │ ├── lzo1x_1.c │ │ ├── lzo1x_1k.c │ │ ├── lzo1x_1l.c │ │ ├── lzo1x_1o.c │ │ ├── lzo1x_9x.c │ │ ├── lzo1x_c.ch │ │ ├── lzo1x_d.ch │ │ ├── lzo1x_d1.c │ │ ├── lzo1x_d2.c │ │ ├── lzo1x_d3.c │ │ ├── lzo1x_o.c │ │ ├── lzo1x_oo.ch │ │ ├── lzo1y_1.c │ │ ├── lzo1y_9x.c │ │ ├── lzo1y_d1.c │ │ ├── lzo1y_d2.c │ │ ├── lzo1y_d3.c │ │ ├── lzo1y_o.c │ │ ├── lzo1z_9x.c │ │ ├── lzo1z_d1.c │ │ ├── lzo1z_d2.c │ │ ├── lzo1z_d3.c │ │ ├── lzo2a_9x.c │ │ ├── lzo2a_d.ch │ │ ├── lzo2a_d1.c │ │ ├── lzo2a_d2.c │ │ ├── lzo_conf.h │ │ ├── lzo_crc.c │ │ ├── lzo_dict.h │ │ ├── lzo_dll.ch │ │ ├── lzo_func.h │ │ ├── lzo_init.c │ │ ├── lzo_mchw.ch │ │ ├── lzo_ptr.c │ │ ├── lzo_ptr.h │ │ ├── lzo_str.c │ │ ├── lzo_supp.h │ │ ├── lzo_swd.ch │ │ ├── lzo_util.c │ │ ├── stats1a.h │ │ ├── stats1b.h │ │ └── stats1c.h │ ├── tests │ │ ├── align.c │ │ ├── chksum.c │ │ ├── promote.c │ │ └── sizes.c │ └── util │ │ ├── check.sh │ │ ├── checkasm.sh │ │ ├── notime.pl │ │ ├── overlap.sh │ │ ├── shortf.pl │ │ ├── table.pl │ │ └── uncompr.pl ├── minivpn │ └── minivpn.c ├── openssl.cmake ├── openvpn-config │ ├── config.h │ └── openvpn-plugin.h ├── opvpnutil │ ├── jniglue.c │ ├── jniglue.h │ ├── scan_ifs.c │ └── sslspeed.c └── tools.cmake └── src └── main ├── AndroidManifest.xml ├── aidl ├── com │ └── privateinternetaccess │ │ └── android │ │ ├── IPIAServiceStatus.aidl │ │ └── IPIAStatusCallbacks.aidl └── de │ └── blinkt │ └── openvpn │ └── core │ ├── ConnectionStatus.aidl │ ├── IOpenVPNServiceInternal.aidl │ ├── IServiceStatus.aidl │ ├── IStatusCallbacks.aidl │ ├── LogItem.aidl │ └── TrafficHistory.aidl ├── importicsopenvpn.sh ├── java ├── com │ └── privateinternetaccess │ │ └── android │ │ ├── PIACallbacks.java │ │ ├── PIAKillSwitchStatus.java │ │ ├── PIAOpenVPNTunnelLibrary.java │ │ ├── PIAStatusListener.java │ │ └── PIAStatusService.java └── de │ └── blinkt │ └── openvpn │ ├── VpnProfile.java │ ├── activities │ └── DisconnectVPN.java │ └── core │ ├── CIDRIP.java │ ├── ConfigParser.java │ ├── Connection.java │ ├── ConnectionStatus.java │ ├── DeviceStateReceiver.java │ ├── ICSOpenVPNApplication.java │ ├── KillSwitch.java │ ├── LogFileHandler.java │ ├── LogItem.java │ ├── LollipopDeviceStateListener.java │ ├── MultiPreferences.java │ ├── MultiProvider.java │ ├── NativeUtils.java │ ├── NetworkSpace.java │ ├── OpenVPNManagement.java │ ├── OpenVPNService.java │ ├── OpenVPNStatusService.java │ ├── OpenVPNThread.java │ ├── OpenVpnManagementThread.java │ ├── OrbotHelper.java │ ├── PRNGFixes.java │ ├── PasswordCache.java │ ├── PreferenceInteractor.java │ ├── Preferences.java │ ├── ProfileManager.java │ ├── ProxyDetection.java │ ├── StatusListener.java │ ├── TrafficHistory.java │ ├── VPNLaunchHelper.java │ ├── VPNNotifications.java │ ├── VpnStatus.java │ └── X509Utils.java └── res ├── values-b+ar └── strings.xml ├── values-b+da └── strings.xml ├── values-b+de └── strings.xml ├── values-b+es-rMX └── strings.xml ├── values-b+fr └── strings.xml ├── values-b+it └── strings.xml ├── values-b+ja └── strings.xml ├── values-b+ko └── strings.xml ├── values-b+nb └── strings.xml ├── values-b+nl └── strings.xml ├── values-b+pl └── strings.xml ├── values-b+pt-rBR └── strings.xml ├── values-b+ru └── strings.xml ├── values-b+th └── strings.xml ├── values-b+tr └── strings.xml ├── values-b+zh-rCN └── strings.xml ├── values-b+zh-rTW └── strings.xml └── values ├── refs.xml ├── strings-icsopenvpn.xml └── strings.xml /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | build 3 | libs 4 | obj 5 | ovpnlibs 6 | .externalNativeBuild 7 | .cxx/ 8 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "cpp/openssl"] 2 | path = cpp/openssl 3 | url = https://github.com/schwabe/platform_external_openssl.git 4 | [submodule "cpp/openvpn"] 5 | path = cpp/openvpn 6 | url = https://github.com/pia-foss/mobile-android-openvpn.git 7 | [submodule "cpp/lz4"] 8 | path = cpp/lz4 9 | url = https://github.com/lz4/lz4.git 10 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contribution Guidelines 2 | Private Internet Access welcomes community contributions, and are always looking for ways in which to improve. Please take a look at our contribution guidelines, and get involved with the PIA community. 3 | 4 | ## Bugs and Issues 5 | Have you found a bug? Is our software behaving in an unexpected way? Please check the open issues for duplicates -- perhaps a fix is already in development, or maybe a solution has already been published. 6 | If not then please submit a bug report using our [template](/.github/ISSUE_TEMPLATE.md) 7 | 8 | ## Feature Requests 9 | Feature requests can also be submitted as issues. We’d be grateful if you checked for duplicates also before submitting a feature request. 10 | 11 | ## Working with our Code 12 | * Fork the repository. Make sure to keep your repository synced with the source repo. 13 | * When you are ready to start working on a new feature, cut a new branch from “develop” with the prefix “feature/” (e.g. “feature/name-of-feature”). 14 | * Refer to the [README](/README.md) for instructions on how to install and build. 15 | 16 | ## Making Pull Requests 17 | * Sync the develop branch in your fork with the develop branch in the source repo. 18 | * Make your pull request from “feature” in your fork to “develop” in the source. 19 | * Use short and concise commit messages. 20 | * Lint your code before committing and making a pull request. 21 | * Write unit tests for new features and make sure all tests are passing. 22 | * If your pull request contains multiple commits or commits that are not meaningful, consider squashing them. 23 | -------------------------------------------------------------------------------- /build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | repositories { 4 | jcenter() 5 | google() 6 | } 7 | 8 | android { 9 | 10 | sourceSets { 11 | main { 12 | assets.srcDirs = ['src/main/assets', 'build/ovpnassets'] 13 | jniLibs.srcDirs = ['ovpnlibs/jniLibs'] 14 | 15 | jni.srcDirs = [] //disable automatic ndk-build 16 | } 17 | } 18 | 19 | compileSdkVersion rootProject.compileSdkVersion 20 | buildToolsVersion rootProject.buildToolsVersion 21 | 22 | defaultConfig { 23 | minSdkVersion 16 24 | targetSdkVersion 34 25 | versionCode 1 26 | versionName "1.0" 27 | 28 | testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' 29 | 30 | externalNativeBuild { 31 | cmake { 32 | arguments '-DANDROID_TOOLCHAIN=clang', 33 | '-DANDROID_STL=c++_static' 34 | } 35 | } 36 | } 37 | buildTypes { 38 | release { 39 | minifyEnabled false 40 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 41 | } 42 | } 43 | 44 | externalNativeBuild { 45 | cmake { 46 | path "cpp/CMakeLists.txt" 47 | } 48 | } 49 | 50 | flavorDimensions "implementation" 51 | 52 | productFlavors { 53 | normal { 54 | dimension "implementation" 55 | buildConfigField 'boolean', 'openvpn3', 'true' 56 | } 57 | } 58 | ndkVersion '24.0.8215888' 59 | } 60 | 61 | dependencies { 62 | implementation 'com.android.support:support-annotations:' + rootProject.supportLibVersion 63 | implementation 'com.android.support:appcompat-v7:' + rootProject.supportLibVersion 64 | 65 | implementation 'com.madgag.spongycastle:core:1.54.0.0' 66 | implementation 'junit:junit:4.12' 67 | } 68 | 69 | // Ensure native build is run before assets, so assets are ready to be merged into the apk 70 | android.libraryVariants.all { variant -> 71 | variant.mergeAssets.dependsOn(variant.externalNativeBuildTasks) 72 | } 73 | -------------------------------------------------------------------------------- /cpp/GetGitRevisionDescription.cmake.in: -------------------------------------------------------------------------------- 1 | # From https://raw.githubusercontent.com/rpavlik/cmake-modules/master/GetGitRevisionDescription.cmake.in 2 | # 3 | # Internal file for GetGitRevisionDescription.cmake 4 | # 5 | # Requires CMake 2.6 or newer (uses the 'function' command) 6 | # 7 | # Original Author: 8 | # 2009-2010 Ryan Pavlik 9 | # http://academic.cleardefinition.com 10 | # Iowa State University HCI Graduate Program/VRAC 11 | # 12 | # Copyright Iowa State University 2009-2010. 13 | # Distributed under the Boost Software License, Version 1.0. 14 | # (See accompanying file LICENSE_1_0.txt or copy at 15 | # http://www.boost.org/LICENSE_1_0.txt) 16 | 17 | set(HEAD_HASH) 18 | 19 | file(READ "@HEAD_FILE@" HEAD_CONTENTS LIMIT 1024) 20 | 21 | string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS) 22 | if(HEAD_CONTENTS MATCHES "ref") 23 | # named branch 24 | string(REPLACE "ref: " "" HEAD_REF "${HEAD_CONTENTS}") 25 | if(EXISTS "@GIT_DIR@/${HEAD_REF}") 26 | configure_file("@GIT_DIR@/${HEAD_REF}" "@GIT_DATA@/head-ref" COPYONLY) 27 | else() 28 | configure_file("@GIT_DIR@/packed-refs" "@GIT_DATA@/packed-refs" COPYONLY) 29 | file(READ "@GIT_DATA@/packed-refs" PACKED_REFS) 30 | if(${PACKED_REFS} MATCHES "([0-9a-z]*) ${HEAD_REF}") 31 | set(HEAD_HASH "${CMAKE_MATCH_1}") 32 | endif() 33 | endif() 34 | else() 35 | # detached HEAD 36 | configure_file("@GIT_DIR@/HEAD" "@GIT_DATA@/head-ref" COPYONLY) 37 | endif() 38 | 39 | if(NOT HEAD_HASH) 40 | file(READ "@GIT_DATA@/head-ref" HEAD_HASH LIMIT 1024) 41 | string(STRIP "${HEAD_HASH}" HEAD_HASH) 42 | endif() 43 | -------------------------------------------------------------------------------- /cpp/lz4.cmake: -------------------------------------------------------------------------------- 1 | set(lz4_srcs 2 | lz4.c 3 | ) 4 | 5 | PREPEND(lz4_src_with_path "lz4/lib/" ${lz4_srcs}) 6 | add_library(lz4 ${lz4_src_with_path}) 7 | target_include_directories(lz4 PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/lz4/lib") -------------------------------------------------------------------------------- /cpp/lzo.cmake: -------------------------------------------------------------------------------- 1 | # Lzo's own cmake is rather throublesome 2 | 3 | set(lzo_srcs 4 | lzo1.c 5 | lzo1_99.c 6 | lzo1a.c 7 | lzo1a_99.c 8 | lzo1b_1.c 9 | lzo1b_2.c 10 | lzo1b_3.c 11 | lzo1b_4.c 12 | lzo1b_5.c 13 | lzo1b_6.c 14 | lzo1b_7.c 15 | lzo1b_8.c 16 | lzo1b_9.c 17 | lzo1b_99.c 18 | lzo1b_9x.c 19 | lzo1b_cc.c 20 | lzo1b_d1.c 21 | lzo1b_d2.c 22 | lzo1b_rr.c 23 | lzo1b_xx.c 24 | lzo1c_1.c 25 | lzo1c_2.c 26 | lzo1c_3.c 27 | lzo1c_4.c 28 | lzo1c_5.c 29 | lzo1c_6.c 30 | lzo1c_7.c 31 | lzo1c_8.c 32 | lzo1c_9.c 33 | lzo1c_99.c 34 | lzo1c_9x.c 35 | lzo1c_cc.c 36 | lzo1c_d1.c 37 | lzo1c_d2.c 38 | lzo1c_rr.c 39 | lzo1c_xx.c 40 | lzo1f_1.c 41 | lzo1f_9x.c 42 | lzo1f_d1.c 43 | lzo1f_d2.c 44 | lzo1x_1.c 45 | lzo1x_1k.c 46 | lzo1x_1l.c 47 | lzo1x_1o.c 48 | lzo1x_9x.c 49 | lzo1x_d1.c 50 | lzo1x_d2.c 51 | lzo1x_d3.c 52 | lzo1x_o.c 53 | lzo1y_1.c 54 | lzo1y_9x.c 55 | lzo1y_d1.c 56 | lzo1y_d2.c 57 | lzo1y_d3.c 58 | lzo1y_o.c 59 | lzo1z_9x.c 60 | lzo1z_d1.c 61 | lzo1z_d2.c 62 | lzo1z_d3.c 63 | lzo2a_9x.c 64 | lzo2a_d1.c 65 | lzo2a_d2.c 66 | lzo_crc.c 67 | lzo_init.c 68 | lzo_ptr.c 69 | lzo_str.c 70 | lzo_util.c 71 | ) 72 | 73 | PREPEND(lzo_src_with_path "lzo/src" ${lzo_srcs}) 74 | add_library(lzo ${lzo_src_with_path}) 75 | target_include_directories(lzo PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/lzo/include") 76 | if (${ANDROID_ABI} STREQUAL "armeabi-v7a") 77 | target_compile_options(lzo PRIVATE -O0) 78 | endif() -------------------------------------------------------------------------------- /cpp/lzo/AUTHORS: -------------------------------------------------------------------------------- 1 | Authors of the LZO data compression library: 2 | 3 | Markus F.X.J. Oberhumer. Invented, designed and implemented LZO. 4 | -------------------------------------------------------------------------------- /cpp/lzo/B/clean.bat: -------------------------------------------------------------------------------- 1 | @del /q *.def *.err *.exp *.map *.o *.obj *.res *.tds > nul 2> nul 2 | @del /q liblzo2.a lzo2.a lzo2.dll lzo2.lib > nul 2> nul 3 | @del /q a.exe a.out dict.exe lzopack.exe precomp.exe precomp2.exe simple.exe > nul 2> nul 4 | @del /q lzotest.exe testmini.exe > nul 2> nul 5 | -------------------------------------------------------------------------------- /cpp/lzo/B/done.bat: -------------------------------------------------------------------------------- 1 | @echo // 2 | @echo // Building LZO was successful. All done. 3 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/bc_pp.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // DOS 32-bit 4 | @echo // Borland C/C++ + Borland PowerPack 1.0 (DPMI32) 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=bcc32 -WX 11 | set CF=-O2 -w -w-aus %CFI% -Iinclude\lzo %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -Isrc -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | tlib %BLIB% @b\win32\bc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% -ls -Iexamples examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% -ls -Iexamples examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% -ls -Iexamples examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% -ls -Iexamples examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% -ls -Iexamples examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% -ls -Ilzotest lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -ls -Iminilzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/dj2.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // DOS 32-bit 4 | @echo // djgpp2 + gcc 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set BLIB=lib%BNAME%.a 11 | set CC=gcc 12 | set CF=@b/dos32/dj2.opt %CFI% %CFASM% 13 | set LF=%BLIB% -s 14 | 15 | %CC% %CF% -c @b\src.rsp 16 | @if errorlevel 1 goto error 17 | %CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S 18 | @if errorlevel 1 goto error 19 | ar rcs %BLIB% @b/win32/cygwin.rsp 20 | @if errorlevel 1 goto error 21 | 22 | %CC% %CF% -o dict.exe examples/dict.c %LF% 23 | @if errorlevel 1 goto error 24 | %CC% %CF% -o lzopack.exe examples/lzopack.c %LF% 25 | @if errorlevel 1 goto error 26 | %CC% %CF% -o precomp.exe examples/precomp.c %LF% 27 | @if errorlevel 1 goto error 28 | %CC% %CF% -o precomp2.exe examples/precomp2.c %LF% 29 | @if errorlevel 1 goto error 30 | %CC% %CF% -o simple.exe examples/simple.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF% 34 | @if errorlevel 1 goto error 35 | 36 | %CC% %CF% -s -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c 37 | @if errorlevel 1 goto error 38 | 39 | 40 | @call b\done.bat 41 | @goto end 42 | :error 43 | @echo ERROR during build! 44 | :end 45 | @call b\unset.bat 46 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/dj2.opt: -------------------------------------------------------------------------------- 1 | -O2 2 | -fomit-frame-pointer 3 | -Wall 4 | -Wcast-align 5 | -Wcast-qual 6 | -Wwrite-strings 7 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/dm.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // DOS 32-bit 4 | @echo // Digital Mars C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=dmc -mx 11 | set CF=-o -w- %CFI% %CFASM% 12 | set LF=%BLIB% x32.lib 13 | 14 | %CC% %CF% -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | lib %BLIB% /b /c /n /noi @b\win32\bc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | set LF=x32.lib 34 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c %LF% 35 | @if errorlevel 1 goto error 36 | 37 | 38 | @call b\done.bat 39 | @goto end 40 | :error 41 | @echo ERROR during build! 42 | :end 43 | @call b\unset.bat 44 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/emx.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // DOS 32-bit 4 | @echo // emx + gcc 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set BLIB=%BNAME%.a 11 | set CC=gcc 12 | set CF=@b/dos32/dj2.opt %CFI% %CFASM% 13 | set LF=%BLIB% -s 14 | 15 | %CC% %CF% -c @b\src.rsp 16 | @if errorlevel 1 goto error 17 | %CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S 18 | @if errorlevel 1 goto error 19 | ar rcs %BLIB% @b/win32/cygwin.rsp 20 | @if errorlevel 1 goto error 21 | 22 | %CC% %CF% -o dict.exe examples/dict.c %LF% 23 | @if errorlevel 1 goto error 24 | %CC% %CF% -o lzopack.exe examples/lzopack.c %LF% 25 | @if errorlevel 1 goto error 26 | %CC% %CF% -o precomp.exe examples/precomp.c %LF% 27 | @if errorlevel 1 goto error 28 | %CC% %CF% -o precomp2.exe examples/precomp2.c %LF% 29 | @if errorlevel 1 goto error 30 | %CC% %CF% -o simple.exe examples/simple.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF% 34 | @if errorlevel 1 goto error 35 | 36 | %CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c 37 | @if errorlevel 1 goto error 38 | 39 | 40 | @call b\done.bat 41 | @goto end 42 | :error 43 | @echo ERROR during build! 44 | :end 45 | @call b\unset.bat 46 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/highc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // DOS 32-bit 4 | @echo // MetaWare High C/C++ (using Pharlap DOS extender) 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=hc386 11 | set CF=-O3 -w4 %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -w1 -c src\*.c 15 | @if errorlevel 1 goto error 16 | 386lib %BLIB% -nobanner @b\dos32\highc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | 34 | @call b\done.bat 35 | @goto end 36 | :error 37 | @echo ERROR during build! 38 | :end 39 | @call b\unset.bat 40 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/highc.rsp: -------------------------------------------------------------------------------- 1 | -create lzo1.obj 2 | -create lzo1_99.obj 3 | -create lzo1a.obj 4 | -create lzo1a_99.obj 5 | -create lzo1b_1.obj 6 | -create lzo1b_2.obj 7 | -create lzo1b_3.obj 8 | -create lzo1b_4.obj 9 | -create lzo1b_5.obj 10 | -create lzo1b_6.obj 11 | -create lzo1b_7.obj 12 | -create lzo1b_8.obj 13 | -create lzo1b_9.obj 14 | -create lzo1b_99.obj 15 | -create lzo1b_9x.obj 16 | -create lzo1b_cc.obj 17 | -create lzo1b_d1.obj 18 | -create lzo1b_d2.obj 19 | -create lzo1b_rr.obj 20 | -create lzo1b_xx.obj 21 | -create lzo1c_1.obj 22 | -create lzo1c_2.obj 23 | -create lzo1c_3.obj 24 | -create lzo1c_4.obj 25 | -create lzo1c_5.obj 26 | -create lzo1c_6.obj 27 | -create lzo1c_7.obj 28 | -create lzo1c_8.obj 29 | -create lzo1c_9.obj 30 | -create lzo1c_99.obj 31 | -create lzo1c_9x.obj 32 | -create lzo1c_cc.obj 33 | -create lzo1c_d1.obj 34 | -create lzo1c_d2.obj 35 | -create lzo1c_rr.obj 36 | -create lzo1c_xx.obj 37 | -create lzo1f_1.obj 38 | -create lzo1f_9x.obj 39 | -create lzo1f_d1.obj 40 | -create lzo1f_d2.obj 41 | -create lzo1x_1.obj 42 | -create lzo1x_1k.obj 43 | -create lzo1x_1l.obj 44 | -create lzo1x_1o.obj 45 | -create lzo1x_9x.obj 46 | -create lzo1x_d1.obj 47 | -create lzo1x_d2.obj 48 | -create lzo1x_d3.obj 49 | -create lzo1x_o.obj 50 | -create lzo1y_1.obj 51 | -create lzo1y_9x.obj 52 | -create lzo1y_d1.obj 53 | -create lzo1y_d2.obj 54 | -create lzo1y_d3.obj 55 | -create lzo1y_o.obj 56 | -create lzo1z_9x.obj 57 | -create lzo1z_d1.obj 58 | -create lzo1z_d2.obj 59 | -create lzo1z_d3.obj 60 | -create lzo2a_9x.obj 61 | -create lzo2a_d1.obj 62 | -create lzo2a_d2.obj 63 | -create lzo_crc.obj 64 | -create lzo_init.obj 65 | -create lzo_ptr.obj 66 | -create lzo_str.obj 67 | -create lzo_util.obj 68 | -create asm\i386\obj\omf32\lzo1c_s1.obj 69 | -create asm\i386\obj\omf32\lzo1f_f1.obj 70 | -create asm\i386\obj\omf32\lzo1x_f1.obj 71 | -create asm\i386\obj\omf32\lzo1x_s1.obj 72 | -create asm\i386\obj\omf32\lzo1y_f1.obj 73 | -create asm\i386\obj\omf32\lzo1y_s1.obj 74 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/ndp.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // DOS 32-bit 4 | @echo // Microway NDP C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=mx486 11 | set CF=-ansi -on %CFI% 12 | set LF=%BLIB% -bind -map 13 | 14 | @REM %CC% %CF% -Isrc -c src\*.c 15 | for %%f in (src\*.c) do %CC% %CF% -Isrc -c %%f 16 | @if errorlevel 1 goto error 17 | ndplib %BLIB% @b\dos32\ndp.rsp 18 | @if errorlevel 1 goto error 19 | 20 | %CC% %CF% -Iexamples examples\dict.c %LF% 21 | @if errorlevel 1 goto error 22 | %CC% %CF% -Iexamples examples\lzopack.c %LF% 23 | @if errorlevel 1 goto error 24 | %CC% %CF% -Iexamples examples\precomp.c %LF% 25 | @if errorlevel 1 goto error 26 | %CC% %CF% -Iexamples examples\precomp2.c %LF% 27 | @if errorlevel 1 goto error 28 | %CC% %CF% -Iexamples examples\simple.c %LF% 29 | @if errorlevel 1 goto error 30 | 31 | %CC% %CF% -Dconst= -Ilzotest lzotest\lzotest.c %LF% 32 | @if errorlevel 1 goto error 33 | 34 | 35 | @call b\done.bat 36 | @goto end 37 | :error 38 | @echo ERROR during build! 39 | :end 40 | @call b\unset.bat 41 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/ndp.rsp: -------------------------------------------------------------------------------- 1 | -add lzo1.obj 2 | -add lzo1_99.obj 3 | -add lzo1a.obj 4 | -add lzo1a_99.obj 5 | -add lzo1b_1.obj 6 | -add lzo1b_2.obj 7 | -add lzo1b_3.obj 8 | -add lzo1b_4.obj 9 | -add lzo1b_5.obj 10 | -add lzo1b_6.obj 11 | -add lzo1b_7.obj 12 | -add lzo1b_8.obj 13 | -add lzo1b_9.obj 14 | -add lzo1b_99.obj 15 | -add lzo1b_9x.obj 16 | -add lzo1b_cc.obj 17 | -add lzo1b_d1.obj 18 | -add lzo1b_d2.obj 19 | -add lzo1b_rr.obj 20 | -add lzo1b_xx.obj 21 | -add lzo1c_1.obj 22 | -add lzo1c_2.obj 23 | -add lzo1c_3.obj 24 | -add lzo1c_4.obj 25 | -add lzo1c_5.obj 26 | -add lzo1c_6.obj 27 | -add lzo1c_7.obj 28 | -add lzo1c_8.obj 29 | -add lzo1c_9.obj 30 | -add lzo1c_99.obj 31 | -add lzo1c_9x.obj 32 | -add lzo1c_cc.obj 33 | -add lzo1c_d1.obj 34 | -add lzo1c_d2.obj 35 | -add lzo1c_rr.obj 36 | -add lzo1c_xx.obj 37 | -add lzo1f_1.obj 38 | -add lzo1f_9x.obj 39 | -add lzo1f_d1.obj 40 | -add lzo1f_d2.obj 41 | -add lzo1x_1.obj 42 | -add lzo1x_1k.obj 43 | -add lzo1x_1l.obj 44 | -add lzo1x_1o.obj 45 | -add lzo1x_9x.obj 46 | -add lzo1x_d1.obj 47 | -add lzo1x_d2.obj 48 | -add lzo1x_d3.obj 49 | -add lzo1x_o.obj 50 | -add lzo1y_1.obj 51 | -add lzo1y_9x.obj 52 | -add lzo1y_d1.obj 53 | -add lzo1y_d2.obj 54 | -add lzo1y_d3.obj 55 | -add lzo1y_o.obj 56 | -add lzo1z_9x.obj 57 | -add lzo1z_d1.obj 58 | -add lzo1z_d2.obj 59 | -add lzo1z_d3.obj 60 | -add lzo2a_9x.obj 61 | -add lzo2a_d1.obj 62 | -add lzo2a_d2.obj 63 | -add lzo_crc.obj 64 | -add lzo_init.obj 65 | -add lzo_ptr.obj 66 | -add lzo_str.obj 67 | -add lzo_util.obj 68 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/sc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // DOS 32-bit 4 | @echo // Symantec C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=sc -mx 11 | set CF=-o -w- %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | lib %BLIB% /b /c /n /noi @b\win32\bc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% -c examples\dict.c 20 | @if errorlevel 1 goto error 21 | %CC% dict.obj %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% -c examples\lzopack.c 24 | @if errorlevel 1 goto error 25 | %CC% lzopack.obj %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% -c examples\precomp.c 28 | @if errorlevel 1 goto error 29 | %CC% precomp.obj %LF% 30 | @if errorlevel 1 goto error 31 | %CC% %CF% -c examples\precomp2.c 32 | @if errorlevel 1 goto error 33 | %CC% precomp2.obj %LF% 34 | @if errorlevel 1 goto error 35 | %CC% %CF% -c examples\simple.c 36 | @if errorlevel 1 goto error 37 | %CC% simple.obj %LF% 38 | @if errorlevel 1 goto error 39 | 40 | %CC% %CF% -c lzotest\lzotest.c 41 | @if errorlevel 1 goto error 42 | %CC% lzotest.obj %LF% 43 | @if errorlevel 1 goto error 44 | 45 | 46 | @call b\done.bat 47 | @goto end 48 | :error 49 | @echo ERROR during build! 50 | :end 51 | @call b\unset.bat 52 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/wc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // DOS 32-bit 4 | @echo // Watcom C/C++ (using DOS/4G extender) 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=wcl386 -zq -mf -5r -bt#dos -l#dos4g 11 | set CF=-ox -zc %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -c src\*.c 15 | @if errorlevel 1 goto error 16 | wlib -q -b -n -t %BLIB% @b\win32\wc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | 34 | @call b\done.bat 35 | @goto end 36 | :error 37 | @echo ERROR during build! 38 | :end 39 | @call b\unset.bat 40 | -------------------------------------------------------------------------------- /cpp/lzo/B/dos32/zc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // DOS 32-bit 4 | @echo // Zortech C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=ztc -b -v0 -mx 11 | set CF=-o -w- -r %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -Isrc -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | zorlib %BLIB% @b\win32\bc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% -c examples\dict.c 20 | @if errorlevel 1 goto error 21 | %CC% dict.obj %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% -c examples\lzopack.c 24 | @if errorlevel 1 goto error 25 | %CC% lzopack.obj %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% -c examples\precomp.c 28 | @if errorlevel 1 goto error 29 | %CC% precomp.obj %LF% 30 | @if errorlevel 1 goto error 31 | %CC% %CF% -c examples\precomp2.c 32 | @if errorlevel 1 goto error 33 | %CC% precomp2.obj %LF% 34 | @if errorlevel 1 goto error 35 | %CC% %CF% -c examples\simple.c 36 | @if errorlevel 1 goto error 37 | %CC% simple.obj %LF% 38 | @if errorlevel 1 goto error 39 | 40 | %CC% %CF% -c lzotest\lzotest.c 41 | @if errorlevel 1 goto error 42 | %CC% lzotest.obj %LF% 43 | @if errorlevel 1 goto error 44 | 45 | 46 | @call b\done.bat 47 | @goto end 48 | :error 49 | @echo ERROR during build! 50 | :end 51 | @call b\unset.bat 52 | -------------------------------------------------------------------------------- /cpp/lzo/B/generic/build_freestanding.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | ## vim:set ts=4 sw=4 et: 3 | 4 | test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. 5 | 6 | LZO_CFG_FREESTANDING=1 7 | 8 | . $top_srcdir/B/generic/build.sh 9 | -------------------------------------------------------------------------------- /cpp/lzo/B/generic/build_gcc.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | ## vim:set ts=4 sw=4 et: 3 | set -e 4 | echo "// Using GNU C compiler." 5 | echo "//" 6 | 7 | test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. 8 | UNAME_MACHINE=unknown 9 | 10 | CC="gcc -fPIC" 11 | CC="gcc -static" 12 | CC="gcc" 13 | CFLAGS="-Wall -O2 -fomit-frame-pointer" 14 | 15 | # delete the next line to disable assembler support 16 | UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 17 | case $UNAME_MACHINE in 18 | i[34567]86) 19 | CC="$CC -m32" 20 | CPPFLAGS="-DLZO_USE_ASM" 21 | LZO_EXTRA_SOURCES=$top_srcdir/asm/i386/src_gas/*.S 22 | ;; 23 | esac 24 | 25 | . $top_srcdir/B/generic/build.sh 26 | -------------------------------------------------------------------------------- /cpp/lzo/B/generic/clean.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | ## vim:set ts=4 sw=4 et: 3 | # Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 4 | 5 | rm -f *.o liblzo2.a dict.out lzopack.out precomp.out precomp2.out simple.out lzotest.out testmini.out 6 | 7 | true 8 | -------------------------------------------------------------------------------- /cpp/lzo/B/os2/emx.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // OS/2 32-bit 4 | @echo // emx + gcc 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set BLIB=%BNAME%.a 11 | set CC=gcc 12 | set CF=@b/dos32/dj2.opt %CFI% %CFASM% 13 | set LF=%BLIB% -s 14 | 15 | %CC% %CF% -c @b\src.rsp 16 | @if errorlevel 1 goto error 17 | %CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S 18 | @if errorlevel 1 goto error 19 | ar rcs %BLIB% @b/win32/cygwin.rsp 20 | @if errorlevel 1 goto error 21 | 22 | %CC% %CF% -o dict.exe examples/dict.c %LF% 23 | @if errorlevel 1 goto error 24 | %CC% %CF% -o lzopack.exe examples/lzopack.c %LF% 25 | @if errorlevel 1 goto error 26 | %CC% %CF% -o precomp.exe examples/precomp.c %LF% 27 | @if errorlevel 1 goto error 28 | %CC% %CF% -o precomp2.exe examples/precomp2.c %LF% 29 | @if errorlevel 1 goto error 30 | %CC% %CF% -o simple.exe examples/simple.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF% 34 | @if errorlevel 1 goto error 35 | 36 | %CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c 37 | @if errorlevel 1 goto error 38 | 39 | 40 | @call b\done.bat 41 | @goto end 42 | :error 43 | @echo ERROR during build! 44 | :end 45 | @call b\unset.bat 46 | -------------------------------------------------------------------------------- /cpp/lzo/B/os2/wc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // OS/2 32-bit 4 | @echo // Watcom C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=wcl386 -zq -mf -5r -bt#os2 -l#os2v2 11 | set CF=-ox -zc %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -c src\*.c 15 | @if errorlevel 1 goto error 16 | wlib -q -b -n -t %BLIB% @b\win32\wc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/os2/zc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // OS/2 32-bit 4 | @echo // Zortech C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=ztc -b -v0 -mf 11 | set CF=-o -w- -r %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -Isrc -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | zorlib %BLIB% @b\win32\bc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% -c examples\dict.c 20 | @if errorlevel 1 goto error 21 | %CC% dict.obj %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% -c examples\lzopack.c 24 | @if errorlevel 1 goto error 25 | %CC% lzopack.obj %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% -c examples\precomp.c 28 | @if errorlevel 1 goto error 29 | %CC% precomp.obj %LF% 30 | @if errorlevel 1 goto error 31 | %CC% %CF% -c examples\precomp2.c 32 | @if errorlevel 1 goto error 33 | %CC% precomp2.obj %LF% 34 | @if errorlevel 1 goto error 35 | %CC% %CF% -c examples\simple.c 36 | @if errorlevel 1 goto error 37 | %CC% simple.obj %LF% 38 | @if errorlevel 1 goto error 39 | 40 | %CC% %CF% -c lzotest\lzotest.c 41 | @if errorlevel 1 goto error 42 | %CC% lzotest.obj %LF% 43 | @if errorlevel 1 goto error 44 | 45 | 46 | @call b\done.bat 47 | @goto end 48 | :error 49 | @echo ERROR during build! 50 | :end 51 | @call b\unset.bat 52 | -------------------------------------------------------------------------------- /cpp/lzo/B/prepare.bat: -------------------------------------------------------------------------------- 1 | @call b\unset.bat 2 | @call b\clean.bat 3 | 4 | @set CFI=-Iinclude -I. -Isrc 5 | @set CFASM=-DLZO_USE_ASM 6 | @set BNAME=lzo2 7 | @set BLIB=lzo2.lib 8 | @set BDLL=lzo2.dll 9 | 10 | @echo Compiling, please be patient... 11 | -------------------------------------------------------------------------------- /cpp/lzo/B/src.rsp: -------------------------------------------------------------------------------- 1 | src/lzo1.c 2 | src/lzo1_99.c 3 | src/lzo1a.c 4 | src/lzo1a_99.c 5 | src/lzo1b_1.c 6 | src/lzo1b_2.c 7 | src/lzo1b_3.c 8 | src/lzo1b_4.c 9 | src/lzo1b_5.c 10 | src/lzo1b_6.c 11 | src/lzo1b_7.c 12 | src/lzo1b_8.c 13 | src/lzo1b_9.c 14 | src/lzo1b_99.c 15 | src/lzo1b_9x.c 16 | src/lzo1b_cc.c 17 | src/lzo1b_d1.c 18 | src/lzo1b_d2.c 19 | src/lzo1b_rr.c 20 | src/lzo1b_xx.c 21 | src/lzo1c_1.c 22 | src/lzo1c_2.c 23 | src/lzo1c_3.c 24 | src/lzo1c_4.c 25 | src/lzo1c_5.c 26 | src/lzo1c_6.c 27 | src/lzo1c_7.c 28 | src/lzo1c_8.c 29 | src/lzo1c_9.c 30 | src/lzo1c_99.c 31 | src/lzo1c_9x.c 32 | src/lzo1c_cc.c 33 | src/lzo1c_d1.c 34 | src/lzo1c_d2.c 35 | src/lzo1c_rr.c 36 | src/lzo1c_xx.c 37 | src/lzo1f_1.c 38 | src/lzo1f_9x.c 39 | src/lzo1f_d1.c 40 | src/lzo1f_d2.c 41 | src/lzo1x_1.c 42 | src/lzo1x_1k.c 43 | src/lzo1x_1l.c 44 | src/lzo1x_1o.c 45 | src/lzo1x_9x.c 46 | src/lzo1x_d1.c 47 | src/lzo1x_d2.c 48 | src/lzo1x_d3.c 49 | src/lzo1x_o.c 50 | src/lzo1y_1.c 51 | src/lzo1y_9x.c 52 | src/lzo1y_d1.c 53 | src/lzo1y_d2.c 54 | src/lzo1y_d3.c 55 | src/lzo1y_o.c 56 | src/lzo1z_9x.c 57 | src/lzo1z_d1.c 58 | src/lzo1z_d2.c 59 | src/lzo1z_d3.c 60 | src/lzo2a_9x.c 61 | src/lzo2a_d1.c 62 | src/lzo2a_d2.c 63 | src/lzo_crc.c 64 | src/lzo_init.c 65 | src/lzo_ptr.c 66 | src/lzo_str.c 67 | src/lzo_util.c 68 | -------------------------------------------------------------------------------- /cpp/lzo/B/unset.bat: -------------------------------------------------------------------------------- 1 | @set CC= 2 | @set CF= 3 | @set CFI= 4 | @set CFX= 5 | @set CFASM= 6 | @set LF= 7 | @set BNAME= 8 | @set BLIB= 9 | @set BDLL= 10 | @set BECHO= 11 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/bc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // Borland C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=bcc32 11 | set CF=-O2 -w -w-aus %CFI% -Iinclude\lzo %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -Isrc -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | tlib %BLIB% @b\win32\bc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% -ls -Iexamples examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% -ls -Iexamples examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% -ls -Iexamples examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% -ls -Iexamples examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% -ls -Iexamples examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% -ls -Ilzotest lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -ls -Iminilzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/bc.rsp: -------------------------------------------------------------------------------- 1 | +lzo1.obj & 2 | +lzo1_99.obj & 3 | +lzo1a.obj & 4 | +lzo1a_99.obj & 5 | +lzo1b_1.obj & 6 | +lzo1b_2.obj & 7 | +lzo1b_3.obj & 8 | +lzo1b_4.obj & 9 | +lzo1b_5.obj & 10 | +lzo1b_6.obj & 11 | +lzo1b_7.obj & 12 | +lzo1b_8.obj & 13 | +lzo1b_9.obj & 14 | +lzo1b_99.obj & 15 | +lzo1b_9x.obj & 16 | +lzo1b_cc.obj & 17 | +lzo1b_d1.obj & 18 | +lzo1b_d2.obj & 19 | +lzo1b_rr.obj & 20 | +lzo1b_xx.obj & 21 | +lzo1c_1.obj & 22 | +lzo1c_2.obj & 23 | +lzo1c_3.obj & 24 | +lzo1c_4.obj & 25 | +lzo1c_5.obj & 26 | +lzo1c_6.obj & 27 | +lzo1c_7.obj & 28 | +lzo1c_8.obj & 29 | +lzo1c_9.obj & 30 | +lzo1c_99.obj & 31 | +lzo1c_9x.obj & 32 | +lzo1c_cc.obj & 33 | +lzo1c_d1.obj & 34 | +lzo1c_d2.obj & 35 | +lzo1c_rr.obj & 36 | +lzo1c_xx.obj & 37 | +lzo1f_1.obj & 38 | +lzo1f_9x.obj & 39 | +lzo1f_d1.obj & 40 | +lzo1f_d2.obj & 41 | +lzo1x_1.obj & 42 | +lzo1x_1k.obj & 43 | +lzo1x_1l.obj & 44 | +lzo1x_1o.obj & 45 | +lzo1x_9x.obj & 46 | +lzo1x_d1.obj & 47 | +lzo1x_d2.obj & 48 | +lzo1x_d3.obj & 49 | +lzo1x_o.obj & 50 | +lzo1y_1.obj & 51 | +lzo1y_9x.obj & 52 | +lzo1y_d1.obj & 53 | +lzo1y_d2.obj & 54 | +lzo1y_d3.obj & 55 | +lzo1y_o.obj & 56 | +lzo1z_9x.obj & 57 | +lzo1z_d1.obj & 58 | +lzo1z_d2.obj & 59 | +lzo1z_d3.obj & 60 | +lzo2a_9x.obj & 61 | +lzo2a_d1.obj & 62 | +lzo2a_d2.obj & 63 | +lzo_crc.obj & 64 | +lzo_init.obj & 65 | +lzo_ptr.obj & 66 | +lzo_str.obj & 67 | +lzo_util.obj & 68 | +asm\i386\obj\omf32\lzo1c_s1.obj & 69 | +asm\i386\obj\omf32\lzo1f_f1.obj & 70 | +asm\i386\obj\omf32\lzo1x_f1.obj & 71 | +asm\i386\obj\omf32\lzo1x_s1.obj & 72 | +asm\i386\obj\omf32\lzo1y_f1.obj & 73 | +asm\i386\obj\omf32\lzo1y_s1.obj 74 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/cygwin.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // cygwin + gcc 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set BLIB=lib%BNAME%.a 11 | set CC=gcc 12 | set CF=-O2 -fomit-frame-pointer -Wall %CFI% %CFASM% 13 | set LF=%BLIB% -lwinmm -s 14 | 15 | %CC% %CF% -c src/*.c 16 | @if errorlevel 1 goto error 17 | %CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S 18 | @if errorlevel 1 goto error 19 | ar rcs %BLIB% @b/win32/cygwin.rsp 20 | @if errorlevel 1 goto error 21 | 22 | %CC% %CF% -o dict.exe examples/dict.c %LF% 23 | @if errorlevel 1 goto error 24 | %CC% %CF% -o lzopack.exe examples/lzopack.c %LF% 25 | @if errorlevel 1 goto error 26 | %CC% %CF% -o precomp.exe examples/precomp.c %LF% 27 | @if errorlevel 1 goto error 28 | %CC% %CF% -o precomp2.exe examples/precomp2.c %LF% 29 | @if errorlevel 1 goto error 30 | %CC% %CF% -o simple.exe examples/simple.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF% 34 | @if errorlevel 1 goto error 35 | 36 | %CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c 37 | @if errorlevel 1 goto error 38 | 39 | 40 | @call b\done.bat 41 | @goto end 42 | :error 43 | @echo ERROR during build! 44 | :end 45 | @call b\unset.bat 46 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/cygwin.rsp: -------------------------------------------------------------------------------- 1 | lzo1.o 2 | lzo1_99.o 3 | lzo1a.o 4 | lzo1a_99.o 5 | lzo1b_1.o 6 | lzo1b_2.o 7 | lzo1b_3.o 8 | lzo1b_4.o 9 | lzo1b_5.o 10 | lzo1b_6.o 11 | lzo1b_7.o 12 | lzo1b_8.o 13 | lzo1b_9.o 14 | lzo1b_99.o 15 | lzo1b_9x.o 16 | lzo1b_cc.o 17 | lzo1b_d1.o 18 | lzo1b_d2.o 19 | lzo1b_rr.o 20 | lzo1b_xx.o 21 | lzo1c_1.o 22 | lzo1c_2.o 23 | lzo1c_3.o 24 | lzo1c_4.o 25 | lzo1c_5.o 26 | lzo1c_6.o 27 | lzo1c_7.o 28 | lzo1c_8.o 29 | lzo1c_9.o 30 | lzo1c_99.o 31 | lzo1c_9x.o 32 | lzo1c_cc.o 33 | lzo1c_d1.o 34 | lzo1c_d2.o 35 | lzo1c_rr.o 36 | lzo1c_xx.o 37 | lzo1f_1.o 38 | lzo1f_9x.o 39 | lzo1f_d1.o 40 | lzo1f_d2.o 41 | lzo1x_1.o 42 | lzo1x_1k.o 43 | lzo1x_1l.o 44 | lzo1x_1o.o 45 | lzo1x_9x.o 46 | lzo1x_d1.o 47 | lzo1x_d2.o 48 | lzo1x_d3.o 49 | lzo1x_o.o 50 | lzo1y_1.o 51 | lzo1y_9x.o 52 | lzo1y_d1.o 53 | lzo1y_d2.o 54 | lzo1y_d3.o 55 | lzo1y_o.o 56 | lzo1z_9x.o 57 | lzo1z_d1.o 58 | lzo1z_d2.o 59 | lzo1z_d3.o 60 | lzo2a_9x.o 61 | lzo2a_d1.o 62 | lzo2a_d2.o 63 | lzo_crc.o 64 | lzo_init.o 65 | lzo_ptr.o 66 | lzo_str.o 67 | lzo_util.o 68 | lzo1c_s1.o 69 | lzo1f_f1.o 70 | lzo1x_f1.o 71 | lzo1x_s1.o 72 | lzo1y_f1.o 73 | lzo1y_s1.o 74 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/dm.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // Digital Mars C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=dmc -mn 11 | set CF=-o -w- %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | lib %BLIB% /b /c /n /noi @b\win32\bc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/ic.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // Intel C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=icl -nologo -MT 11 | set CF=-O2 -GF -W3 -Qvec-report0 %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | link -lib -nologo -out:%BLIB% @b\win32\vc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/lccwin32.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // lcc-win32 5 | @echo // 6 | @echo // NOTE: some lcc-win32 versions are buggy, so we disable optimizations 7 | @echo // 8 | @call b\prepare.bat 9 | @if "%BECHO%"=="n" echo off 10 | 11 | 12 | set CC=lcc 13 | set CF=-O -A %CFI% -Iinclude\lzo %CFASM% 14 | set CF=-A %CFI% -Iinclude\lzo %CFASM% 15 | set LF=%BLIB% winmm.lib 16 | 17 | for %%f in (src\*.c) do %CC% %CF% -c %%f 18 | @if errorlevel 1 goto error 19 | lcclib /out:%BLIB% @b\win32\vc.rsp 20 | @if errorlevel 1 goto error 21 | 22 | %CC% -c %CF% examples\dict.c 23 | @if errorlevel 1 goto error 24 | lc dict.obj %LF% 25 | @if errorlevel 1 goto error 26 | %CC% -c %CF% examples\lzopack.c 27 | @if errorlevel 1 goto error 28 | lc lzopack.obj %LF% 29 | @if errorlevel 1 goto error 30 | %CC% -c %CF% examples\precomp.c 31 | @if errorlevel 1 goto error 32 | lc precomp.obj %LF% 33 | @if errorlevel 1 goto error 34 | %CC% -c %CF% examples\precomp2.c 35 | @if errorlevel 1 goto error 36 | lc precomp2.obj %LF% 37 | @if errorlevel 1 goto error 38 | %CC% -c %CF% examples\simple.c 39 | @if errorlevel 1 goto error 40 | lc simple.obj %LF% 41 | @if errorlevel 1 goto error 42 | 43 | %CC% -c %CF% lzotest\lzotest.c 44 | @if errorlevel 1 goto error 45 | lc lzotest.obj %LF% 46 | @if errorlevel 1 goto error 47 | 48 | %CC% -c %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 49 | @if errorlevel 1 goto error 50 | lc testmini.obj minilzo.obj 51 | @if errorlevel 1 goto error 52 | 53 | 54 | @call b\done.bat 55 | @goto end 56 | :error 57 | @echo ERROR during build! 58 | :end 59 | @call b\unset.bat 60 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/mingw.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // MinGW + gcc 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set BLIB=lib%BNAME%.a 11 | set CC=gcc 12 | set CF=-O2 -fomit-frame-pointer -Wall %CFI% %CFASM% 13 | set LF=%BLIB% -lwinmm -s 14 | 15 | %CC% %CF% -c src/*.c 16 | @if errorlevel 1 goto error 17 | %CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S 18 | @if errorlevel 1 goto error 19 | ar rcs %BLIB% *.o 20 | @if errorlevel 1 goto error 21 | 22 | %CC% %CF% -o dict.exe examples/dict.c %LF% 23 | @if errorlevel 1 goto error 24 | %CC% %CF% -o lzopack.exe examples/lzopack.c %LF% 25 | @if errorlevel 1 goto error 26 | %CC% %CF% -o precomp.exe examples/precomp.c %LF% 27 | @if errorlevel 1 goto error 28 | %CC% %CF% -o precomp2.exe examples/precomp2.c %LF% 29 | @if errorlevel 1 goto error 30 | %CC% %CF% -o simple.exe examples/simple.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF% 34 | @if errorlevel 1 goto error 35 | 36 | %CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c 37 | @if errorlevel 1 goto error 38 | 39 | 40 | @call b\done.bat 41 | @goto end 42 | :error 43 | @echo ERROR during build! 44 | :end 45 | @call b\unset.bat 46 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/mwerks.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // Metrowerks CodeWarrior C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=mwcc -gccinc 11 | set CF=-opt full %CFI% %CFASM% 12 | set LF=%BLIB% -lwinmm.lib 13 | 14 | %CC% -w on %CF% -w nounusedexpr -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | mwld -library -o %BLIB% @b\win32\vc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/pellesc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // Pelles C 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=cc -Ze -Go 11 | set CF=-O2 -W2 %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -c src\*.c 15 | @if errorlevel 1 goto error 16 | polib -out:%BLIB% @b\win32\vc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/pgi.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // Portland Group PGI C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set BLIB=lib%BNAME%.a 11 | set CC=pgcc 12 | set CF=-fast %CFI% %CFASM% 13 | set LF=%BLIB% -lwinmm 14 | 15 | %CC% %CF% -c src\*.c 16 | @if errorlevel 1 goto error 17 | ar rcs %BLIB% *.o asm/i386/obj/win32/*.obj 18 | @if errorlevel 1 goto error 19 | 20 | %CC% %CF% -o dict.exe examples\dict.c %LF% 21 | @if errorlevel 1 goto error 22 | %CC% %CF% -o lzopack.exe examples\lzopack.c %LF% 23 | @if errorlevel 1 goto error 24 | %CC% %CF% -o precomp.exe examples\precomp.c %LF% 25 | @if errorlevel 1 goto error 26 | %CC% %CF% -o precomp2.exe examples\precomp2.c %LF% 27 | @if errorlevel 1 goto error 28 | %CC% %CF% -o simple.exe examples\simple.c %LF% 29 | @if errorlevel 1 goto error 30 | 31 | %CC% %CF% -o lzotest.exe lzotest\lzotest.c %LF% 32 | @if errorlevel 1 goto error 33 | 34 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 35 | @if errorlevel 1 goto error 36 | 37 | 38 | @call b\done.bat 39 | @goto end 40 | :error 41 | @echo ERROR during build! 42 | :end 43 | @call b\unset.bat 44 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/pw32.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // PW32 + gcc 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set BLIB=lib%BNAME%.a 11 | set CC=gcc 12 | set CF=-O2 -fomit-frame-pointer -Wall %CFI% %CFASM% 13 | set LF=%BLIB% -lwinmm -s 14 | 15 | %CC% %CF% -c src/*.c 16 | @if errorlevel 1 goto error 17 | %CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S 18 | @if errorlevel 1 goto error 19 | ar rcs %BLIB% *.o 20 | @if errorlevel 1 goto error 21 | 22 | %CC% %CF% -o dict.exe examples/dict.c %LF% 23 | @if errorlevel 1 goto error 24 | %CC% %CF% -o lzopack.exe examples/lzopack.c %LF% 25 | @if errorlevel 1 goto error 26 | %CC% %CF% -o precomp.exe examples/precomp.c %LF% 27 | @if errorlevel 1 goto error 28 | %CC% %CF% -o precomp2.exe examples/precomp2.c %LF% 29 | @if errorlevel 1 goto error 30 | %CC% %CF% -o simple.exe examples/simple.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF% 34 | @if errorlevel 1 goto error 35 | 36 | %CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c 37 | @if errorlevel 1 goto error 38 | 39 | 40 | @call b\done.bat 41 | @goto end 42 | :error 43 | @echo ERROR during build! 44 | :end 45 | @call b\unset.bat 46 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/rsxnt.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // rsxnt + gcc 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set BLIB=%BNAME%.a 11 | set CC=gcc -Zwin32 -Zsys -mprobe 12 | set CF=@b/dos32/dj2.opt %CFI% %CFASM% 13 | set LF=%BLIB% -s 14 | 15 | %CC% %CF% -c @b\src.rsp 16 | @if errorlevel 1 goto error 17 | %CC% -x assembler-with-cpp -c asm/i386/src_gas/*.S 18 | @if errorlevel 1 goto error 19 | ar rcs %BLIB% @b/win32/cygwin.rsp 20 | @if errorlevel 1 goto error 21 | 22 | %CC% %CF% -o dict.exe examples/dict.c %LF% 23 | @if errorlevel 1 goto error 24 | %CC% %CF% -o lzopack.exe examples/lzopack.c %LF% 25 | @if errorlevel 1 goto error 26 | %CC% %CF% -o precomp.exe examples/precomp.c %LF% 27 | @if errorlevel 1 goto error 28 | %CC% %CF% -o precomp2.exe examples/precomp2.c %LF% 29 | @if errorlevel 1 goto error 30 | %CC% %CF% -o simple.exe examples/simple.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -o lzotest.exe lzotest/lzotest.c %LF% 34 | @if errorlevel 1 goto error 35 | 36 | %CC% %CF% -Iinclude/lzo -o testmini.exe minilzo/testmini.c minilzo/minilzo.c 37 | @if errorlevel 1 goto error 38 | 39 | 40 | @call b\done.bat 41 | @goto end 42 | :error 43 | @echo ERROR during build! 44 | :end 45 | @call b\unset.bat 46 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/sc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // Symantec C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=sc -mn 11 | set CF=-o -w- %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | lib %BLIB% /b /c /n /noi @b\win32\bc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% -c examples\dict.c 20 | @if errorlevel 1 goto error 21 | %CC% dict.obj %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% -c examples\lzopack.c 24 | @if errorlevel 1 goto error 25 | %CC% lzopack.obj %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% -c examples\precomp.c 28 | @if errorlevel 1 goto error 29 | %CC% precomp.obj %LF% 30 | @if errorlevel 1 goto error 31 | %CC% %CF% -c examples\precomp2.c 32 | @if errorlevel 1 goto error 33 | %CC% precomp2.obj %LF% 34 | @if errorlevel 1 goto error 35 | %CC% %CF% -c examples\simple.c 36 | @if errorlevel 1 goto error 37 | %CC% simple.obj %LF% 38 | @if errorlevel 1 goto error 39 | 40 | %CC% %CF% -c lzotest\lzotest.c 41 | @if errorlevel 1 goto error 42 | %CC% lzotest.obj %LF% 43 | @if errorlevel 1 goto error 44 | 45 | %CC% %CF% -Iinclude\lzo -c minilzo\testmini.c minilzo\minilzo.c 46 | @if errorlevel 1 goto error 47 | %CC% testmini.obj minilzo.obj 48 | @if errorlevel 1 goto error 49 | 50 | 51 | @call b\done.bat 52 | @goto end 53 | :error 54 | @echo ERROR during build! 55 | :end 56 | @call b\unset.bat 57 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/vc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // Microsoft Visual C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=cl -nologo -MT 11 | set CF=-O2 -GF -W3 %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | link -lib -nologo -out:%BLIB% @b\win32\vc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/vc.rsp: -------------------------------------------------------------------------------- 1 | .\lzo1.obj 2 | .\lzo1_99.obj 3 | .\lzo1a.obj 4 | .\lzo1a_99.obj 5 | .\lzo1b_1.obj 6 | .\lzo1b_2.obj 7 | .\lzo1b_3.obj 8 | .\lzo1b_4.obj 9 | .\lzo1b_5.obj 10 | .\lzo1b_6.obj 11 | .\lzo1b_7.obj 12 | .\lzo1b_8.obj 13 | .\lzo1b_9.obj 14 | .\lzo1b_99.obj 15 | .\lzo1b_9x.obj 16 | .\lzo1b_cc.obj 17 | .\lzo1b_d1.obj 18 | .\lzo1b_d2.obj 19 | .\lzo1b_rr.obj 20 | .\lzo1b_xx.obj 21 | .\lzo1c_1.obj 22 | .\lzo1c_2.obj 23 | .\lzo1c_3.obj 24 | .\lzo1c_4.obj 25 | .\lzo1c_5.obj 26 | .\lzo1c_6.obj 27 | .\lzo1c_7.obj 28 | .\lzo1c_8.obj 29 | .\lzo1c_9.obj 30 | .\lzo1c_99.obj 31 | .\lzo1c_9x.obj 32 | .\lzo1c_cc.obj 33 | .\lzo1c_d1.obj 34 | .\lzo1c_d2.obj 35 | .\lzo1c_rr.obj 36 | .\lzo1c_xx.obj 37 | .\lzo1f_1.obj 38 | .\lzo1f_9x.obj 39 | .\lzo1f_d1.obj 40 | .\lzo1f_d2.obj 41 | .\lzo1x_1.obj 42 | .\lzo1x_1k.obj 43 | .\lzo1x_1l.obj 44 | .\lzo1x_1o.obj 45 | .\lzo1x_9x.obj 46 | .\lzo1x_d1.obj 47 | .\lzo1x_d2.obj 48 | .\lzo1x_d3.obj 49 | .\lzo1x_o.obj 50 | .\lzo1y_1.obj 51 | .\lzo1y_9x.obj 52 | .\lzo1y_d1.obj 53 | .\lzo1y_d2.obj 54 | .\lzo1y_d3.obj 55 | .\lzo1y_o.obj 56 | .\lzo1z_9x.obj 57 | .\lzo1z_d1.obj 58 | .\lzo1z_d2.obj 59 | .\lzo1z_d3.obj 60 | .\lzo2a_9x.obj 61 | .\lzo2a_d1.obj 62 | .\lzo2a_d2.obj 63 | .\lzo_crc.obj 64 | .\lzo_init.obj 65 | .\lzo_ptr.obj 66 | .\lzo_str.obj 67 | .\lzo_util.obj 68 | .\asm\i386\obj\win32\lzo1c_s1.obj 69 | .\asm\i386\obj\win32\lzo1f_f1.obj 70 | .\asm\i386\obj\win32\lzo1x_f1.obj 71 | .\asm\i386\obj\win32\lzo1x_s1.obj 72 | .\asm\i386\obj\win32\lzo1y_f1.obj 73 | .\asm\i386\obj\win32\lzo1y_s1.obj 74 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/vc_dll.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // Microsoft Visual C/C++ (DLL) 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=cl -nologo -MT 11 | set CF=-O2 -GF -W3 %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -D__LZO_EXPORT1#__declspec(dllexport) -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | %CC% -LD -Fe%BDLL% @b\win32\vc.rsp /link /map /def:b\win32\vc_dll.def 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/vc_dll.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | lzo1c_decompress_asm 3 | lzo1f_decompress_asm_fast 4 | lzo1x_decompress_asm 5 | lzo1x_decompress_asm_fast 6 | lzo1y_decompress_asm 7 | lzo1y_decompress_asm_fast 8 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/wc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 32-bit 4 | @echo // Watcom C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=wcl386 -zq -mf -5r -bt#nt -l#nt 11 | set CF=-ox -zc %CFI% %CFASM% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -c src\*.c 15 | @if errorlevel 1 goto error 16 | wlib -q -b -n -t %BLIB% @b\win32\wc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | 34 | @call b\done.bat 35 | @goto end 36 | :error 37 | @echo ERROR during build! 38 | :end 39 | @call b\unset.bat 40 | -------------------------------------------------------------------------------- /cpp/lzo/B/win32/wc.rsp: -------------------------------------------------------------------------------- 1 | +'lzo1.obj' 2 | +'lzo1_99.obj' 3 | +'lzo1a.obj' 4 | +'lzo1a_99.obj' 5 | +'lzo1b_1.obj' 6 | +'lzo1b_2.obj' 7 | +'lzo1b_3.obj' 8 | +'lzo1b_4.obj' 9 | +'lzo1b_5.obj' 10 | +'lzo1b_6.obj' 11 | +'lzo1b_7.obj' 12 | +'lzo1b_8.obj' 13 | +'lzo1b_9.obj' 14 | +'lzo1b_99.obj' 15 | +'lzo1b_9x.obj' 16 | +'lzo1b_cc.obj' 17 | +'lzo1b_d1.obj' 18 | +'lzo1b_d2.obj' 19 | +'lzo1b_rr.obj' 20 | +'lzo1b_xx.obj' 21 | +'lzo1c_1.obj' 22 | +'lzo1c_2.obj' 23 | +'lzo1c_3.obj' 24 | +'lzo1c_4.obj' 25 | +'lzo1c_5.obj' 26 | +'lzo1c_6.obj' 27 | +'lzo1c_7.obj' 28 | +'lzo1c_8.obj' 29 | +'lzo1c_9.obj' 30 | +'lzo1c_99.obj' 31 | +'lzo1c_9x.obj' 32 | +'lzo1c_cc.obj' 33 | +'lzo1c_d1.obj' 34 | +'lzo1c_d2.obj' 35 | +'lzo1c_rr.obj' 36 | +'lzo1c_xx.obj' 37 | +'lzo1f_1.obj' 38 | +'lzo1f_9x.obj' 39 | +'lzo1f_d1.obj' 40 | +'lzo1f_d2.obj' 41 | +'lzo1x_1.obj' 42 | +'lzo1x_1k.obj' 43 | +'lzo1x_1l.obj' 44 | +'lzo1x_1o.obj' 45 | +'lzo1x_9x.obj' 46 | +'lzo1x_d1.obj' 47 | +'lzo1x_d2.obj' 48 | +'lzo1x_d3.obj' 49 | +'lzo1x_o.obj' 50 | +'lzo1y_1.obj' 51 | +'lzo1y_9x.obj' 52 | +'lzo1y_d1.obj' 53 | +'lzo1y_d2.obj' 54 | +'lzo1y_d3.obj' 55 | +'lzo1y_o.obj' 56 | +'lzo1z_9x.obj' 57 | +'lzo1z_d1.obj' 58 | +'lzo1z_d2.obj' 59 | +'lzo1z_d3.obj' 60 | +'lzo2a_9x.obj' 61 | +'lzo2a_d1.obj' 62 | +'lzo2a_d2.obj' 63 | +'lzo_crc.obj' 64 | +'lzo_init.obj' 65 | +'lzo_ptr.obj' 66 | +'lzo_str.obj' 67 | +'lzo_util.obj' 68 | +'asm\i386\obj\omf32\lzo1c_s1.obj' 69 | +'asm\i386\obj\omf32\lzo1f_f1.obj' 70 | +'asm\i386\obj\omf32\lzo1x_f1.obj' 71 | +'asm\i386\obj\omf32\lzo1x_s1.obj' 72 | +'asm\i386\obj\omf32\lzo1y_f1.obj' 73 | +'asm\i386\obj\omf32\lzo1y_s1.obj' 74 | -------------------------------------------------------------------------------- /cpp/lzo/B/win64/ic.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 64-bit (Itanium) 4 | @echo // Intel C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=icl -nologo -MT 11 | set CF=-O2 -GF -W3 -Qvec-report0 %CFI% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | link -lib -nologo -out:%BLIB% @b\win64\vc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/win64/ic_dll.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 64-bit (Itanium) 4 | @echo // Intel C/C++ (DLL) 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=icl -nologo -MT 11 | set CF=-O2 -GF -W3 %CFI% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -D__LZO_EXPORT1#__declspec(dllexport) -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | %CC% -LD -Fe%BDLL% @b\win64\vc.rsp /link /map /def:b\win64\vc_dll.def 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/win64/vc.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 64-bit (AMD64 or Itanium) 4 | @echo // Microsoft Visual C/C++ 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=cl -nologo -MT 11 | set CF=-O2 -GF -W3 %CFI% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | link -lib -nologo -out:%BLIB% @b\win64\vc.rsp 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/win64/vc.rsp: -------------------------------------------------------------------------------- 1 | .\lzo1.obj 2 | .\lzo1_99.obj 3 | .\lzo1a.obj 4 | .\lzo1a_99.obj 5 | .\lzo1b_1.obj 6 | .\lzo1b_2.obj 7 | .\lzo1b_3.obj 8 | .\lzo1b_4.obj 9 | .\lzo1b_5.obj 10 | .\lzo1b_6.obj 11 | .\lzo1b_7.obj 12 | .\lzo1b_8.obj 13 | .\lzo1b_9.obj 14 | .\lzo1b_99.obj 15 | .\lzo1b_9x.obj 16 | .\lzo1b_cc.obj 17 | .\lzo1b_d1.obj 18 | .\lzo1b_d2.obj 19 | .\lzo1b_rr.obj 20 | .\lzo1b_xx.obj 21 | .\lzo1c_1.obj 22 | .\lzo1c_2.obj 23 | .\lzo1c_3.obj 24 | .\lzo1c_4.obj 25 | .\lzo1c_5.obj 26 | .\lzo1c_6.obj 27 | .\lzo1c_7.obj 28 | .\lzo1c_8.obj 29 | .\lzo1c_9.obj 30 | .\lzo1c_99.obj 31 | .\lzo1c_9x.obj 32 | .\lzo1c_cc.obj 33 | .\lzo1c_d1.obj 34 | .\lzo1c_d2.obj 35 | .\lzo1c_rr.obj 36 | .\lzo1c_xx.obj 37 | .\lzo1f_1.obj 38 | .\lzo1f_9x.obj 39 | .\lzo1f_d1.obj 40 | .\lzo1f_d2.obj 41 | .\lzo1x_1.obj 42 | .\lzo1x_1k.obj 43 | .\lzo1x_1l.obj 44 | .\lzo1x_1o.obj 45 | .\lzo1x_9x.obj 46 | .\lzo1x_d1.obj 47 | .\lzo1x_d2.obj 48 | .\lzo1x_d3.obj 49 | .\lzo1x_o.obj 50 | .\lzo1y_1.obj 51 | .\lzo1y_9x.obj 52 | .\lzo1y_d1.obj 53 | .\lzo1y_d2.obj 54 | .\lzo1y_d3.obj 55 | .\lzo1y_o.obj 56 | .\lzo1z_9x.obj 57 | .\lzo1z_d1.obj 58 | .\lzo1z_d2.obj 59 | .\lzo1z_d3.obj 60 | .\lzo2a_9x.obj 61 | .\lzo2a_d1.obj 62 | .\lzo2a_d2.obj 63 | .\lzo_crc.obj 64 | .\lzo_init.obj 65 | .\lzo_ptr.obj 66 | .\lzo_str.obj 67 | .\lzo_util.obj 68 | -------------------------------------------------------------------------------- /cpp/lzo/B/win64/vc_dll.bat: -------------------------------------------------------------------------------- 1 | @echo // Copyright (C) 1996-2017 Markus F.X.J. Oberhumer 2 | @echo // 3 | @echo // Windows 64-bit (AMD64 or Itanium) 4 | @echo // Microsoft Visual C/C++ (DLL) 5 | @echo // 6 | @call b\prepare.bat 7 | @if "%BECHO%"=="n" echo off 8 | 9 | 10 | set CC=cl -nologo -MT 11 | set CF=-O2 -GF -W3 %CFI% 12 | set LF=%BLIB% 13 | 14 | %CC% %CF% -D__LZO_EXPORT1#__declspec(dllexport) -c @b\src.rsp 15 | @if errorlevel 1 goto error 16 | %CC% -LD -Fe%BDLL% @b\win64\vc.rsp /link /map /def:b\win64\vc_dll.def 17 | @if errorlevel 1 goto error 18 | 19 | %CC% %CF% examples\dict.c %LF% 20 | @if errorlevel 1 goto error 21 | %CC% %CF% examples\lzopack.c %LF% 22 | @if errorlevel 1 goto error 23 | %CC% %CF% examples\precomp.c %LF% 24 | @if errorlevel 1 goto error 25 | %CC% %CF% examples\precomp2.c %LF% 26 | @if errorlevel 1 goto error 27 | %CC% %CF% examples\simple.c %LF% 28 | @if errorlevel 1 goto error 29 | 30 | %CC% %CF% lzotest\lzotest.c %LF% 31 | @if errorlevel 1 goto error 32 | 33 | %CC% %CF% -Iinclude\lzo minilzo\testmini.c minilzo\minilzo.c 34 | @if errorlevel 1 goto error 35 | 36 | 37 | @call b\done.bat 38 | @goto end 39 | :error 40 | @echo ERROR during build! 41 | :end 42 | @call b\unset.bat 43 | -------------------------------------------------------------------------------- /cpp/lzo/B/win64/vc_dll.def: -------------------------------------------------------------------------------- 1 | EXPORTS 2 | -------------------------------------------------------------------------------- /cpp/lzo/BUGS: -------------------------------------------------------------------------------- 1 | ============================================================================ 2 | LZO -- a real-time data compression library 3 | ============================================================================ 4 | 5 | LZO is free of any known bugs. 6 | 7 | Nevertheless LZO has been reported to break the optimizer of some 8 | compilers including gcc 2.7.2 (AIX, IRIX) and Watcom C 9.5. 9 | 10 | So if 'lzotest' reports data decompression errors you should recompile 11 | everything without optimizations and see if that fixes the problem. 12 | I'd like to hear about optimizer problems and possible workarounds. 13 | 14 | 15 | Known compiler problems: 16 | ------------------------ 17 | some versions of gcc use '-O2 -fno-strength-reduce' 18 | some versions of gcc use '-O2 -fno-schedule-insns -fno-schedule-insns2' 19 | Watcom C 9.5 compile with '-oneax' instead of '-oneatx' 20 | 21 | 22 | -------------------------------------------------------------------------------- /cpp/lzo/ChangeLog: -------------------------------------------------------------------------------- 1 | Sorry, no detailed ChangeLog available yet. 2 | 3 | Please see the file NEWS for a list of user visible changes. 4 | -------------------------------------------------------------------------------- /cpp/lzo/README: -------------------------------------------------------------------------------- 1 | ============================================================================ 2 | LZO -- a real-time data compression library 3 | ============================================================================ 4 | 5 | Please read the file doc/LZO.TXT for an introduction to LZO. 6 | See the file doc/LZO.FAQ for various tidbits of information. 7 | 8 | See the file NEWS for a list of major changes in the current release. 9 | 10 | See the file INSTALL for compilation and installation instructions. 11 | 12 | For a quick start how to use LZO look at examples/lzopack.c. 13 | 14 | 15 | Directory overview: 16 | ------------------- 17 | autoconf Autoconf configuration files (UNIX specific) 18 | B various support files for DOS, Windows, OS/2, ... 19 | doc documentation 20 | examples example programs 21 | include public header files 22 | minilzo a lightweight subset for easy inclusion in your project 23 | src library source 24 | tests more or less exotic test programs 25 | util some utility scripts 26 | 27 | 28 | Have fun, 29 | Markus 30 | 31 | http://www.oberhumer.com/opensource/lzo/ 32 | 33 | -------------------------------------------------------------------------------- /cpp/lzo/THANKS: -------------------------------------------------------------------------------- 1 | I want to thank the following people for giving feedback, doing 2 | beta-testing or helping me some other way: 3 | 4 | Charles W. Sandmann 5 | Frank Donahoe 6 | Holger Berger 7 | Jean-loup Gailly 8 | Laszlo Molnar 9 | Mark Adler 10 | Paul D. Eccles 11 | Rodolphe Ortalo 12 | William Magro 13 | Wolfgang Lugmayr 14 | Natascha 15 | -------------------------------------------------------------------------------- /cpp/lzo/asm/i386/00README.TXT: -------------------------------------------------------------------------------- 1 | 2 | Directory overview: 3 | =================== 4 | 5 | As writing portable assembler sources supporting different operating 6 | systems, compilers and assemblers has proven to be extremely painful, 7 | the assembler sources have been converted into a more portable 'db' 8 | format. Use these whenever possible. 9 | 10 | src_gas sources converted for portable gcc/gas syntax 11 | src_masm sources converted for portable masm/tasm/wasm syntax 12 | src_nasm sources converted for portable nasm syntax 13 | 14 | src assembler sources (you need the OpenSource nasm assembler) 15 | 16 | obj pre-assembled object files 17 | 18 | Also look 'src_XXX/all/asm_all.asm' which contains all assembler 19 | functions conveniently arranged into a single file. 20 | 21 | 22 | Notes: 23 | ====== 24 | 25 | - The assembler sources are designed for a flat 32-bit memory model 26 | running in protected mode - they should work with all i386 27 | 32-bit compilers around. 28 | 29 | - All functions expect a 'cdecl' (C stack based) calling convention. 30 | The function return value will be placed into 'eax'. 31 | All other registers are preserved. 32 | 33 | - Prototypes for the assembler functions can be found in . 34 | 35 | - For reasons of speed all fast assembler decompressors (having '_fast' 36 | in their name) can access (write to) up to 3 bytes past the end of 37 | the decompressed (output) block. Data past the end of the compressed 38 | (input) block is never accessed (read from). 39 | [ technical note: because data is transferred in 32-bit units ] 40 | 41 | - Finally you should test if the assembler versions are actually faster 42 | than the C version on your machine - some compilers can do a very good 43 | optimization job, and they also can optimize the code for a specific 44 | processor type. 45 | 46 | -------------------------------------------------------------------------------- /cpp/lzo/asm/i386/src/lzo1c_s1.S: -------------------------------------------------------------------------------- 1 | /* lzo1c_s1.S -- LZO1C decompression in assembler (i386 + gcc) 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /*********************************************************************** 30 | // 31 | ************************************************************************/ 32 | 33 | #include "lzo_asm.h" 34 | 35 | .text 36 | 37 | LZO_PUBLIC(lzo1c_decompress_asm) 38 | 39 | #include "enter.ash" 40 | #include "lzo1c_d.ash" 41 | #include "leave.ash" 42 | 43 | LZO_PUBLIC_END(lzo1c_decompress_asm) 44 | 45 | 46 | /* vim:set ts=4 sw=4 et: */ 47 | -------------------------------------------------------------------------------- /cpp/lzo/asm/i386/src/lzo1f_f1.S: -------------------------------------------------------------------------------- 1 | /* lzo1f_f1.S -- fast LZO1F decompression in assembler (i386 + gcc) 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /*********************************************************************** 30 | // 31 | ************************************************************************/ 32 | 33 | #include "lzo_asm.h" 34 | 35 | .text 36 | 37 | LZO_PUBLIC(lzo1f_decompress_asm_fast) 38 | 39 | #include "enter.ash" 40 | #include "lzo1f_d.ash" 41 | #include "leave.ash" 42 | 43 | LZO_PUBLIC_END(lzo1f_decompress_asm_fast) 44 | 45 | 46 | /* vim:set ts=4 sw=4 et: */ 47 | -------------------------------------------------------------------------------- /cpp/lzo/asm/i386/src/lzo1x_f1.S: -------------------------------------------------------------------------------- 1 | /* lzo1x_f1.S -- fast LZO1X decompression in assembler (i386 + gcc) 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /*********************************************************************** 30 | // 31 | ************************************************************************/ 32 | 33 | #define LZO_FAST 34 | 35 | #include "lzo_asm.h" 36 | 37 | .text 38 | 39 | LZO_PUBLIC(lzo1x_decompress_asm_fast) 40 | 41 | #include "enter.ash" 42 | #include "lzo1x_d.ash" 43 | #include "leave.ash" 44 | 45 | LZO_PUBLIC_END(lzo1x_decompress_asm_fast) 46 | 47 | 48 | /* vim:set ts=4 sw=4 et: */ 49 | -------------------------------------------------------------------------------- /cpp/lzo/asm/i386/src/lzo1x_s1.S: -------------------------------------------------------------------------------- 1 | /* lzo1x_s1.S -- LZO1X decompression in assembler (i386 + gcc) 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /*********************************************************************** 30 | // 31 | ************************************************************************/ 32 | 33 | #include "lzo_asm.h" 34 | 35 | .text 36 | 37 | LZO_PUBLIC(lzo1x_decompress_asm) 38 | 39 | #include "enter.ash" 40 | #include "lzo1x_d.ash" 41 | #include "leave.ash" 42 | 43 | LZO_PUBLIC_END(lzo1x_decompress_asm) 44 | 45 | 46 | /* vim:set ts=4 sw=4 et: */ 47 | -------------------------------------------------------------------------------- /cpp/lzo/asm/i386/src/lzo1y_f1.S: -------------------------------------------------------------------------------- 1 | /* lzo1y_f1.S -- fast LZO1Y decompression in assembler (i386 + gcc) 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /*********************************************************************** 30 | // 31 | ************************************************************************/ 32 | 33 | #define LZO_FAST 34 | 35 | #include "lzo_asm.h" 36 | 37 | .text 38 | 39 | LZO_PUBLIC(lzo1y_decompress_asm_fast) 40 | 41 | #define LZO1Y 42 | 43 | #include "enter.ash" 44 | #include "lzo1x_d.ash" 45 | #include "leave.ash" 46 | 47 | LZO_PUBLIC_END(lzo1y_decompress_asm_fast) 48 | 49 | 50 | /* vim:set ts=4 sw=4 et: */ 51 | -------------------------------------------------------------------------------- /cpp/lzo/asm/i386/src/lzo1y_s1.S: -------------------------------------------------------------------------------- 1 | /* lzo1y_s1.S -- LZO1Y decompression in assembler (i386 + gcc) 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /*********************************************************************** 30 | // 31 | ************************************************************************/ 32 | 33 | #include "lzo_asm.h" 34 | 35 | .text 36 | 37 | LZO_PUBLIC(lzo1y_decompress_asm) 38 | 39 | #define LZO1Y 40 | 41 | #include "enter.ash" 42 | #include "lzo1x_d.ash" 43 | #include "leave.ash" 44 | 45 | LZO_PUBLIC_END(lzo1y_decompress_asm) 46 | 47 | 48 | /* vim:set ts=4 sw=4 et: */ 49 | -------------------------------------------------------------------------------- /cpp/lzo/asm/i386/src_masm/asminit.def: -------------------------------------------------------------------------------- 1 | ; asminit.def -- 2 | ; 3 | ; This file is part of the LZO real-time data compression library. 4 | ; 5 | ; Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | ; All Rights Reserved. 7 | ; 8 | ; The LZO library is free software; you can redistribute it and/or 9 | ; modify it under the terms of the GNU General Public License as 10 | ; published by the Free Software Foundation; either version 2 of 11 | ; the License, or (at your option) any later version. 12 | ; 13 | ; The LZO library is distributed in the hope that it will be useful, 14 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | ; GNU General Public License for more details. 17 | ; 18 | ; You should have received a copy of the GNU General Public License 19 | ; along with the LZO library; see the file COPYING. 20 | ; If not, write to the Free Software Foundation, Inc., 21 | ; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | ; 23 | ; Markus F.X.J. Oberhumer 24 | ; 25 | ; http://www.oberhumer.com/opensource/lzo/ 26 | ; 27 | 28 | .386p 29 | .model flat 30 | .code 31 | 32 | ifdef __MASM__ 33 | option casemap:none 34 | endif 35 | ifdef __TASM__ 36 | endif 37 | ifdef __WASM__ 38 | endif 39 | -------------------------------------------------------------------------------- /cpp/lzo/autoconf/shtool: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pia-foss/mobile-android-openvpn-tunnel/4235a8412fc2dc9ebff58f008a5f75e0ab38b9cd/cpp/lzo/autoconf/shtool -------------------------------------------------------------------------------- /cpp/lzo/doc/LZOTEST.TXT: -------------------------------------------------------------------------------- 1 | The test driver 'lzotest' has grown into a fairly powerful program 2 | of it's own. Here is a short description of the various options. 3 | 4 | [ to be written - this is only a very first draft ] 5 | 6 | 7 | Usage: 8 | ====== 9 | 10 | lzotest [option..] file... 11 | 12 | 13 | Basic options: 14 | ============== 15 | 16 | -m# compression method 17 | -b# set input block size (default 262144, max 1310720) 18 | -n# number of compression/decompression runs 19 | -c# number of compression runs 20 | -d# number of decompression runs 21 | -S use safe decompressor (if available) 22 | -A use assembler decompressor (if available) 23 | -F use fast assembler decompressor (if available) 24 | -O optimize compressed data (if available) 25 | -s DIR process Calgary Corpus test suite in directory 'DIR' 26 | -@ read list of files to compress from stdin 27 | -q be quiet 28 | -L display software license 29 | 30 | 31 | More about '-m': 32 | ================ 33 | 34 | Use '-m' to list all available methods. 35 | 36 | You can select methods by number: 37 | -m71 38 | 39 | You can select methods by name: 40 | -mlzo1x-1 41 | -mlzo1x-999 42 | -mlzo1x-1(11) 43 | 44 | You can select some predefined method groups: 45 | -mall 46 | -mlzo 47 | -mm1 48 | -mm99 49 | -mm999 50 | -m1x999 51 | -m1y999 52 | 53 | You can specify multiple methods/groups separated by ',': 54 | -m1,2,3,4 55 | -m1,2,3,4,lzo1x-1,m99,81 56 | 57 | And finally you can use multiple '-m' options: 58 | -m962,972 -mm99,982,m1 59 | 60 | 61 | Other options: 62 | ============== 63 | 64 | --max-data-length=LEN 65 | 66 | --dict=FILENAME 67 | --max-dict-length=LEN 68 | 69 | --dump=FILENAME 70 | 71 | --adler32 72 | --crc32 73 | --execution-time 74 | --totals 75 | 76 | -------------------------------------------------------------------------------- /cpp/lzo/include/lzo/lzoutil.h: -------------------------------------------------------------------------------- 1 | /* lzoutil.h -- utility functions for use by applications 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #ifndef __LZOUTIL_H_INCLUDED 30 | #define __LZOUTIL_H_INCLUDED 1 31 | 32 | #ifndef __LZOCONF_H_INCLUDED 33 | #include 34 | #endif 35 | 36 | #ifdef __cplusplus 37 | extern "C" { 38 | #endif 39 | 40 | 41 | /*********************************************************************** 42 | // LZO-v1 deprecated macros (which were used in the old example programs) 43 | // 44 | // THIS FILE IS DEPRECATED. DO NOT USE. 45 | ************************************************************************/ 46 | 47 | #define lzo_alloc(a,b) (malloc((a)*(b))) 48 | #define lzo_malloc(a) (malloc(a)) 49 | #define lzo_free(a) (free(a)) 50 | 51 | #define lzo_fread(f,b,s) (fread(b,1,s,f)) 52 | #define lzo_fwrite(f,b,s) (fwrite(b,1,s,f)) 53 | 54 | 55 | #ifdef __cplusplus 56 | } /* extern "C" */ 57 | #endif 58 | 59 | #endif /* already included */ 60 | 61 | 62 | /* vim:set ts=4 sw=4 et: */ 63 | -------------------------------------------------------------------------------- /cpp/lzo/lzo2.pc.cmakein: -------------------------------------------------------------------------------- 1 | # 2 | # lzo2.pc -- LZO pkg-config configuration file 3 | # 4 | # This file is part of the LZO data compression library. 5 | # http://www.oberhumer.com/opensource/lzo/ 6 | # 7 | # Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 8 | # All Rights Reserved. 9 | # 10 | 11 | prefix=@CMAKE_INSTALL_PREFIX@ 12 | exec_prefix=@CMAKE_INSTALL_FULL_BINDIR@ 13 | includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ 14 | libdir=@CMAKE_INSTALL_FULL_LIBDIR@ 15 | 16 | Name: lzo2 17 | Version: @PROJECT_VERSION@ 18 | Description: LZO - a real-time data compression library 19 | URL: http://www.oberhumer.com/opensource/lzo/ 20 | Cflags: -I${includedir}/lzo 21 | Libs: -L${libdir} -llzo2 22 | -------------------------------------------------------------------------------- /cpp/lzo/lzo2.pc.in: -------------------------------------------------------------------------------- 1 | # 2 | # lzo2.pc -- LZO pkg-config configuration file 3 | # 4 | # This file is part of the LZO data compression library. 5 | # http://www.oberhumer.com/opensource/lzo/ 6 | # 7 | # Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 8 | # All Rights Reserved. 9 | # 10 | 11 | prefix=@prefix@ 12 | exec_prefix=@exec_prefix@ 13 | includedir=@includedir@ 14 | libdir=@libdir@ 15 | 16 | Name: lzo2 17 | Version: @PACKAGE_VERSION@ 18 | Description: LZO - a real-time data compression library 19 | URL: http://www.oberhumer.com/opensource/lzo/ 20 | Cflags: -I${includedir}/lzo 21 | Libs: -L${libdir} -llzo2 22 | -------------------------------------------------------------------------------- /cpp/lzo/src/config1.h: -------------------------------------------------------------------------------- 1 | /* config1.h -- configuration for the LZO1 algorithm 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /* WARNING: this file should *not* be used by applications. It is 30 | part of the implementation of the library and is subject 31 | to change. 32 | */ 33 | 34 | #ifndef __LZO_CONFIG1_H 35 | #define __LZO_CONFIG1_H 1 36 | 37 | #include "lzo_conf.h" 38 | #include 39 | 40 | #define LZO_NO_R1 1 41 | #include "config1a.h" 42 | 43 | #endif /* already included */ 44 | 45 | 46 | /* vim:set ts=4 sw=4 et: */ 47 | -------------------------------------------------------------------------------- /cpp/lzo/src/config1y.h: -------------------------------------------------------------------------------- 1 | /* config1y.h -- configuration for the LZO1Y algorithm 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /* WARNING: this file should *not* be used by applications. It is 30 | part of the implementation of the library and is subject 31 | to change. 32 | */ 33 | 34 | 35 | #ifndef __LZO_CONFIG1Y_H 36 | #define __LZO_CONFIG1Y_H 1 37 | 38 | #if !defined(LZO1Y) 39 | # define LZO1Y 1 40 | #endif 41 | 42 | #include "lzo_conf.h" 43 | #include 44 | 45 | #define M2_MAX_LEN 14 46 | #define M2_MAX_OFFSET 0x0400 47 | #include "config1x.h" 48 | 49 | #endif /* already included */ 50 | 51 | 52 | /* vim:set ts=4 sw=4 et: */ 53 | -------------------------------------------------------------------------------- /cpp/lzo/src/config1z.h: -------------------------------------------------------------------------------- 1 | /* config1z.h -- configuration for the LZO1Z algorithm 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /* WARNING: this file should *not* be used by applications. It is 30 | part of the implementation of the library and is subject 31 | to change. 32 | */ 33 | 34 | 35 | #ifndef __LZO_CONFIG1Z_H 36 | #define __LZO_CONFIG1Z_H 1 37 | 38 | #if !defined(LZO1Z) 39 | # define LZO1Z 1 40 | #endif 41 | 42 | #include "lzo_conf.h" 43 | #include 44 | 45 | #define M2_MAX_OFFSET 0x0700 46 | #include "config1x.h" 47 | 48 | #endif /* already included */ 49 | 50 | 51 | /* vim:set ts=4 sw=4 et: */ 52 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1_cm.ch: -------------------------------------------------------------------------------- 1 | /* lzo1_cm.ch -- implementation of the LZO1 compression algorithm 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /* WARNING: this file should *not* be used by applications. It is 30 | part of the implementation of the library and is subject 31 | to change. 32 | */ 33 | 34 | 35 | #include "lzo1a_cm.ch" 36 | 37 | 38 | /* vim:set ts=4 sw=4 et: */ 39 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_1.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_1.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 1 30 | 31 | #define DDBITS 0 32 | #define CLEVEL 1 33 | #include "compr1b.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_2.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_2.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 2 30 | 31 | #define DDBITS 0 32 | #define CLEVEL 2 33 | #include "compr1b.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_3.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_3.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 3 30 | 31 | #define DDBITS 0 32 | #define CLEVEL 3 33 | #include "compr1b.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_4.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_4.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 4 30 | 31 | #define DDBITS 1 32 | #define CLEVEL 2 33 | #include "compr1b.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_5.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_5.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 5 30 | 31 | #define DDBITS 1 32 | #define CLEVEL 3 33 | #include "compr1b.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_6.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_6.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 6 30 | 31 | #define DDBITS 1 32 | #define CLEVEL 5 33 | #include "compr1b.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_7.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_7.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 7 30 | 31 | #define DDBITS 2 32 | #define CLEVEL 3 33 | #include "compr1b.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_8.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_8.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 8 30 | 31 | #define DDBITS 2 32 | #define CLEVEL 8 33 | #include "compr1b.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_9.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_9.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 9 30 | 31 | #define DDBITS 2 32 | #define CLEVEL 9 33 | #include "compr1b.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_99.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_99.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 99 30 | 31 | #define DDBITS 3 32 | #define CLEVEL 9 33 | 34 | #define D_BITS 16 35 | #define MATCH_IP_END in_end 36 | #include "compr1b.h" 37 | 38 | /* vim:set ts=4 sw=4 et: */ 39 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_d1.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_d1.c -- LZO1B decompression 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1b.h" 30 | 31 | #undef LZO_TEST_OVERRUN 32 | #define DO_DECOMPRESS lzo1b_decompress 33 | 34 | #include "lzo1b_d.ch" 35 | 36 | /* vim:set ts=4 sw=4 et: */ 37 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_d2.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_d2.c -- LZO1B decompression with overrun testing 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1b.h" 30 | 31 | #define LZO_TEST_OVERRUN 1 32 | #define DO_DECOMPRESS lzo1b_decompress_safe 33 | 34 | #include "lzo1b_d.ch" 35 | 36 | /* vim:set ts=4 sw=4 et: */ 37 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1b_rr.c: -------------------------------------------------------------------------------- 1 | /* lzo1b_rr.c -- literal run handling 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1b.h" 30 | 31 | #include "lzo1b_r.ch" 32 | 33 | /* vim:set ts=4 sw=4 et: */ 34 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_1.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_1.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 1 30 | 31 | #define DDBITS 0 32 | #define CLEVEL 1 33 | #include "compr1c.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_2.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_2.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 2 30 | 31 | #define DDBITS 0 32 | #define CLEVEL 2 33 | #include "compr1c.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_3.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_3.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 3 30 | 31 | #define DDBITS 0 32 | #define CLEVEL 3 33 | #include "compr1c.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_4.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_4.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 4 30 | 31 | #define DDBITS 1 32 | #define CLEVEL 2 33 | #include "compr1c.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_5.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_5.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 5 30 | 31 | #define DDBITS 1 32 | #define CLEVEL 3 33 | #include "compr1c.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_6.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_6.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 6 30 | 31 | #define DDBITS 1 32 | #define CLEVEL 5 33 | #include "compr1c.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_7.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_7.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 7 30 | 31 | #define DDBITS 2 32 | #define CLEVEL 3 33 | #include "compr1c.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_8.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_8.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 8 30 | 31 | #define DDBITS 2 32 | #define CLEVEL 8 33 | #include "compr1c.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_9.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_9.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 9 30 | 31 | #define DDBITS 2 32 | #define CLEVEL 9 33 | #include "compr1c.h" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_99.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_99.c -- main internal configuration file for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define COMPRESS_ID 99 30 | 31 | #define DDBITS 3 32 | #define CLEVEL 9 33 | 34 | #define D_BITS 16 35 | #define MATCH_IP_END in_end 36 | #include "compr1c.h" 37 | 38 | /* vim:set ts=4 sw=4 et: */ 39 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_d1.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_d1.c -- LZO1C decompression 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1c.h" 30 | 31 | #undef LZO_TEST_OVERRUN 32 | #define DO_DECOMPRESS lzo1c_decompress 33 | 34 | #include "lzo1b_d.ch" 35 | 36 | /* vim:set ts=4 sw=4 et: */ 37 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_d2.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_d2.c -- LZO1C decompression with overrun testing 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1c.h" 30 | 31 | #define LZO_TEST_OVERRUN 1 32 | #define DO_DECOMPRESS lzo1c_decompress_safe 33 | 34 | #include "lzo1b_d.ch" 35 | 36 | #if defined(LZO_ARCH_I386) && defined(LZO_USE_ASM) 37 | LZO_EXTERN(int) lzo1c_decompress_asm_safe 38 | (const lzo_bytep src, lzo_uint src_len, 39 | lzo_bytep dst, lzo_uintp dst_len, 40 | lzo_voidp wrkmem); 41 | LZO_PUBLIC(int) lzo1c_decompress_asm_safe 42 | (const lzo_bytep src, lzo_uint src_len, 43 | lzo_bytep dst, lzo_uintp dst_len, 44 | lzo_voidp wrkmem) 45 | { 46 | return lzo1c_decompress_safe(src, src_len, dst, dst_len, wrkmem); 47 | } 48 | #endif 49 | 50 | /* vim:set ts=4 sw=4 et: */ 51 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1c_rr.c: -------------------------------------------------------------------------------- 1 | /* lzo1c_rr.c -- literal run handling 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1c.h" 30 | 31 | #include "lzo1b_r.ch" 32 | 33 | /* vim:set ts=4 sw=4 et: */ 34 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1f_d1.c: -------------------------------------------------------------------------------- 1 | /* lzo1f_d1.c -- LZO1F decompression 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1f.h" 30 | 31 | #undef LZO_TEST_OVERRUN 32 | #define DO_DECOMPRESS lzo1f_decompress 33 | 34 | #include "lzo1f_d.ch" 35 | 36 | /* vim:set ts=4 sw=4 et: */ 37 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1f_d2.c: -------------------------------------------------------------------------------- 1 | /* lzo1f_d2.c -- LZO1F decompression with overrun testing 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1f.h" 30 | 31 | #define LZO_TEST_OVERRUN 1 32 | #define DO_DECOMPRESS lzo1f_decompress_safe 33 | 34 | #include "lzo1f_d.ch" 35 | 36 | #if defined(LZO_ARCH_I386) && defined(LZO_USE_ASM) 37 | LZO_EXTERN(int) lzo1f_decompress_asm_fast_safe 38 | (const lzo_bytep src, lzo_uint src_len, 39 | lzo_bytep dst, lzo_uintp dst_len, 40 | lzo_voidp wrkmem); 41 | LZO_PUBLIC(int) lzo1f_decompress_asm_fast_safe 42 | (const lzo_bytep src, lzo_uint src_len, 43 | lzo_bytep dst, lzo_uintp dst_len, 44 | lzo_voidp wrkmem) 45 | { 46 | return lzo1f_decompress_safe(src, src_len, dst, dst_len, wrkmem); 47 | } 48 | #endif 49 | 50 | /* vim:set ts=4 sw=4 et: */ 51 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1x_1.c: -------------------------------------------------------------------------------- 1 | /* lzo1x_1.c -- LZO1X-1 compression 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "lzo_conf.h" 30 | #if 1 && defined(UA_GET_LE32) 31 | #undef LZO_DICT_USE_PTR 32 | #define LZO_DICT_USE_PTR 0 33 | #undef lzo_dict_t 34 | #define lzo_dict_t lzo_uint16_t 35 | #endif 36 | 37 | #define LZO_NEED_DICT_H 1 38 | #ifndef D_BITS 39 | #define D_BITS 14 40 | #endif 41 | #define D_INDEX1(d,p) d = DM(DMUL(0x21,DX3(p,5,5,6)) >> 5) 42 | #define D_INDEX2(d,p) d = (d & (D_MASK & 0x7ff)) ^ (D_HIGH | 0x1f) 43 | #if 1 44 | #define DINDEX(dv,p) DM(((DMUL(0x1824429d,dv)) >> (32-D_BITS))) 45 | #else 46 | #define DINDEX(dv,p) DM((dv) + ((dv) >> (32-D_BITS))) 47 | #endif 48 | #include "config1x.h" 49 | #define LZO_DETERMINISTIC !(LZO_DICT_USE_PTR) 50 | 51 | #ifndef DO_COMPRESS 52 | #define DO_COMPRESS lzo1x_1_compress 53 | #endif 54 | 55 | #include "lzo1x_c.ch" 56 | 57 | /* vim:set ts=4 sw=4 et: */ 58 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1x_1k.c: -------------------------------------------------------------------------------- 1 | /* lzo1x_1k.c -- LZO1X-1(11) compression (needs only 8kB work memory) 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "lzo_conf.h" 30 | #if 1 && defined(UA_GET_LE32) 31 | #undef LZO_DICT_USE_PTR 32 | #define LZO_DICT_USE_PTR 0 33 | #undef lzo_dict_t 34 | #define lzo_dict_t lzo_uint16_t 35 | #endif 36 | 37 | #define LZO_NEED_DICT_H 1 38 | #ifndef D_BITS 39 | #define D_BITS 11 40 | #endif 41 | #define D_INDEX1(d,p) d = DM(DMUL(0x21,DX2(p,3,5)) >> 5) 42 | #define D_INDEX2(d,p) d = d ^ D_MASK 43 | #if 1 44 | #define DINDEX(dv,p) DM(((DMUL(0x1824429d,dv)) >> (32-D_BITS))) 45 | #else 46 | #define DINDEX(dv,p) DM((dv) + ((dv) >> (32-D_BITS))) 47 | #endif 48 | #include "config1x.h" 49 | #define LZO_DETERMINISTIC !(LZO_DICT_USE_PTR) 50 | 51 | #ifndef DO_COMPRESS 52 | #define DO_COMPRESS lzo1x_1_11_compress 53 | #endif 54 | 55 | #include "lzo1x_c.ch" 56 | 57 | /* vim:set ts=4 sw=4 et: */ 58 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1x_1l.c: -------------------------------------------------------------------------------- 1 | /* lzo1x_1l.c -- LZO1X-1(12) compression 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "lzo_conf.h" 30 | #if 1 && defined(UA_GET_LE32) 31 | #undef LZO_DICT_USE_PTR 32 | #define LZO_DICT_USE_PTR 0 33 | #undef lzo_dict_t 34 | #define lzo_dict_t lzo_uint16_t 35 | #endif 36 | 37 | #define LZO_NEED_DICT_H 1 38 | #ifndef D_BITS 39 | #define D_BITS 12 40 | #endif 41 | #define D_INDEX1(d,p) d = DM(DMUL(0x21,DX2(p,4,5)) >> 5) 42 | #define D_INDEX2(d,p) d = d ^ D_MASK 43 | #if 1 44 | #define DINDEX(dv,p) DM(((DMUL(0x1824429d,dv)) >> (32-D_BITS))) 45 | #else 46 | #define DINDEX(dv,p) DM((dv) + ((dv) >> (32-D_BITS))) 47 | #endif 48 | #include "config1x.h" 49 | #define LZO_DETERMINISTIC !(LZO_DICT_USE_PTR) 50 | 51 | #ifndef DO_COMPRESS 52 | #define DO_COMPRESS lzo1x_1_12_compress 53 | #endif 54 | 55 | #include "lzo1x_c.ch" 56 | 57 | /* vim:set ts=4 sw=4 et: */ 58 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1x_1o.c: -------------------------------------------------------------------------------- 1 | /* lzo1x_1o.c -- LZO1X-1(15) compression 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "lzo_conf.h" 30 | #if 1 && defined(UA_GET_LE32) 31 | #undef LZO_DICT_USE_PTR 32 | #define LZO_DICT_USE_PTR 0 33 | #undef lzo_dict_t 34 | #define lzo_dict_t lzo_uint16_t 35 | #define D_BITS 13 36 | #endif 37 | 38 | #define LZO_NEED_DICT_H 1 39 | #ifndef D_BITS 40 | #define D_BITS 15 41 | #endif 42 | #define D_INDEX1(d,p) d = DM(DMUL(0x21,DX3(p,5,5,6)) >> 5) 43 | #define D_INDEX2(d,p) d = (d & (D_MASK & 0x7ff)) ^ (D_HIGH | 0x1f) 44 | #if 1 45 | #define DINDEX(dv,p) DM(((DMUL(0x1824429d,dv)) >> (32-D_BITS))) 46 | #else 47 | #define DINDEX(dv,p) DM((dv) + ((dv) >> (32-D_BITS))) 48 | #endif 49 | #include "config1x.h" 50 | #define LZO_DETERMINISTIC !(LZO_DICT_USE_PTR) 51 | 52 | #ifndef DO_COMPRESS 53 | #define DO_COMPRESS lzo1x_1_15_compress 54 | #endif 55 | 56 | #include "lzo1x_c.ch" 57 | 58 | /* vim:set ts=4 sw=4 et: */ 59 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1x_d1.c: -------------------------------------------------------------------------------- 1 | /* lzo1x_d1.c -- LZO1X decompression 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1x.h" 30 | 31 | #undef LZO_TEST_OVERRUN 32 | #define DO_DECOMPRESS lzo1x_decompress 33 | 34 | #include "lzo1x_d.ch" 35 | 36 | /* vim:set ts=4 sw=4 et: */ 37 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1x_o.c: -------------------------------------------------------------------------------- 1 | /* lzo1x_o.c -- LZO1X compressed data optimizer 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1x.h" 30 | 31 | #define DO_OPTIMIZE lzo1x_optimize 32 | 33 | #include "lzo1x_oo.ch" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1y_1.c: -------------------------------------------------------------------------------- 1 | /* lzo1y_1.c -- LZO1Y-1 compression 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "lzo_conf.h" 30 | #if 1 && defined(UA_GET_LE32) 31 | #undef LZO_DICT_USE_PTR 32 | #define LZO_DICT_USE_PTR 0 33 | #undef lzo_dict_t 34 | #define lzo_dict_t lzo_uint16_t 35 | #endif 36 | 37 | #define LZO_NEED_DICT_H 1 38 | #ifndef D_BITS 39 | #define D_BITS 14 40 | #endif 41 | #define D_INDEX1(d,p) d = DX3(p,5,5,6); d += d >> 5; d = DM(d) 42 | #define D_INDEX2(d,p) d = (d & (D_MASK & 0x7ff)) ^ (D_HIGH | 0x1f) 43 | #if 1 44 | #define DINDEX(dv,p) DM(((DMUL(0x1824429d,dv)) >> (32-D_BITS))) 45 | #else 46 | #define DINDEX(dv,p) DM((dv) + ((dv) >> (32-D_BITS))) 47 | #endif 48 | #include "config1y.h" 49 | #define LZO_DETERMINISTIC !(LZO_DICT_USE_PTR) 50 | 51 | #ifndef DO_COMPRESS 52 | #define DO_COMPRESS lzo1y_1_compress 53 | #endif 54 | 55 | #include "lzo1x_c.ch" 56 | 57 | /* vim:set ts=4 sw=4 et: */ 58 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1y_9x.c: -------------------------------------------------------------------------------- 1 | /* lzo1y_9x.c -- implementation of the LZO1Y-999 compression algorithm 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define LZO1Y 1 30 | #include "lzo1x_9x.c" 31 | 32 | /* vim:set ts=4 sw=4 et: */ 33 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1y_d1.c: -------------------------------------------------------------------------------- 1 | /* lzo1y_d1.c -- LZO1Y decompression 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1y.h" 30 | 31 | #undef LZO_TEST_OVERRUN 32 | #define DO_DECOMPRESS lzo1y_decompress 33 | 34 | #include "lzo1x_d.ch" 35 | 36 | /* vim:set ts=4 sw=4 et: */ 37 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1y_d3.c: -------------------------------------------------------------------------------- 1 | /* lzo1y_d3.c -- LZO1Y decompression with preset dictionary 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1y.h" 30 | 31 | #define lzo1x_decompress_dict_safe lzo1y_decompress_dict_safe 32 | 33 | #include "lzo1x_d3.c" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1y_o.c: -------------------------------------------------------------------------------- 1 | /* lzo1y_o.c -- LZO1Y compressed data optimizer 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1y.h" 30 | 31 | #define DO_OPTIMIZE lzo1y_optimize 32 | 33 | #include "lzo1x_oo.ch" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1z_9x.c: -------------------------------------------------------------------------------- 1 | /* lzo1z_9x.c -- implementation of the LZO1Z-999 compression algorithm 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #define LZO1Z 1 30 | #include "lzo1x_9x.c" 31 | 32 | /* vim:set ts=4 sw=4 et: */ 33 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1z_d1.c: -------------------------------------------------------------------------------- 1 | /* lzo1z_d1.c -- LZO1Z decompression 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1z.h" 30 | 31 | #undef LZO_TEST_OVERRUN 32 | #define DO_DECOMPRESS lzo1z_decompress 33 | 34 | #include "lzo1x_d.ch" 35 | 36 | /* vim:set ts=4 sw=4 et: */ 37 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1z_d2.c: -------------------------------------------------------------------------------- 1 | /* lzo1z_d2.c -- LZO1Z decompression with overrun testing 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1z.h" 30 | 31 | #define LZO_TEST_OVERRUN 1 32 | #define DO_DECOMPRESS lzo1z_decompress_safe 33 | 34 | #include "lzo1x_d.ch" 35 | 36 | /* vim:set ts=4 sw=4 et: */ 37 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo1z_d3.c: -------------------------------------------------------------------------------- 1 | /* lzo1z_d3.c -- LZO1Z decompression with preset dictionary 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config1z.h" 30 | 31 | #define lzo1x_decompress_dict_safe lzo1z_decompress_dict_safe 32 | 33 | #include "lzo1x_d3.c" 34 | 35 | /* vim:set ts=4 sw=4 et: */ 36 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo2a_d1.c: -------------------------------------------------------------------------------- 1 | /* lzo2a_d1.c -- LZO2A decompression with overrun testing 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config2a.h" 30 | 31 | #undef LZO_TEST_OVERRUN 32 | #define DO_DECOMPRESS lzo2a_decompress 33 | 34 | #include "lzo2a_d.ch" 35 | 36 | /* vim:set ts=4 sw=4 et: */ 37 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo2a_d2.c: -------------------------------------------------------------------------------- 1 | /* lzo2a_d2.c -- LZO2A decompression with overrun testing 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "config2a.h" 30 | 31 | #define LZO_TEST_OVERRUN 1 32 | #define DO_DECOMPRESS lzo2a_decompress_safe 33 | 34 | #include "lzo2a_d.ch" 35 | 36 | /* vim:set ts=4 sw=4 et: */ 37 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo_dll.ch: -------------------------------------------------------------------------------- 1 | /* lzo_dll.ch -- DLL initialization of the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /*********************************************************************** 30 | // Windows 16 bit + Watcom C + DLL 31 | ************************************************************************/ 32 | 33 | #if (LZO_OS_WIN16 && LZO_CC_WATCOMC) && defined(__SW_BD) 34 | 35 | /* don't pull in - we don't need it */ 36 | #if 0 37 | BOOL FAR PASCAL LibMain ( HANDLE hInstance, WORD wDataSegment, 38 | WORD wHeapSize, LPSTR lpszCmdLine ) 39 | #else 40 | int __far __pascal LibMain ( int a, short b, short c, long d ) 41 | #endif 42 | { 43 | LZO_UNUSED(a); LZO_UNUSED(b); LZO_UNUSED(c); LZO_UNUSED(d); 44 | return 1; 45 | } 46 | 47 | #endif 48 | 49 | 50 | /* vim:set ts=4 sw=4 et: */ 51 | -------------------------------------------------------------------------------- /cpp/lzo/src/lzo_str.c: -------------------------------------------------------------------------------- 1 | /* lzo_str.c -- string functions for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | #include "lzo_conf.h" 30 | 31 | #undef lzo_memcmp 32 | #undef lzo_memcpy 33 | #undef lzo_memmove 34 | #undef lzo_memset 35 | 36 | 37 | /*********************************************************************** 38 | // slow but portable stuff, only used in assertions 39 | ************************************************************************/ 40 | 41 | #define lzo_hsize_t lzo_uint 42 | #define lzo_hvoid_p lzo_voidp 43 | #define lzo_hbyte_p lzo_bytep 44 | #define LZOLIB_PUBLIC(r,f) LZO_PUBLIC(r) f 45 | #ifndef __LZOLIB_FUNCNAME 46 | #define __LZOLIB_FUNCNAME(f) f 47 | #endif 48 | #define lzo_hmemcmp __LZOLIB_FUNCNAME(lzo_memcmp) 49 | #define lzo_hmemcpy __LZOLIB_FUNCNAME(lzo_memcpy) 50 | #define lzo_hmemmove __LZOLIB_FUNCNAME(lzo_memmove) 51 | #define lzo_hmemset __LZOLIB_FUNCNAME(lzo_memset) 52 | #define LZO_WANT_ACCLIB_HMEMCPY 1 53 | #include "lzo_supp.h" 54 | #undef LZOLIB_PUBLIC 55 | 56 | 57 | /* vim:set ts=4 sw=4 et: */ 58 | -------------------------------------------------------------------------------- /cpp/lzo/src/stats1c.h: -------------------------------------------------------------------------------- 1 | /* stats1c.h -- statistics for the the LZO library 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | 29 | /* WARNING: this file should *not* be used by applications. It is 30 | part of the implementation of the library and is subject 31 | to change. 32 | */ 33 | 34 | 35 | #ifndef __LZO_STATS1C_H 36 | #define __LZO_STATS1C_H 1 37 | 38 | #define lzo1b_stats_t lzo1c_stats_t 39 | #define lzo1b_stats lzo1c_stats 40 | #define _lzo1b_stats_init _lzo1c_stats_init 41 | #define _lzo1b_stats_calc _lzo1c_stats_calc 42 | 43 | #include "stats1b.h" 44 | 45 | #endif /* already included */ 46 | 47 | 48 | /* vim:set ts=4 sw=4 et: */ 49 | -------------------------------------------------------------------------------- /cpp/lzo/tests/promote.c: -------------------------------------------------------------------------------- 1 | /* promote.c -- test intergral promotion 2 | 3 | This file is part of the LZO real-time data compression library. 4 | 5 | Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 6 | All Rights Reserved. 7 | 8 | The LZO library is free software; you can redistribute it and/or 9 | modify it under the terms of the GNU General Public License as 10 | published by the Free Software Foundation; either version 2 of 11 | the License, or (at your option) any later version. 12 | 13 | The LZO library is distributed in the hope that it will be useful, 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 | GNU General Public License for more details. 17 | 18 | You should have received a copy of the GNU General Public License 19 | along with the LZO library; see the file COPYING. 20 | If not, write to the Free Software Foundation, Inc., 21 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 22 | 23 | Markus F.X.J. Oberhumer 24 | 25 | http://www.oberhumer.com/opensource/lzo/ 26 | */ 27 | 28 | #include 29 | 30 | #if defined(_MSC_VER) && (_MSC_VER+0 >= 1000) 31 | /* disable "unreachable code" warnings */ 32 | # pragma warning(disable: 4702) 33 | #endif 34 | 35 | int main(int argc, char *argv[]) 36 | { 37 | unsigned char c; 38 | int s; 39 | 40 | if (argc < 0 && argv == NULL) /* avoid warning about unused args */ 41 | return 0; 42 | 43 | c = (unsigned char) (1 << (8 * sizeof(char) - 1)); 44 | s = 8 * (int) (sizeof(int) - sizeof(char)); 45 | 46 | printf("Integral promotion: "); 47 | { 48 | const int u = (c << s) > 0; 49 | if (u) 50 | { 51 | printf("Classic C (unsigned-preserving)\n"); 52 | printf("%d %d %uU\n", c, s, (unsigned)c << s); 53 | return 1; 54 | } 55 | else 56 | { 57 | printf("ANSI C (value-preserving)\n"); 58 | printf("%d %d %d\n", c, s, c << s); 59 | return 0; 60 | } 61 | } 62 | } 63 | 64 | /* vim:set ts=4 sw=4 et: */ 65 | -------------------------------------------------------------------------------- /cpp/lzo/util/check.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -e 3 | 4 | # 5 | # usage: util/check.sh [directory] 6 | # 7 | # This script runs lzotest with all algorithms 8 | # on a complete directory tree. 9 | # It is not suitable for accurate timings. 10 | # 11 | # Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 12 | # 13 | 14 | if test "X$LZOTEST" = X; then 15 | LZOTEST="./lzotest/lzotest" 16 | for d in ./lzotest .; do 17 | for ext in "" .exe .out; do 18 | if test -f "$d/lzotest$ext" && test -x "$d/lzotest$ext"; then 19 | LZOTEST="$d/lzotest$ext" 20 | break 2 21 | fi 22 | done 23 | done 24 | fi 25 | 26 | dir="${1-.}" 27 | 28 | TMPFILE="/tmp/lzotest_$$.tmp" 29 | rm -f "$TMPFILE" 30 | (find "$dir/." -type f -print | LC_ALL=C sort > "$TMPFILE") || true 31 | 32 | ## methods=`"$LZOTEST" -m | sed -n 's/^ *-m\([0-9]*\).*/\1/p'` 33 | ## methods="9721 9722 9723 9724 9725 9726 9727 9728 9729" 34 | methods="21 31 1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 18 19 61 71 81" 35 | methods="$methods 111 112 115" 36 | methods="$methods 921 931 901 911" 37 | methods="$methods 902 912 942 962 972 982 992" 38 | ##methods="71 972" 39 | ##methods="1101 1102 1103 1104 1105 1106 1107" 40 | 41 | LFLAGS="-q -T -n2 -S" 42 | LFLAGS="-q -T -n2" 43 | 44 | for m in $methods; do 45 | cat "$TMPFILE" | "$LZOTEST" "-m$m" -@ $LFLAGS 46 | done 47 | 48 | rm -f "$TMPFILE" 49 | echo "Done." 50 | exit 0 51 | 52 | # vim:set ts=4 sw=4 et: 53 | -------------------------------------------------------------------------------- /cpp/lzo/util/checkasm.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -e 3 | 4 | # 5 | # usage: util/checkasm.sh [directory] 6 | # 7 | # This script runs lzotest with all assembler decompressors 8 | # on a complete directory tree. 9 | # It is not suitable for accurate timings. 10 | # 11 | # Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 12 | # 13 | 14 | if test "X$LZOTEST" = X; then 15 | LZOTEST="./lzotest/lzotest" 16 | for d in ./lzotest .; do 17 | for ext in "" .exe .out; do 18 | if test -f "$d/lzotest$ext" && test -x "$d/lzotest$ext"; then 19 | LZOTEST="$d/lzotest$ext" 20 | break 2 21 | fi 22 | done 23 | done 24 | fi 25 | 26 | dir="${1-.}" 27 | 28 | TMPFILE="/tmp/lzotest_$$.tmp" 29 | rm -f "$TMPFILE" 30 | (find "$dir/." -type f -print | LC_ALL=C sort > "$TMPFILE") || true 31 | 32 | LFLAGS="-q" 33 | 34 | for m in 11; do 35 | cat "$TMPFILE" | "$LZOTEST" -m${m} -@ $LFLAGS -A 36 | cat "$TMPFILE" | "$LZOTEST" -m${m} -@ $LFLAGS -A -S 37 | done 38 | 39 | for m in 61; do 40 | cat "$TMPFILE" | "$LZOTEST" -m${m} -@ $LFLAGS -F 41 | cat "$TMPFILE" | "$LZOTEST" -m${m} -@ $LFLAGS -F -S 42 | done 43 | 44 | for m in 71 81; do 45 | cat "$TMPFILE" | "$LZOTEST" -m${m} -@ $LFLAGS -A 46 | cat "$TMPFILE" | "$LZOTEST" -m${m} -@ $LFLAGS -A -S 47 | cat "$TMPFILE" | "$LZOTEST" -m${m} -@ $LFLAGS -F 48 | cat "$TMPFILE" | "$LZOTEST" -m${m} -@ $LFLAGS -F -S 49 | done 50 | 51 | rm -f "$TMPFILE" 52 | echo "Done." 53 | exit 0 54 | 55 | # vim:set ts=4 sw=4 et: 56 | -------------------------------------------------------------------------------- /cpp/lzo/util/notime.pl: -------------------------------------------------------------------------------- 1 | #! /usr/bin/perl 2 | ## vim:set ts=4 sw=4 et: -*- coding: utf-8 -*- 3 | ## 4 | ##---------------------------------------------------------------------------## 5 | ## 6 | ## Author: 7 | ## Markus F.X.J. Oberhumer 8 | ## 9 | ## Description: 10 | ## Remove timing values from a table created by table.pl 11 | ## 12 | ## Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 13 | ## 14 | ##---------------------------------------------------------------------------## 15 | 16 | 17 | while (<>) { 18 | if (substr($_,56) =~ /^\s+[\d\.]+\s+[\d\.]+\s+\|\s*\n$/) { 19 | substr($_,56) = " 0.000 0.000 |\n"; 20 | } 21 | print; 22 | } 23 | 24 | exit(0); 25 | 26 | -------------------------------------------------------------------------------- /cpp/lzo/util/overlap.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | set -e 3 | 4 | # 5 | # usage: util/overlap.sh [directory] 6 | # 7 | # This script runs the overlap example program 8 | # on a complete directory tree. 9 | # 10 | # Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 11 | # 12 | 13 | OVERLAP="./examples/overlap" 14 | for d in ./examples .; do 15 | for ext in "" .exe .out; do 16 | if test -f "$d/overlap$ext" && test -x "$d/overlap$ext"; then 17 | OVERLAP="$d/overlap$ext" 18 | break 2 19 | fi 20 | done 21 | done 22 | 23 | dir="${1-.}" 24 | 25 | TMPFILE="/tmp/lzo_$$.tmp" 26 | rm -f "$TMPFILE" 27 | (find "$dir/." -type f -print0 | LC_ALL=C sort -z > "$TMPFILE") || true 28 | 29 | cat "$TMPFILE" | xargs -0 -r "$OVERLAP" 30 | 31 | rm -f "$TMPFILE" 32 | echo "Done." 33 | exit 0 34 | 35 | # vim:set ts=4 sw=4 et: 36 | -------------------------------------------------------------------------------- /cpp/lzo/util/shortf.pl: -------------------------------------------------------------------------------- 1 | #! /usr/bin/perl 2 | ## vim:set ts=4 sw=4 et: -*- coding: utf-8 -*- 3 | ## 4 | ##---------------------------------------------------------------------------## 5 | ## 6 | ## Author: 7 | ## Markus F.X.J. Oberhumer 8 | ## 9 | ## Description: 10 | ## Create short files for compression test 11 | ## 12 | ## Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 13 | ## 14 | ##---------------------------------------------------------------------------## 15 | 16 | $c = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; 17 | $c = "\x00\x01\x02"; 18 | $c = "\x00"; 19 | 20 | $x = $c x 1024; 21 | 22 | for $i (0 .. 50) { 23 | $name = sprintf("f%04d.dat",$i); 24 | open(OUTFILE,">$name") || die "$0: cannot open '$name': $!"; 25 | binmode(OUTFILE); 26 | print OUTFILE substr($x,0,$i); 27 | close(OUTFILE); 28 | } 29 | 30 | exit(0); 31 | -------------------------------------------------------------------------------- /cpp/lzo/util/uncompr.pl: -------------------------------------------------------------------------------- 1 | #! /usr/bin/perl 2 | ## vim:set ts=4 sw=4 et: -*- coding: utf-8 -*- 3 | ## 4 | ##---------------------------------------------------------------------------## 5 | ## 6 | ## Author: 7 | ## Markus F.X.J. Oberhumer 8 | ## 9 | ## Description: 10 | ## Create incompressible files for compression test 11 | ## 12 | ## Copyright (C) 1996-2017 Markus Franz Xaver Johannes Oberhumer 13 | ## 14 | ##---------------------------------------------------------------------------## 15 | 16 | $x = ' ' x 65536; 17 | $i = 0; 18 | while ($i < 65536) { 19 | substr($x,$i,1) = pack('C',rand(256)); 20 | $i++; 21 | } 22 | 23 | for $i (1,2,4,8,16,32,64) { 24 | $name = sprintf("u%04d.dat",$i); 25 | open(OUTFILE,">$name") || die "$0: cannot open '$name': $!"; 26 | binmode(OUTFILE); 27 | print OUTFILE substr($x,0,$i*1024); 28 | close(OUTFILE); 29 | } 30 | 31 | exit(0); 32 | -------------------------------------------------------------------------------- /cpp/minivpn/minivpn.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pia-foss/mobile-android-openvpn-tunnel/4235a8412fc2dc9ebff58f008a5f75e0ab38b9cd/cpp/minivpn/minivpn.c -------------------------------------------------------------------------------- /cpp/opvpnutil/jniglue.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | 7 | #include "jniglue.h" 8 | 9 | jint JNI_OnLoad(JavaVM *vm, void *reserved) { 10 | #ifndef NDEBUG 11 | __android_log_write(ANDROID_LOG_DEBUG,"openvpn", "Loading openvpn native library $id$ compiled on " __DATE__ " " __TIME__ ); 12 | #endif 13 | return JNI_VERSION_1_2; 14 | } 15 | 16 | 17 | void android_openvpn_log(int level,const char* prefix,const char* prefix_sep,const char* m1) 18 | { 19 | __android_log_print(ANDROID_LOG_DEBUG,"openvpn","%s%s%s",prefix,prefix_sep,m1); 20 | } 21 | 22 | void Java_de_blinkt_openvpn_core_NativeUtils_jniclose(JNIEnv *env,jclass jo, jint fd) 23 | { 24 | int ret = close(fd); 25 | } 26 | 27 | 28 | //! Hack to get the current installed ABI of the libraries. See also https://github.com/schwabe/ics-openvpn/issues/391 29 | jstring Java_de_blinkt_openvpn_core_NativeUtils_getNativeAPI(JNIEnv *env, jclass jo) 30 | { 31 | 32 | return (*env)->NewStringUTF(env, TARGET_ARCH_ABI); 33 | } 34 | -------------------------------------------------------------------------------- /cpp/opvpnutil/jniglue.h: -------------------------------------------------------------------------------- 1 | // 2 | // jniglue.h 3 | // xcopenvpn 4 | // 5 | // Created by Arne Schwabe on 29.03.12. 6 | // Copyright (c) 2012 Universität Paderborn. All rights reserved. 7 | // 8 | 9 | #ifndef xcopenvpn_jniglue_h 10 | #define xcopenvpn_jniglue_h 11 | void android_openvpn_log(int level,const char* prefix,const char* prefix_sep,const char* m1); 12 | #endif 13 | 14 | #ifdef __cplusplus 15 | extern "C" { 16 | #endif 17 | int jniThrowException(JNIEnv* env, const char* className, const char* msg); 18 | 19 | #ifdef __cplusplus 20 | } 21 | #endif 22 | -------------------------------------------------------------------------------- /cpp/tools.cmake: -------------------------------------------------------------------------------- 1 | FUNCTION(PREPEND var prefix) 2 | SET(listVar "") 3 | FOREACH(f ${ARGN}) 4 | LIST(APPEND listVar "${prefix}/${f}") 5 | ENDFOREACH(f) 6 | SET(${var} "${listVar}" PARENT_SCOPE) 7 | ENDFUNCTION(PREPEND) 8 | -------------------------------------------------------------------------------- /src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 16 | 17 | 18 | 19 | 20 | 24 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /src/main/aidl/com/privateinternetaccess/android/IPIAServiceStatus.aidl: -------------------------------------------------------------------------------- 1 | // IPIAServiceStatus.aidl 2 | package com.privateinternetaccess.android; 3 | 4 | // Declare any non-default types here with import statements 5 | 6 | import com.privateinternetaccess.android.IPIAStatusCallbacks; 7 | 8 | interface IPIAServiceStatus { 9 | void registerStatusCallback(in IPIAStatusCallbacks cb); 10 | void unregisterStatusCallback(in IPIAStatusCallbacks cb); 11 | 12 | void stopKillSwitchIfActive(); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /src/main/aidl/com/privateinternetaccess/android/IPIAStatusCallbacks.aidl: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012-2016 Arne Schwabe 3 | * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt 4 | */ 5 | 6 | package com.privateinternetaccess.android; 7 | 8 | 9 | interface IPIAStatusCallbacks { 10 | /** 11 | * Called when the service has a new status for you. 12 | */ 13 | oneway void triggerUpdateKillState(boolean inKillSwitch); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/aidl/de/blinkt/openvpn/core/ConnectionStatus.aidl: -------------------------------------------------------------------------------- 1 | package de.blinkt.openvpn.core; 2 | 3 | parcelable ConnectionStatus; -------------------------------------------------------------------------------- /src/main/aidl/de/blinkt/openvpn/core/IOpenVPNServiceInternal.aidl: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012-2016 Arne Schwabe 3 | * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt 4 | */ 5 | 6 | package de.blinkt.openvpn.core; 7 | 8 | import android.os.ParcelFileDescriptor; 9 | 10 | 11 | /** 12 | * Created by arne on 15.11.16. 13 | */ 14 | 15 | interface IOpenVPNServiceInternal { 16 | 17 | boolean protect(in ParcelFileDescriptor fd); 18 | 19 | void userPause(boolean b); 20 | 21 | /** 22 | * @param replaceConnection True if the VPN is connected by a new connection. 23 | * @return true if there was a process that has been send a stop signal 24 | */ 25 | boolean stopVPN(boolean replaceConnection); 26 | } 27 | -------------------------------------------------------------------------------- /src/main/aidl/de/blinkt/openvpn/core/IServiceStatus.aidl: -------------------------------------------------------------------------------- 1 | // StatusIPC.aidl 2 | package de.blinkt.openvpn.core; 3 | 4 | // Declare any non-default types here with import statements 5 | import de.blinkt.openvpn.core.IStatusCallbacks; 6 | import android.os.ParcelFileDescriptor; 7 | import de.blinkt.openvpn.core.TrafficHistory; 8 | 9 | 10 | interface IServiceStatus { 11 | /** 12 | * Registers to receive OpenVPN Status Updates and gets a 13 | * ParcelFileDescript back that contains the log up to that point 14 | */ 15 | ParcelFileDescriptor registerStatusCallback(in IStatusCallbacks cb); 16 | 17 | /** 18 | * Remove a previously registered callback interface. 19 | */ 20 | void unregisterStatusCallback(in IStatusCallbacks cb); 21 | 22 | /** 23 | * Returns the last connedcted VPN 24 | */ 25 | String getLastConnectedVPN(); 26 | 27 | /** 28 | * Sets a cached password 29 | */ 30 | void setCachedPassword(in String uuid, int type, String password); 31 | 32 | /** 33 | * Gets the traffic history 34 | */ 35 | TrafficHistory getTrafficHistory(); 36 | } 37 | -------------------------------------------------------------------------------- /src/main/aidl/de/blinkt/openvpn/core/IStatusCallbacks.aidl: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012-2016 Arne Schwabe 3 | * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt 4 | */ 5 | 6 | package de.blinkt.openvpn.core; 7 | 8 | import de.blinkt.openvpn.core.LogItem; 9 | import de.blinkt.openvpn.core.ConnectionStatus; 10 | 11 | 12 | 13 | interface IStatusCallbacks { 14 | /** 15 | * Called when the service has a new status for you. 16 | */ 17 | oneway void newLogItem(in LogItem item); 18 | 19 | oneway void updateStateString(in String state, in String msg, in int resid, in ConnectionStatus level); 20 | 21 | oneway void updateByteCount(long inBytes, long outBytes); 22 | 23 | oneway void connectedVPN(String uuid); 24 | } 25 | -------------------------------------------------------------------------------- /src/main/aidl/de/blinkt/openvpn/core/LogItem.aidl: -------------------------------------------------------------------------------- 1 | package de.blinkt.openvpn.core; 2 | 3 | parcelable LogItem; -------------------------------------------------------------------------------- /src/main/aidl/de/blinkt/openvpn/core/TrafficHistory.aidl: -------------------------------------------------------------------------------- 1 | package de.blinkt.openvpn.core; 2 | 3 | 4 | parcelable TrafficHistory; -------------------------------------------------------------------------------- /src/main/importicsopenvpn.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | # This script should only be used if you know what you doing and requires careful inspection/modification after copying 3 | 4 | for path in java/de/blinkt/openvpn/core/ java/de/blinkt/openvpn/VpnProfile.java 5 | do 6 | rm -rv $path 7 | rsync -Pa ~/software/icsopenvpn/main/src/main/$path $path 8 | done 9 | -------------------------------------------------------------------------------- /src/main/java/com/privateinternetaccess/android/PIACallbacks.java: -------------------------------------------------------------------------------- 1 | package com.privateinternetaccess.android; 2 | 3 | import android.app.Activity; 4 | import android.content.Context; 5 | 6 | import de.blinkt.openvpn.VpnProfile; 7 | 8 | /** 9 | * Created by arne on 06.10.17. 10 | */ 11 | 12 | public interface PIACallbacks { 13 | boolean isKillSwitchEnabled(Context c); 14 | 15 | VpnProfile getAlwaysOnProfile(); 16 | 17 | Class getMainClass(); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/privateinternetaccess/android/PIAOpenVPNTunnelLibrary.java: -------------------------------------------------------------------------------- 1 | package com.privateinternetaccess.android; 2 | 3 | import android.content.Context; 4 | import android.os.Build; 5 | 6 | import de.blinkt.openvpn.core.ICSOpenVPNApplication; 7 | import de.blinkt.openvpn.core.OpenVPNService; 8 | import de.blinkt.openvpn.core.VPNNotifications; 9 | 10 | /** 11 | * Created by arne on 06.10.17. 12 | */ 13 | 14 | public class PIAOpenVPNTunnelLibrary { 15 | private static PIAStatusListener mPIAStatusListener; 16 | 17 | public static VPNNotifications mNotifications; 18 | public static PIACallbacks mCallbacks; 19 | 20 | /** 21 | * Configures and initialises the OpenVPN library. 22 | * @param c should be getApplicationContext() 23 | * @param notifications 24 | * @param callbacks 25 | */ 26 | 27 | public static void init(Context c, VPNNotifications notifications, PIACallbacks callbacks){ 28 | ICSOpenVPNApplication.init(c); 29 | if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) 30 | ICSOpenVPNApplication.createNotificationChannels(c); 31 | 32 | 33 | mPIAStatusListener = new PIAStatusListener(); 34 | mPIAStatusListener.init(c); 35 | 36 | 37 | 38 | mNotifications = notifications; 39 | 40 | mCallbacks = callbacks; 41 | OpenVPNService.setNotificationActivityClass(mCallbacks.getMainClass()); 42 | 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/privateinternetaccess/android/PIAStatusListener.java: -------------------------------------------------------------------------------- 1 | package com.privateinternetaccess.android; 2 | 3 | import android.content.ComponentName; 4 | import android.content.Context; 5 | import android.content.Intent; 6 | import android.content.ServiceConnection; 7 | import android.os.IBinder; 8 | import android.os.RemoteException; 9 | 10 | import de.blinkt.openvpn.core.VpnStatus; 11 | 12 | 13 | public class PIAStatusListener { 14 | private ServiceConnection mConnection = new ServiceConnection() { 15 | 16 | 17 | @Override 18 | public void onServiceConnected(ComponentName className, 19 | IBinder service) { 20 | // We've bound to LocalService, cast the IBinder and get LocalService instance 21 | IPIAServiceStatus serviceStatus = IPIAServiceStatus.Stub.asInterface(service); 22 | try { 23 | /* Check if this a local service ... */ 24 | if (service.queryLocalInterface("com.privateinternetaccess.android.IPIAServiceStatus") == null) { 25 | // Not a local service 26 | serviceStatus.registerStatusCallback(mCallback); 27 | } 28 | 29 | } catch (RemoteException e) { 30 | e.printStackTrace(); 31 | VpnStatus.logException(e); 32 | } 33 | } 34 | 35 | @Override 36 | public void onServiceDisconnected(ComponentName arg0) { 37 | 38 | } 39 | 40 | }; 41 | 42 | public void init(Context c) { 43 | Intent intent = new Intent(c, PIAStatusService.class); 44 | c.bindService(intent, mConnection, Context.BIND_AUTO_CREATE); 45 | } 46 | 47 | 48 | private IPIAStatusCallbacks.Stub mCallback = new IPIAStatusCallbacks.Stub() 49 | { 50 | @Override 51 | public void triggerUpdateKillState(boolean inKillSwitch) throws RemoteException { 52 | PIAKillSwitchStatus.triggerUpdateKillState(inKillSwitch); 53 | } 54 | }; 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/de/blinkt/openvpn/core/CIDRIP.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012-2016 Arne Schwabe 3 | * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt 4 | */ 5 | 6 | package de.blinkt.openvpn.core; 7 | 8 | import java.util.Locale; 9 | 10 | class CIDRIP { 11 | String mIp; 12 | int len; 13 | 14 | 15 | public CIDRIP(String ip, String mask) { 16 | mIp = ip; 17 | long netmask = getInt(mask); 18 | 19 | // Add 33. bit to ensure the loop terminates 20 | netmask += 1l << 32; 21 | 22 | int lenZeros = 0; 23 | while ((netmask & 0x1) == 0) { 24 | lenZeros++; 25 | netmask = netmask >> 1; 26 | } 27 | // Check if rest of netmask is only 1s 28 | if (netmask != (0x1ffffffffl >> lenZeros)) { 29 | // Asume no CIDR, set /32 30 | len = 32; 31 | } else { 32 | len = 32 - lenZeros; 33 | } 34 | 35 | } 36 | 37 | public CIDRIP(String address, int prefix_length) { 38 | len = prefix_length; 39 | mIp = address; 40 | } 41 | 42 | @Override 43 | public String toString() { 44 | return String.format(Locale.ENGLISH, "%s/%d", mIp, len); 45 | } 46 | 47 | public boolean normalise() { 48 | long ip = getInt(mIp); 49 | 50 | long newip = ip & (0xffffffffL << (32 - len)); 51 | if (newip != ip) { 52 | mIp = String.format(Locale.US,"%d.%d.%d.%d", (newip & 0xff000000) >> 24, (newip & 0xff0000) >> 16, (newip & 0xff00) >> 8, newip & 0xff); 53 | return true; 54 | } else { 55 | return false; 56 | } 57 | 58 | } 59 | 60 | static long getInt(String ipaddr) { 61 | String[] ipt = ipaddr.split("\\."); 62 | long ip = 0; 63 | 64 | ip += Long.parseLong(ipt[0]) << 24; 65 | ip += Integer.parseInt(ipt[1]) << 16; 66 | ip += Integer.parseInt(ipt[2]) << 8; 67 | ip += Integer.parseInt(ipt[3]); 68 | 69 | return ip; 70 | } 71 | 72 | public long getInt() { 73 | return getInt(mIp); 74 | } 75 | 76 | } -------------------------------------------------------------------------------- /src/main/java/de/blinkt/openvpn/core/ConnectionStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012-2016 Arne Schwabe 3 | * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt 4 | */ 5 | 6 | package de.blinkt.openvpn.core; 7 | 8 | import android.os.Parcel; 9 | import android.os.Parcelable; 10 | 11 | /** 12 | * Created by arne on 08.11.16. 13 | */ 14 | public enum ConnectionStatus implements Parcelable { 15 | LEVEL_CONNECTED, 16 | LEVEL_VPNPAUSED, 17 | LEVEL_CONNECTING_SERVER_REPLIED, 18 | LEVEL_CONNECTING_NO_SERVER_REPLY_YET, 19 | LEVEL_NONETWORK, 20 | LEVEL_NOTCONNECTED, 21 | LEVEL_START, 22 | LEVEL_AUTH_FAILED, 23 | LEVEL_WAITING_FOR_USER_INPUT, 24 | UNKNOWN_LEVEL; 25 | 26 | @Override 27 | public void writeToParcel(Parcel dest, int flags) { 28 | dest.writeInt(ordinal()); 29 | } 30 | 31 | @Override 32 | public int describeContents() { 33 | return 0; 34 | } 35 | 36 | public static final Creator CREATOR = new Creator() { 37 | @Override 38 | public ConnectionStatus createFromParcel(Parcel in) { 39 | return ConnectionStatus.values()[in.readInt()]; 40 | } 41 | 42 | @Override 43 | public ConnectionStatus[] newArray(int size) { 44 | return new ConnectionStatus[size]; 45 | } 46 | }; 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/de/blinkt/openvpn/core/LollipopDeviceStateListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012-2016 Arne Schwabe 3 | * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt 4 | */ 5 | 6 | package de.blinkt.openvpn.core; 7 | 8 | import android.annotation.TargetApi; 9 | import android.net.ConnectivityManager; 10 | import android.net.LinkProperties; 11 | import android.net.Network; 12 | import android.net.NetworkCapabilities; 13 | import android.os.Build; 14 | 15 | /** 16 | * Created by arne on 26.11.14. 17 | */ 18 | @TargetApi(Build.VERSION_CODES.LOLLIPOP) 19 | public class LollipopDeviceStateListener extends ConnectivityManager.NetworkCallback { 20 | 21 | private String mLastConnectedStatus; 22 | private String mLastLinkProperties; 23 | private String mLastNetworkCapabilities; 24 | 25 | @Override 26 | public void onAvailable(Network network) { 27 | super.onAvailable(network); 28 | 29 | if (!network.toString().equals(mLastConnectedStatus)) { 30 | mLastConnectedStatus = network.toString(); 31 | VpnStatus.logDebug("Connected to " + mLastConnectedStatus); 32 | } 33 | } 34 | 35 | @Override 36 | public void onLinkPropertiesChanged(Network network, LinkProperties linkProperties) { 37 | super.onLinkPropertiesChanged(network, linkProperties); 38 | 39 | if (!linkProperties.toString().equals(mLastLinkProperties)) { 40 | mLastLinkProperties = linkProperties.toString(); 41 | VpnStatus.logDebug(String.format("Linkproperties of %s: %s", network, linkProperties)); 42 | } 43 | } 44 | 45 | @Override 46 | public void onCapabilitiesChanged(Network network, NetworkCapabilities networkCapabilities) { 47 | super.onCapabilitiesChanged(network, networkCapabilities); 48 | if (!networkCapabilities.toString().equals(mLastNetworkCapabilities)) { 49 | mLastNetworkCapabilities = networkCapabilities.toString(); 50 | VpnStatus.logDebug(String.format("Network capabilities of %s: %s", network, networkCapabilities)); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/de/blinkt/openvpn/core/NativeUtils.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012-2016 Arne Schwabe 3 | * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt 4 | */ 5 | 6 | package de.blinkt.openvpn.core; 7 | 8 | import android.os.Build; 9 | 10 | import java.security.InvalidKeyException; 11 | 12 | public class NativeUtils { 13 | public static native byte[] rsasign(byte[] input, int pkey) throws InvalidKeyException; 14 | 15 | public static native String[] getIfconfig() throws IllegalArgumentException; 16 | 17 | static native void jniclose(int fdint); 18 | 19 | public static native String getNativeAPI(); 20 | 21 | 22 | public final static int[] openSSLlengths = { 23 | 16, 64, 256, 1024, 8 * 1024, 16 * 1024 24 | }; 25 | 26 | public static native double[] getOpenSSLSpeed(String algorithm, int testnum); 27 | 28 | static { 29 | System.loadLibrary("opvpnutil"); 30 | if (Build.VERSION.SDK_INT == Build.VERSION_CODES.JELLY_BEAN) 31 | System.loadLibrary("jbcrypto"); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/de/blinkt/openvpn/core/OpenVPNManagement.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012-2016 Arne Schwabe 3 | * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt 4 | */ 5 | 6 | package de.blinkt.openvpn.core; 7 | 8 | public interface OpenVPNManagement { 9 | interface PausedStateCallback { 10 | boolean shouldBeRunning(); 11 | } 12 | 13 | enum pauseReason { 14 | noNetwork, 15 | userPause, 16 | screenOff, 17 | } 18 | 19 | int mBytecountInterval = 2; 20 | 21 | void reconnect(); 22 | 23 | void pause(pauseReason reason); 24 | 25 | void resume(); 26 | 27 | /** 28 | * @param replaceConnection True if the VPN is connected by a new connection. 29 | * @return true if there was a process that has been send a stop signal 30 | */ 31 | boolean stopVPN(boolean replaceConnection); 32 | 33 | /* 34 | * Rebind the interface 35 | */ 36 | void networkChange(boolean sameNetwork); 37 | 38 | void setPauseCallback(PausedStateCallback callback); 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/de/blinkt/openvpn/core/PasswordCache.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012-2016 Arne Schwabe 3 | * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt 4 | */ 5 | 6 | package de.blinkt.openvpn.core; 7 | 8 | import java.util.UUID; 9 | 10 | /** 11 | * Created by arne on 15.12.16. 12 | */ 13 | 14 | public class PasswordCache { 15 | public static final int PCKS12ORCERTPASSWORD = 2; 16 | public static final int AUTHPASSWORD = 3; 17 | private static PasswordCache mInstance; 18 | final private UUID mUuid; 19 | private String mKeyOrPkcs12Password; 20 | private String mAuthPassword; 21 | 22 | private PasswordCache(UUID uuid) { 23 | mUuid = uuid; 24 | } 25 | 26 | public static PasswordCache getInstance(UUID uuid) { 27 | if (mInstance == null || !mInstance.mUuid.equals(uuid)) { 28 | mInstance = new PasswordCache(uuid); 29 | } 30 | return mInstance; 31 | } 32 | 33 | public static String getPKCS12orCertificatePassword(UUID uuid, boolean resetPw) { 34 | String pwcopy = getInstance(uuid).mKeyOrPkcs12Password; 35 | if (resetPw) 36 | getInstance(uuid).mKeyOrPkcs12Password = null; 37 | return pwcopy; 38 | } 39 | 40 | 41 | public static String getAuthPassword(UUID uuid, boolean resetPW) { 42 | String pwcopy = getInstance(uuid).mAuthPassword; 43 | if (resetPW) 44 | getInstance(uuid).mAuthPassword = null; 45 | return pwcopy; 46 | } 47 | 48 | public static void setCachedPassword(String uuid, int type, String password) { 49 | PasswordCache instance = getInstance(UUID.fromString(uuid)); 50 | switch (type) { 51 | case PCKS12ORCERTPASSWORD: 52 | instance.mKeyOrPkcs12Password = password; 53 | break; 54 | case AUTHPASSWORD: 55 | instance.mAuthPassword = password; 56 | break; 57 | } 58 | } 59 | 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/de/blinkt/openvpn/core/PreferenceInteractor.java: -------------------------------------------------------------------------------- 1 | package de.blinkt.openvpn.core; 2 | 3 | import android.content.Context; 4 | import android.content.SharedPreferences; 5 | 6 | /** 7 | * Preference Interactor class 8 | *

9 | * - Accesses Shared Preferences and returns a (Matrix) Cursor Object 10 | */ 11 | final class PreferenceInteractor { 12 | 13 | private static final String DEFAULT_STRING = ""; 14 | private static final int DEFAULT_INT = -1; 15 | private static final long DEFAULT_LONG = -1L; 16 | private static final boolean DEFAULT_BOOLEAN = false; 17 | 18 | private SharedPreferences sharedPreferences; 19 | 20 | PreferenceInteractor(Context context, String preferenceName) { 21 | this.sharedPreferences = context.getSharedPreferences(preferenceName, Context.MODE_PRIVATE); 22 | } 23 | 24 | boolean hasKey(String key) { 25 | return sharedPreferences.contains(key); 26 | } 27 | 28 | String getString(String key) { 29 | return sharedPreferences.getString(key, DEFAULT_STRING); 30 | } 31 | 32 | void setString(String key, String value) { 33 | sharedPreferences.edit().putString(key, value).apply(); 34 | } 35 | 36 | int getInt(String key) { 37 | return sharedPreferences.contains(key) ? sharedPreferences.getInt(key, DEFAULT_INT) : null; 38 | } 39 | 40 | void setInt(String key, int value) { 41 | sharedPreferences.edit().putInt(key, value).apply(); 42 | } 43 | 44 | long getLong(String key) { 45 | return sharedPreferences.getLong(key, DEFAULT_LONG); 46 | 47 | } 48 | 49 | void setLong(String key, long value) { 50 | sharedPreferences.edit().putLong(key, value).apply(); 51 | } 52 | 53 | boolean getBoolean(String key) { 54 | return sharedPreferences.getBoolean(key, DEFAULT_BOOLEAN); 55 | } 56 | 57 | void setBoolean(String key, boolean value) { 58 | sharedPreferences.edit().putBoolean(key, value).apply(); 59 | } 60 | 61 | void removePref(String key) { 62 | sharedPreferences.edit().remove(key).apply(); 63 | } 64 | 65 | void clearPreference() { 66 | sharedPreferences.edit().clear().apply(); 67 | } 68 | } -------------------------------------------------------------------------------- /src/main/java/de/blinkt/openvpn/core/Preferences.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012-2016 Arne Schwabe 3 | * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt 4 | */ 5 | 6 | package de.blinkt.openvpn.core; 7 | 8 | import android.content.Context; 9 | import android.content.SharedPreferences; 10 | 11 | /** 12 | * Created by arne on 08.01.17. 13 | */ 14 | 15 | // Until I find a good solution 16 | 17 | public class Preferences { 18 | 19 | static MultiPreferences getSharedPreferencesMulti(String name, Context c) { 20 | return new MultiPreferences(name, c.getContentResolver()); 21 | } 22 | 23 | public static MultiPreferences getDefaultSharedPreferences(Context c) { 24 | return new MultiPreferences(c.getPackageName() + "_preferences", c.getContentResolver()); 25 | } 26 | 27 | public static SharedPreferences getSharedPreferences(String name, Context c) { 28 | return c.getSharedPreferences(name, Context.MODE_MULTI_PROCESS | Context.MODE_PRIVATE); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/de/blinkt/openvpn/core/ProxyDetection.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2012-2016 Arne Schwabe 3 | * Distributed under the GNU GPL v2 with additional terms. For full terms see the file doc/LICENSE.txt 4 | */ 5 | 6 | package de.blinkt.openvpn.core; 7 | 8 | import java.net.InetSocketAddress; 9 | import java.net.MalformedURLException; 10 | import java.net.Proxy; 11 | import java.net.ProxySelector; 12 | import java.net.SocketAddress; 13 | import java.net.URISyntaxException; 14 | import java.net.URL; 15 | import java.util.List; 16 | 17 | import de.blinkt.openvpn.R; 18 | import de.blinkt.openvpn.VpnProfile; 19 | 20 | public class ProxyDetection { 21 | static SocketAddress detectProxy(VpnProfile vp) { 22 | // Construct a new url with https as protocol 23 | try { 24 | URL url = new URL(String.format("https://%s:%s",vp.mServerName,vp.mServerPort)); 25 | Proxy proxy = getFirstProxy(url); 26 | 27 | if(proxy==null) 28 | return null; 29 | SocketAddress addr = proxy.address(); 30 | if (addr instanceof InetSocketAddress) { 31 | return addr; 32 | } 33 | 34 | } catch (MalformedURLException e) { 35 | VpnStatus.logError(R.string.getproxy_error, e.getLocalizedMessage()); 36 | } catch (URISyntaxException e) { 37 | VpnStatus.logError(R.string.getproxy_error, e.getLocalizedMessage()); 38 | } 39 | return null; 40 | } 41 | 42 | static Proxy getFirstProxy(URL url) throws URISyntaxException { 43 | System.setProperty("java.net.useSystemProxies", "true"); 44 | 45 | List proxylist = ProxySelector.getDefault().select(url.toURI()); 46 | 47 | 48 | if (proxylist != null) { 49 | for (Proxy proxy: proxylist) { 50 | SocketAddress addr = proxy.address(); 51 | 52 | if (addr != null) { 53 | return proxy; 54 | } 55 | } 56 | 57 | } 58 | return null; 59 | } 60 | } -------------------------------------------------------------------------------- /src/main/java/de/blinkt/openvpn/core/VPNNotifications.java: -------------------------------------------------------------------------------- 1 | package de.blinkt.openvpn.core; 2 | 3 | import android.content.Context; 4 | 5 | import androidx.core.app.NotificationCompat; 6 | 7 | /** 8 | * Created by arne on 06.10.17. 9 | */ 10 | 11 | public interface VPNNotifications { 12 | 13 | void addPiaNotificationExtra(NotificationCompat.Builder nbuilder, Context context, DeviceStateReceiver receiver); 14 | 15 | void showKillSwitchNotification(Context context); 16 | 17 | void stopKillSwitchNotification(Context context); 18 | 19 | void showRevokeNotification(Context context); 20 | 21 | int getIconByConnectionStatus(ConnectionStatus level); 22 | 23 | int getColorByConnectionStatus(Context context, ConnectionStatus level); 24 | } 25 | -------------------------------------------------------------------------------- /src/main/res/values-b+ar/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | إحصائيات الاتصال 4 | إحصائيات مستمرة لخدمة PIA VPN التي تم إنشائها 5 | تغييرات حالة الاتصال 6 | تغييرات حالة PIA VPN (الاتصال والمصادقة، ...) 7 | جارٍ الاتصال 8 | قيد انتظار رد الخادم 9 | جارٍ المصادقة 10 | جارٍ الحصول على تكوين العميل 11 | غير متصل 12 | قطع الاتصال 13 | جارٍ تعيين عناوين IP 14 | جارٍ إضافة المسارات 15 | تم الاتصال بخدمة VPN 16 | جارٍ إعادة الاتصال 17 | غير متصل 18 | جارٍ حل أسماء المضيفين 19 | جارٍ الاتصال (TCP) 20 | تعذّرت المصادقة 21 | قيد انتظار شبكة صالحة 22 | جارٍ إنتاج التكوين 23 | يتم الانتظار %s ثوان بين محاولات الاتصال 24 | 25 | 26 | 27 | %s - privateinternetaccess.com 28 | استئناف VPN 29 | إيقاف VPN مؤقتًأ 30 | جارٍ بناء التكوين… 31 | قيد انتظار بدء Orbot… 32 | 33 | -------------------------------------------------------------------------------- /src/main/res/values-b+da/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Forbindelsesstatistik 4 | Løbende statistikker over etableret PIA VPN 5 | Forbindelsens lrStatus ændres 6 | Statusændringer i PIA VPN (Tilslutning, godkendelse, ...) 7 | Forbinder 8 | Venter på serversvar 9 | Bekræfter 10 | Indhenter klientkonfiguration 11 | Afbrudt 12 | Afbryd 13 | Tildele IP-adresser 14 | Tilføjer ruter 15 | Forbundet til VPN 16 | Forbinder igen 17 | Afbrudt 18 | Løsning af værtsnavne 19 | Forbinder (TCP) 20 | Autentifikation mislykkes 21 | Venter på brugbart netværk 22 | Genererer konfiguration 23 | Venter %s sekunder mellem forbindelsesforsøg 24 | 25 | 26 | 27 | %s - privateinternetaccess.com 28 | Genoptag VPN 29 | Sæt VPN på pause 30 | Bygger konfiguration... 31 | Venter på at Orbot starter... 32 | 33 | -------------------------------------------------------------------------------- /src/main/res/values-b+ja/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 接続統計データ 4 | 確立されたPIA VPNの現統計データ 5 | 接続IrStatusの変化 6 | PIA VPNのステータス変化(接続中、認証中など) 7 | 接続中 8 | サーバーの応答を待機中 9 | 認証中 10 | クライアントコンフィギュレーションを取得中 11 | 切断されました 12 | 切断する 13 | IPアドレスを割り当て中 14 | ルートを追加中 15 | VPNに接続されました 16 | 再接続中 17 | 切断されました 18 | ホストネームを解決中 19 | 接続中(TCP) 20 | 認証に失敗しました 21 | 利用できるネットワークを待機中 22 | コンフィギュレーションを生成中 23 | %s秒間隔で接続を待機 24 | 25 | 26 | 27 | %s - privateinternetaccess.com 28 | VPNを再開 29 | VPNを一時停止 30 | コンフィギュレーションを構築中 31 | Orbotの起動を待機中 32 | 33 | -------------------------------------------------------------------------------- /src/main/res/values-b+ko/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 연결 통계 4 | 수립된 PIA VPN의 진행 중 통계 5 | 연결 lrStatus 변경 6 | PIA VPN의 상태 변경 (연결하는 중, 인증하는 중 등) 7 | 연결하는 중 8 | 서버 응답을 기다리는 중 9 | 인증하는 중 10 | 클라이언트 구성을 확인하는 중 11 | 연결이 해제됨 12 | 연결 해제 13 | IP 주소를 할당하는 중 14 | 루트를 추가하는 중 15 | VPN에 연결됨 16 | 다시 연결하는 중 17 | 연결이 해제됨 18 | 호스트 이름을 해석하는 중 19 | 연결하는 중 (TCP) 20 | 인증 실패 21 | 사용 가능한 네트워크를 기다리는 중 22 | 구성을 생성하는 중 23 | 연결 시도 사이에 %s초를 기다리는 중 24 | 25 | 26 | 27 | %s - privateinternetaccess.com 28 | VPN 재개 29 | VPN 일시 중지 30 | 구성을 구축하는 중... 31 | Orbot이 시작하기를 기다리는 중... 32 | 33 | -------------------------------------------------------------------------------- /src/main/res/values-b+nb/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Tilkoblingssatistiskk 4 | Pågående statistikk for etablert PIA VPN 5 | Endringer av IrStatus-tilkoblinger 6 | Statusendringer for PIA VPN (tilkobling, autentisering …) 7 | Kobler til 8 | Venter på serversvar 9 | Autentisering 10 | Henter klientkonfigurasjon 11 | Frakoblet 12 | Koble fra 13 | Tilordner IP-adresser 14 | Legger til ruter 15 | Koblet til VPN 16 | Kobler til igjen 17 | Koblet fra 18 | Løser vertsnavn 19 | Kobler til (TCP) 20 | Autentisering mislyktes 21 | Venter på nettverk som kan brukes 22 | Genererer konfigurasjon 23 | Venter %s sekunder mellom tilkoblingsforsøk 24 | 25 | 26 | 27 | %s – privateinternetaccess.com 28 | Gjenoppta VPN 29 | Pause VPN 30 | Bygger konfigurasjon … 31 | Venter på at Orbot starter … 32 | 33 | -------------------------------------------------------------------------------- /src/main/res/values-b+zh-rCN/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 连接数据 4 | 已建立PIA VPN的现行数据 5 | lrStatus连接发生变化 6 | PIA VPN状态发生变化(正在连接,正在验证……) 7 | 正在连接 8 | 等候服务器回应 9 | 正在认证 10 | 正在获取客户配置 11 | 已断开 12 | 断开连接 13 | 正在分配IP地址 14 | 正在添加路由 15 | 已连接VPN 16 | 正在重新连接 17 | 已断开 18 | 正在解析域名 19 | 正在连接(TCP) 20 | 验证失败 21 | 正在等候可用网络 22 | 正在生成配置 23 | 正在等候%s秒后重试连接 24 | 25 | 26 | 27 | %s - privateinternetaccess.com 28 | 继续连接VPN 29 | 暂停VPN 30 | 正在建立配置… 31 | 正在等候Orbot启动… 32 | 33 | -------------------------------------------------------------------------------- /src/main/res/values-b+zh-rTW/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 連線統計 4 | 已建立 PIA VPN 之持續統計資料 5 | 連線 IrStatus 變動 6 | PIA VPN 的狀態變動(連線中、驗證中…) 7 | 連線中 8 | 正在等待伺服器回應 9 | 驗證中 10 | 正在擷取用戶端組態 11 | 已解除連線 12 | 解除連線 13 | 正在分配 IP 位址 14 | 正在新增路由 15 | 已連線至 VPN 16 | 正在重新連線 17 | 已解除連線 18 | 正在解析主機名稱 19 | 連線中 (TCP) 20 | 驗證失敗 21 | 正在等待可用的網路 22 | 正在產生組態 23 | 在嘗試連線之間等待 %s 秒 24 | 25 | 26 | 27 | %s - privateinternetaccess.com 28 | 恢復 VPN 29 | 暫停 VPN 30 | 正在建立組態… 31 | 正在等待 Orbot 開始… 32 | 33 | -------------------------------------------------------------------------------- /src/main/res/values/refs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | --------------------------------------------------------------------------------