[ SYSTEM ]: Linux srv.persadacompanies.com 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
[ SERVER ]: Apache | PHP: 8.4.19
[ USER ]: persadamedika | IP: 45.64.1.108
GEFORCE FILE MANAGER
/
usr
/
include
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 GL
SET
[ DEL ]
📁 X11
SET
[ DEL ]
📁 arpa
SET
[ DEL ]
📁 asm
SET
[ DEL ]
📁 asm-generic
SET
[ DEL ]
📁 bind9
SET
[ DEL ]
📁 bits
SET
[ DEL ]
📁 c++
SET
[ DEL ]
📁 drm
SET
[ DEL ]
📁 e2p
SET
[ DEL ]
📁 et
SET
[ DEL ]
📁 event2
SET
[ DEL ]
📁 ext2fs
SET
[ DEL ]
📁 finclude
SET
[ DEL ]
📁 fontconfig
SET
[ DEL ]
📁 freetype2
SET
[ DEL ]
📁 fstrm
SET
[ DEL ]
📁 gdbm
SET
[ DEL ]
📁 gnu
SET
[ DEL ]
📁 google
SET
[ DEL ]
📁 gssapi
SET
[ DEL ]
📁 gssrpc
SET
[ DEL ]
📁 json-c
SET
[ DEL ]
📁 kadm5
SET
[ DEL ]
📁 krb5
SET
[ DEL ]
📁 libexslt
SET
[ DEL ]
📁 libltdl
SET
[ DEL ]
📁 libpng16
SET
[ DEL ]
📁 libxml2
SET
[ DEL ]
📁 libxslt
SET
[ DEL ]
📁 linux
SET
[ DEL ]
📁 lzma
SET
[ DEL ]
📁 misc
SET
[ DEL ]
📁 mtd
SET
[ DEL ]
📁 mysql
SET
[ DEL ]
📁 ncurses
SET
[ DEL ]
📁 ncursesw
SET
[ DEL ]
📁 net
SET
[ DEL ]
📁 netash
SET
[ DEL ]
📁 netatalk
SET
[ DEL ]
📁 netax25
SET
[ DEL ]
📁 neteconet
SET
[ DEL ]
📁 netinet
SET
[ DEL ]
📁 netipx
SET
[ DEL ]
📁 netiucv
SET
[ DEL ]
📁 netpacket
SET
[ DEL ]
📁 netrom
SET
[ DEL ]
📁 netrose
SET
[ DEL ]
📁 nfs
SET
[ DEL ]
📁 openssl
SET
[ DEL ]
📁 perf
SET
[ DEL ]
📁 protobuf-c
SET
[ DEL ]
📁 protocols
SET
[ DEL ]
📁 python3.12
SET
[ DEL ]
📁 python3.6m
SET
[ DEL ]
📁 rdma
SET
[ DEL ]
📁 rpc
SET
[ DEL ]
📁 scsi
SET
[ DEL ]
📁 security
SET
[ DEL ]
📁 selinux
SET
[ DEL ]
📁 sepol
SET
[ DEL ]
📁 sound
SET
[ DEL ]
📁 sys
SET
[ DEL ]
📁 uuid
SET
[ DEL ]
📁 video
SET
[ DEL ]
📁 webp
SET
[ DEL ]
📁 xcb
SET
[ DEL ]
📁 xen
SET
[ DEL ]
📄 FlexLexer.h
6,893 B
SET
[ EDIT ]
|
[ DEL ]
📄 a.out.h
4,350 B
SET
[ EDIT ]
|
[ DEL ]
📄 aio.h
7,456 B
SET
[ EDIT ]
|
[ DEL ]
📄 aliases.h
2,031 B
SET
[ EDIT ]
|
[ DEL ]
📄 alloca.h
1,203 B
SET
[ EDIT ]
|
[ DEL ]
📄 ar.h
1,730 B
SET
[ EDIT ]
|
[ DEL ]
📄 argp.h
25,414 B
SET
[ EDIT ]
|
[ DEL ]
📄 argz.h
6,050 B
SET
[ EDIT ]
|
[ DEL ]
📄 assert.h
4,561 B
SET
[ EDIT ]
|
[ DEL ]
📄 autosprintf.h
2,383 B
SET
[ EDIT ]
|
[ DEL ]
📄 byteswap.h
1,404 B
SET
[ EDIT ]
|
[ DEL ]
📄 bzlib.h
6,245 B
SET
[ EDIT ]
|
[ DEL ]
📄 com_err.h
2,118 B
SET
[ EDIT ]
|
[ DEL ]
📄 complex.h
7,163 B
SET
[ EDIT ]
|
[ DEL ]
📄 cpio.h
2,267 B
SET
[ EDIT ]
|
[ DEL ]
📄 cpuidle.h
844 B
SET
[ EDIT ]
|
[ DEL ]
📄 crypt.h
9,118 B
SET
[ EDIT ]
|
[ DEL ]
📄 ctype.h
10,963 B
SET
[ EDIT ]
|
[ DEL ]
📄 curses.h
99,625 B
SET
[ EDIT ]
|
[ DEL ]
📄 cursesapp.h
6,775 B
SET
[ EDIT ]
|
[ DEL ]
📄 cursesf.h
27,849 B
SET
[ EDIT ]
|
[ DEL ]
📄 cursesm.h
19,677 B
SET
[ EDIT ]
|
[ DEL ]
📄 cursesp.h
8,601 B
SET
[ EDIT ]
|
[ DEL ]
📄 cursesw.h
49,719 B
SET
[ EDIT ]
|
[ DEL ]
📄 cursslk.h
7,304 B
SET
[ EDIT ]
|
[ DEL ]
📄 dbm.h
1,414 B
SET
[ EDIT ]
|
[ DEL ]
📄 dirent.h
12,484 B
SET
[ EDIT ]
|
[ DEL ]
📄 dlfcn.h
7,238 B
SET
[ EDIT ]
|
[ DEL ]
📄 elf.h
174,828 B
SET
[ EDIT ]
|
[ DEL ]
📄 endian.h
3,189 B
SET
[ EDIT ]
|
[ DEL ]
📄 entities.h
4,930 B
SET
[ EDIT ]
|
[ DEL ]
📄 envz.h
2,866 B
SET
[ EDIT ]
|
[ DEL ]
📄 err.h
2,209 B
SET
[ EDIT ]
|
[ DEL ]
📄 errno.h
1,678 B
SET
[ EDIT ]
|
[ DEL ]
📄 error.h
2,039 B
SET
[ EDIT ]
|
[ DEL ]
📄 eti.h
2,891 B
SET
[ EDIT ]
|
[ DEL ]
📄 etip.h
9,702 B
SET
[ EDIT ]
|
[ DEL ]
📄 evdns.h
2,019 B
SET
[ EDIT ]
|
[ DEL ]
📄 event.h
2,744 B
SET
[ EDIT ]
|
[ DEL ]
📄 evhttp.h
2,035 B
SET
[ EDIT ]
|
[ DEL ]
📄 evrpc.h
2,015 B
SET
[ EDIT ]
|
[ DEL ]
📄 evutil.h
1,782 B
SET
[ EDIT ]
|
[ DEL ]
📄 execinfo.h
1,522 B
SET
[ EDIT ]
|
[ DEL ]
📄 expat.h
44,273 B
SET
[ EDIT ]
|
[ DEL ]
📄 expat_config.h
3,910 B
SET
[ EDIT ]
|
[ DEL ]
📄 expat_external.h
6,029 B
SET
[ EDIT ]
|
[ DEL ]
📄 fcntl.h
10,958 B
SET
[ EDIT ]
|
[ DEL ]
📄 features.h
16,062 B
SET
[ EDIT ]
|
[ DEL ]
📄 fenv.h
5,857 B
SET
[ EDIT ]
|
[ DEL ]
📄 fmtmsg.h
3,239 B
SET
[ EDIT ]
|
[ DEL ]
📄 fnmatch.h
2,295 B
SET
[ EDIT ]
|
[ DEL ]
📄 form.h
18,601 B
SET
[ EDIT ]
|
[ DEL ]
📄 fpu_control.h
3,583 B
SET
[ EDIT ]
|
[ DEL ]
📄 fstab.h
3,111 B
SET
[ EDIT ]
|
[ DEL ]
📄 fstrm.h
13,017 B
SET
[ EDIT ]
|
[ DEL ]
📄 fts.h
8,372 B
SET
[ EDIT ]
|
[ DEL ]
📄 ftw.h
5,251 B
SET
[ EDIT ]
|
[ DEL ]
📄 gconv.h
4,410 B
SET
[ EDIT ]
|
[ DEL ]
📄 gcrypt.h
70,361 B
SET
[ EDIT ]
|
[ DEL ]
📄 gd.h
57,777 B
SET
[ EDIT ]
|
[ DEL ]
📄 gd_color_map.h
478 B
SET
[ EDIT ]
|
[ DEL ]
📄 gd_errors.h
1,503 B
SET
[ EDIT ]
|
[ DEL ]
📄 gd_io.h
3,125 B
SET
[ EDIT ]
|
[ DEL ]
📄 gdbm.h
10,345 B
SET
[ EDIT ]
|
[ DEL ]
📄 gdcache.h
2,898 B
SET
[ EDIT ]
|
[ DEL ]
📄 gdfontg.h
553 B
SET
[ EDIT ]
|
[ DEL ]
📄 gdfontl.h
551 B
SET
[ EDIT ]
|
[ DEL ]
📄 gdfontmb.h
519 B
SET
[ EDIT ]
|
[ DEL ]
📄 gdfonts.h
515 B
SET
[ EDIT ]
|
[ DEL ]
📄 gdfontt.h
546 B
SET
[ EDIT ]
|
[ DEL ]
📄 gdfx.h
497 B
SET
[ EDIT ]
|
[ DEL ]
📄 gdpp.h
52,162 B
SET
[ EDIT ]
|
[ DEL ]
📄 gelf.h
11,406 B
SET
[ EDIT ]
|
[ DEL ]
📄 getopt.h
1,468 B
SET
[ EDIT ]
|
[ DEL ]
📄 gettext-po.h
15,534 B
SET
[ EDIT ]
|
[ DEL ]
📄 glob.h
6,614 B
SET
[ EDIT ]
|
[ DEL ]
📄 gnu-versions.h
2,342 B
SET
[ EDIT ]
|
[ DEL ]
📄 gnumake.h
2,912 B
SET
[ EDIT ]
|
[ DEL ]
📄 gpg-error.h
67,879 B
SET
[ EDIT ]
|
[ DEL ]
📄 gpgrt.h
67,879 B
SET
[ EDIT ]
|
[ DEL ]
📄 grp.h
6,686 B
SET
[ EDIT ]
|
[ DEL ]
📄 gshadow.h
4,528 B
SET
[ EDIT ]
|
[ DEL ]
📄 gssapi.h
181 B
SET
[ EDIT ]
|
[ DEL ]
📄 iconv.h
1,857 B
SET
[ EDIT ]
|
[ DEL ]
📄 idn-free.h
2,472 B
SET
[ EDIT ]
|
[ DEL ]
📄 idn-int.h
20 B
SET
[ EDIT ]
|
[ DEL ]
📄 idna.h
3,564 B
SET
[ EDIT ]
|
[ DEL ]
📄 ieee754.h
4,910 B
SET
[ EDIT ]
|
[ DEL ]
📄 ifaddrs.h
2,840 B
SET
[ EDIT ]
|
[ DEL ]
📄 inttypes.h
11,892 B
SET
[ EDIT ]
|
[ DEL ]
📄 jconfig-64.h
2,225 B
SET
[ EDIT ]
|
[ DEL ]
📄 jconfig.h
246 B
SET
[ EDIT ]
|
[ DEL ]
📄 jerror.h
15,088 B
SET
[ EDIT ]
|
[ DEL ]
📄 jmorecfg.h
15,049 B
SET
[ EDIT ]
|
[ DEL ]
📄 jpegint.h
15,586 B
SET
[ EDIT ]
|
[ DEL ]
📄 jpeglib.h
49,875 B
SET
[ EDIT ]
|
[ DEL ]
📄 kdb.h
69,285 B
SET
[ EDIT ]
|
[ DEL ]
📄 keyutils.h
7,698 B
SET
[ EDIT ]
|
[ DEL ]
📄 krad.h
8,933 B
SET
[ EDIT ]
|
[ DEL ]
📄 krb5.h
402 B
SET
[ EDIT ]
|
[ DEL ]
📄 langinfo.h
17,848 B
SET
[ EDIT ]
|
[ DEL ]
📄 lastlog.h
126 B
SET
[ EDIT ]
|
[ DEL ]
📄 libaio.h
8,937 B
SET
[ EDIT ]
|
[ DEL ]
📄 libelf.h
20,318 B
SET
[ EDIT ]
|
[ DEL ]
📄 libgen.h
1,385 B
SET
[ EDIT ]
|
[ DEL ]
📄 libintl.h
4,579 B
SET
[ EDIT ]
|
[ DEL ]
📄 limits.h
5,412 B
SET
[ EDIT ]
|
[ DEL ]
📄 link.h
7,218 B
SET
[ EDIT ]
|
[ DEL ]
📄 locale.h
7,674 B
SET
[ EDIT ]
|
[ DEL ]
📄 ltdl.h
5,709 B
SET
[ EDIT ]
|
[ DEL ]
📄 lzma.h
9,817 B
SET
[ EDIT ]
|
[ DEL ]
📄 malloc.h
6,102 B
SET
[ EDIT ]
|
[ DEL ]
📄 math.h
53,318 B
SET
[ EDIT ]
|
[ DEL ]
📄 mcheck.h
2,434 B
SET
[ EDIT ]
|
[ DEL ]
📄 memory.h
955 B
SET
[ EDIT ]
|
[ DEL ]
📄 menu.h
12,197 B
SET
[ EDIT ]
|
[ DEL ]
📄 mntent.h
3,358 B
SET
[ EDIT ]
|
[ DEL ]
📄 monetary.h
1,803 B
SET
[ EDIT ]
|
[ DEL ]
📄 mqueue.h
3,759 B
SET
[ EDIT ]
|
[ DEL ]
📄 nc_tparm.h
4,197 B
SET
[ EDIT ]
|
[ DEL ]
📄 ncurses.h
99,625 B
SET
[ EDIT ]
|
[ DEL ]
📄 ncurses_dll.h
4,277 B
SET
[ EDIT ]
|
[ DEL ]
📄 ndbm.h
2,454 B
SET
[ EDIT ]
|
[ DEL ]
📄 netdb.h
28,099 B
SET
[ EDIT ]
|
[ DEL ]
📄 nl_types.h
1,752 B
SET
[ EDIT ]
|
[ DEL ]
📄 nlist.h
1,601 B
SET
[ EDIT ]
|
[ DEL ]
📄 nss.h
1,878 B
SET
[ EDIT ]
|
[ DEL ]
📄 obstack.h
21,306 B
SET
[ EDIT ]
|
[ DEL ]
📄 panel.h
4,123 B
SET
[ EDIT ]
|
[ DEL ]
📄 paths.h
2,977 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcre.h
31,718 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcre2.h
44,802 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcre2posix.h
5,804 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcre_scanner.h
6,600 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcre_stringpiece.h
6,312 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcrecpp.h
26,529 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcrecpparg.h
6,783 B
SET
[ EDIT ]
|
[ DEL ]
📄 pcreposix.h
5,452 B
SET
[ EDIT ]
|
[ DEL ]
📄 png.h
144,149 B
SET
[ EDIT ]
|
[ DEL ]
📄 pngconf.h
22,845 B
SET
[ EDIT ]
|
[ DEL ]
📄 pnglibconf.h
7,567 B
SET
[ EDIT ]
|
[ DEL ]
📄 poll.h
22 B
SET
[ EDIT ]
|
[ DEL ]
📄 pr29.h
2,123 B
SET
[ EDIT ]
|
[ DEL ]
📄 printf.h
6,800 B
SET
[ EDIT ]
|
[ DEL ]
📄 proc_service.h
3,476 B
SET
[ EDIT ]
|
[ DEL ]
📄 profile.h
12,154 B
SET
[ EDIT ]
|
[ DEL ]
📄 pthread.h
41,269 B
SET
[ EDIT ]
|
[ DEL ]
📄 pty.h
1,569 B
SET
[ EDIT ]
|
[ DEL ]
📄 punycode.h
9,384 B
SET
[ EDIT ]
|
[ DEL ]
📄 pwd.h
6,158 B
SET
[ EDIT ]
|
[ DEL ]
📄 re_comp.h
962 B
SET
[ EDIT ]
|
[ DEL ]
📄 regex.h
24,715 B
SET
[ EDIT ]
|
[ DEL ]
📄 regexp.h
1,447 B
SET
[ EDIT ]
|
[ DEL ]
📄 resolv.h
12,153 B
SET
[ EDIT ]
|
[ DEL ]
📄 sched.h
4,732 B
SET
[ EDIT ]
|
[ DEL ]
📄 search.h
5,223 B
SET
[ EDIT ]
|
[ DEL ]
📄 semaphore.h
2,399 B
SET
[ EDIT ]
|
[ DEL ]
📄 setjmp.h
3,669 B
SET
[ EDIT ]
|
[ DEL ]
📄 sgtty.h
1,343 B
SET
[ EDIT ]
|
[ DEL ]
📄 shadow.h
5,471 B
SET
[ EDIT ]
|
[ DEL ]
📄 signal.h
12,243 B
SET
[ EDIT ]
|
[ DEL ]
📄 spawn.h
6,690 B
SET
[ EDIT ]
|
[ DEL ]
📄 stab.h
264 B
SET
[ EDIT ]
|
[ DEL ]
📄 stdc-predef.h
2,289 B
SET
[ EDIT ]
|
[ DEL ]
📄 stdint.h
8,469 B
SET
[ EDIT ]
|
[ DEL ]
📄 stdio.h
30,168 B
SET
[ EDIT ]
|
[ DEL ]
📄 stdio_ext.h
2,799 B
SET
[ EDIT ]
|
[ DEL ]
📄 stdlib.h
35,653 B
SET
[ EDIT ]
|
[ DEL ]
📄 string.h
17,587 B
SET
[ EDIT ]
|
[ DEL ]
📄 stringprep.h
8,227 B
SET
[ EDIT ]
|
[ DEL ]
📄 strings.h
4,752 B
SET
[ EDIT ]
|
[ DEL ]
📄 syscall.h
25 B
SET
[ EDIT ]
|
[ DEL ]
📄 sysexits.h
5,232 B
SET
[ EDIT ]
|
[ DEL ]
📄 syslog.h
24 B
SET
[ EDIT ]
|
[ DEL ]
📄 tar.h
3,785 B
SET
[ EDIT ]
|
[ DEL ]
📄 term.h
41,190 B
SET
[ EDIT ]
|
[ DEL ]
📄 term_entry.h
8,760 B
SET
[ EDIT ]
|
[ DEL ]
📄 termcap.h
3,473 B
SET
[ EDIT ]
|
[ DEL ]
📄 termio.h
214 B
SET
[ EDIT ]
|
[ DEL ]
📄 termios.h
3,598 B
SET
[ EDIT ]
|
[ DEL ]
📄 tgmath.h
31,489 B
SET
[ EDIT ]
|
[ DEL ]
📄 thread_db.h
16,023 B
SET
[ EDIT ]
|
[ DEL ]
📄 threads.h
6,655 B
SET
[ EDIT ]
|
[ DEL ]
📄 tic.h
13,638 B
SET
[ EDIT ]
|
[ DEL ]
📄 tiff.h
35,983 B
SET
[ EDIT ]
|
[ DEL ]
📄 tiffconf-64.h
3,429 B
SET
[ EDIT ]
|
[ DEL ]
📄 tiffconf.h
250 B
SET
[ EDIT ]
|
[ DEL ]
📄 tiffio.h
23,227 B
SET
[ EDIT ]
|
[ DEL ]
📄 tiffio.hxx
1,702 B
SET
[ EDIT ]
|
[ DEL ]
📄 tiffvers.h
410 B
SET
[ EDIT ]
|
[ DEL ]
📄 time.h
10,360 B
SET
[ EDIT ]
|
[ DEL ]
📄 tld.h
4,650 B
SET
[ EDIT ]
|
[ DEL ]
📄 ttyent.h
2,494 B
SET
[ EDIT ]
|
[ DEL ]
📄 uchar.h
2,001 B
SET
[ EDIT ]
|
[ DEL ]
📄 ucontext.h
2,036 B
SET
[ EDIT ]
|
[ DEL ]
📄 ulimit.h
1,583 B
SET
[ EDIT ]
|
[ DEL ]
📄 unctrl.h
3,099 B
SET
[ EDIT ]
|
[ DEL ]
📄 unistd.h
42,738 B
SET
[ EDIT ]
|
[ DEL ]
📄 utime.h
1,501 B
SET
[ EDIT ]
|
[ DEL ]
📄 utmp.h
3,222 B
SET
[ EDIT ]
|
[ DEL ]
📄 utmpx.h
4,099 B
SET
[ EDIT ]
|
[ DEL ]
📄 values.h
1,955 B
SET
[ EDIT ]
|
[ DEL ]
📄 verto-module.h
6,640 B
SET
[ EDIT ]
|
[ DEL ]
📄 verto.h
19,437 B
SET
[ EDIT ]
|
[ DEL ]
📄 wait.h
22 B
SET
[ EDIT ]
|
[ DEL ]
📄 wchar.h
31,111 B
SET
[ EDIT ]
|
[ DEL ]
📄 wctype.h
5,548 B
SET
[ EDIT ]
|
[ DEL ]
📄 wordexp.h
2,501 B
SET
[ EDIT ]
|
[ DEL ]
📄 zbuff.h
11,500 B
SET
[ EDIT ]
|
[ DEL ]
📄 zconf.h
16,262 B
SET
[ EDIT ]
|
[ DEL ]
📄 zdict.h
17,203 B
SET
[ EDIT ]
|
[ DEL ]
📄 zlib.h
96,261 B
SET
[ EDIT ]
|
[ DEL ]
📄 zstd.h
119,972 B
SET
[ EDIT ]
|
[ DEL ]
📄 zstd_errors.h
3,751 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: lzma.h
/** * \file api/lzma.h * \brief The public API of liblzma data compression library * * liblzma is a public domain general-purpose data compression library with * a zlib-like API. The native file format is .xz, but also the old .lzma * format and raw (no headers) streams are supported. Multiple compression * algorithms (filters) are supported. Currently LZMA2 is the primary filter. * * liblzma is part of XZ Utils <http://tukaani.org/xz/>. XZ Utils includes * a gzip-like command line tool named xz and some other tools. XZ Utils * is developed and maintained by Lasse Collin. * * Major parts of liblzma are based on Igor Pavlov's public domain LZMA SDK * <http://7-zip.org/sdk.html>. * * The SHA-256 implementation is based on the public domain code found from * 7-Zip <http://7-zip.org/>, which has a modified version of the public * domain SHA-256 code found from Crypto++ <http://www.cryptopp.com/>. * The SHA-256 code in Crypto++ was written by Kevin Springle and Wei Dai. */ /* * Author: Lasse Collin * * This file has been put into the public domain. * You can do whatever you want with this file. */ #ifndef LZMA_H #define LZMA_H /***************************** * Required standard headers * *****************************/ /* * liblzma API headers need some standard types and macros. To allow * including lzma.h without requiring the application to include other * headers first, lzma.h includes the required standard headers unless * they already seem to be included already or if LZMA_MANUAL_HEADERS * has been defined. * * Here's what types and macros are needed and from which headers: * - stddef.h: size_t, NULL * - stdint.h: uint8_t, uint32_t, uint64_t, UINT32_C(n), uint64_C(n), * UINT32_MAX, UINT64_MAX * * However, inttypes.h is a little more portable than stdint.h, although * inttypes.h declares some unneeded things compared to plain stdint.h. * * The hacks below aren't perfect, specifically they assume that inttypes.h * exists and that it typedefs at least uint8_t, uint32_t, and uint64_t, * and that, in case of incomplete inttypes.h, unsigned int is 32-bit. * If the application already takes care of setting up all the types and * macros properly (for example by using gnulib's stdint.h or inttypes.h), * we try to detect that the macros are already defined and don't include * inttypes.h here again. However, you may define LZMA_MANUAL_HEADERS to * force this file to never include any system headers. * * Some could argue that liblzma API should provide all the required types, * for example lzma_uint64, LZMA_UINT64_C(n), and LZMA_UINT64_MAX. This was * seen as an unnecessary mess, since most systems already provide all the * necessary types and macros in the standard headers. * * Note that liblzma API still has lzma_bool, because using stdbool.h would * break C89 and C++ programs on many systems. sizeof(bool) in C99 isn't * necessarily the same as sizeof(bool) in C++. */ #ifndef LZMA_MANUAL_HEADERS /* * I suppose this works portably also in C++. Note that in C++, * we need to get size_t into the global namespace. */ # include <stddef.h> /* * Skip inttypes.h if we already have all the required macros. If we * have the macros, we assume that we have the matching typedefs too. */ # if !defined(UINT32_C) || !defined(UINT64_C) \ || !defined(UINT32_MAX) || !defined(UINT64_MAX) /* * MSVC versions older than 2013 have no C99 support, and * thus they cannot be used to compile liblzma. Using an * existing liblzma.dll with old MSVC can work though(*), * but we need to define the required standard integer * types here in a MSVC-specific way. * * (*) If you do this, the existing liblzma.dll probably uses * a different runtime library than your MSVC-built * application. Mixing runtimes is generally bad, but * in this case it should work as long as you avoid * the few rarely-needed liblzma functions that allocate * memory and expect the caller to free it using free(). */ # if defined(_WIN32) && defined(_MSC_VER) && _MSC_VER < 1800 typedef unsigned __int8 uint8_t; typedef unsigned __int32 uint32_t; typedef unsigned __int64 uint64_t; # else /* Use the standard inttypes.h. */ # ifdef __cplusplus /* * C99 sections 7.18.2 and 7.18.4 specify * that C++ implementations define the limit * and constant macros only if specifically * requested. Note that if you want the * format macros (PRIu64 etc.) too, you need * to define __STDC_FORMAT_MACROS before * including lzma.h, since re-including * inttypes.h with __STDC_FORMAT_MACROS * defined doesn't necessarily work. */ # ifndef __STDC_LIMIT_MACROS # define __STDC_LIMIT_MACROS 1 # endif # ifndef __STDC_CONSTANT_MACROS # define __STDC_CONSTANT_MACROS 1 # endif # endif # include <inttypes.h> # endif /* * Some old systems have only the typedefs in inttypes.h, and * lack all the macros. For those systems, we need a few more * hacks. We assume that unsigned int is 32-bit and unsigned * long is either 32-bit or 64-bit. If these hacks aren't * enough, the application has to setup the types manually * before including lzma.h. */ # ifndef UINT32_C # if defined(_WIN32) && defined(_MSC_VER) # define UINT32_C(n) n ## UI32 # else # define UINT32_C(n) n ## U # endif # endif # ifndef UINT64_C # if defined(_WIN32) && defined(_MSC_VER) # define UINT64_C(n) n ## UI64 # else /* Get ULONG_MAX. */ # include <limits.h> # if ULONG_MAX == 4294967295UL # define UINT64_C(n) n ## ULL # else # define UINT64_C(n) n ## UL # endif # endif # endif # ifndef UINT32_MAX # define UINT32_MAX (UINT32_C(4294967295)) # endif # ifndef UINT64_MAX # define UINT64_MAX (UINT64_C(18446744073709551615)) # endif # endif #endif /* ifdef LZMA_MANUAL_HEADERS */ /****************** * LZMA_API macro * ******************/ /* * Some systems require that the functions and function pointers are * declared specially in the headers. LZMA_API_IMPORT is for importing * symbols and LZMA_API_CALL is to specify the calling convention. * * By default it is assumed that the application will link dynamically * against liblzma. #define LZMA_API_STATIC in your application if you * want to link against static liblzma. If you don't care about portability * to operating systems like Windows, or at least don't care about linking * against static liblzma on them, don't worry about LZMA_API_STATIC. That * is, most developers will never need to use LZMA_API_STATIC. * * The GCC variants are a special case on Windows (Cygwin and MinGW). * We rely on GCC doing the right thing with its auto-import feature, * and thus don't use __declspec(dllimport). This way developers don't * need to worry about LZMA_API_STATIC. Also the calling convention is * omitted on Cygwin but not on MinGW. */ #ifndef LZMA_API_IMPORT # if !defined(LZMA_API_STATIC) && defined(_WIN32) && !defined(__GNUC__) # define LZMA_API_IMPORT __declspec(dllimport) # else # define LZMA_API_IMPORT # endif #endif #ifndef LZMA_API_CALL # if defined(_WIN32) && !defined(__CYGWIN__) # define LZMA_API_CALL __cdecl # else # define LZMA_API_CALL # endif #endif #ifndef LZMA_API # define LZMA_API(type) LZMA_API_IMPORT type LZMA_API_CALL #endif /*********** * nothrow * ***********/ /* * None of the functions in liblzma may throw an exception. Even * the functions that use callback functions won't throw exceptions, * because liblzma would break if a callback function threw an exception. */ #ifndef lzma_nothrow # if defined(__cplusplus) # if __cplusplus >= 201103L # define lzma_nothrow noexcept # else # define lzma_nothrow throw() # endif # elif __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) # define lzma_nothrow __attribute__((__nothrow__)) # else # define lzma_nothrow # endif #endif /******************** * GNU C extensions * ********************/ /* * GNU C extensions are used conditionally in the public API. It doesn't * break anything if these are sometimes enabled and sometimes not, only * affects warnings and optimizations. */ #if __GNUC__ >= 3 # ifndef lzma_attribute # define lzma_attribute(attr) __attribute__(attr) # endif /* warn_unused_result was added in GCC 3.4. */ # ifndef lzma_attr_warn_unused_result # if __GNUC__ == 3 && __GNUC_MINOR__ < 4 # define lzma_attr_warn_unused_result # endif # endif #else # ifndef lzma_attribute # define lzma_attribute(attr) # endif #endif #ifndef lzma_attr_pure # define lzma_attr_pure lzma_attribute((__pure__)) #endif #ifndef lzma_attr_const # define lzma_attr_const lzma_attribute((__const__)) #endif #ifndef lzma_attr_warn_unused_result # define lzma_attr_warn_unused_result \ lzma_attribute((__warn_unused_result__)) #endif /************** * Subheaders * **************/ #ifdef __cplusplus extern "C" { #endif /* * Subheaders check that this is defined. It is to prevent including * them directly from applications. */ #define LZMA_H_INTERNAL 1 /* Basic features */ #include "lzma/version.h" #include "lzma/base.h" #include "lzma/vli.h" #include "lzma/check.h" /* Filters */ #include "lzma/filter.h" #include "lzma/bcj.h" #include "lzma/delta.h" #include "lzma/lzma12.h" /* Container formats */ #include "lzma/container.h" /* Advanced features */ #include "lzma/stream_flags.h" #include "lzma/block.h" #include "lzma/index.h" #include "lzma/index_hash.h" /* Hardware information */ #include "lzma/hardware.h" /* * All subheaders included. Undefine LZMA_H_INTERNAL to prevent applications * re-including the subheaders. */ #undef LZMA_H_INTERNAL #ifdef __cplusplus } #endif #endif /* ifndef LZMA_H */