ZenLib/.cvsignore100777 0 0 442 11773610522 7344 0*.~* *.zip *.7z *.lib *.dll *.exp *.dcu *.ddp *.exe *.obj *.tds *.opt *.ncb *.suo *.plg *.aps *.ddp *.pdb *.pdp bin obj Debug Debug_Ansi Release Release_Ansi Debug_Build Release_Build *.opensdf *.sdf *.user __history *.local Thumbs.db Win32 x64 My ProjectZenLib/debian/ 40777 0 0 0 12144136366 6510 5ZenLib/debian/changelog100777 0 0 250 12143747554 10445 0libzen (0.4.29-1) unstable; urgency=low * See History.txt for more info and real dates -- MediaArea.net SARL Thu, 01 Jan 2009 00:04:29 +0000 ZenLib/debian/compat100777 0 0 2 12143747554 7734 05 ZenLib/debian/control100777 0 0 1343 12143747554 10222 0Source: libzen Priority: optional Maintainer: MediaArea.net SARL Build-Depends: debhelper (>= 5), doxygen, tofrodos, automake, autoconf, libtool Standards-Version: 3.7.3 Section: libs Homepage: http://mediainfo.sourceforge.net Vcs-Svn: https://zenlib.svn.sourceforge.net/svnroot/zenlib/ZenLib/ Vcs-Browser: http://zenlib.svn.sourceforge.net/viewvc/zenlib/ZenLib/ Package: libzen-dev Section: libdevel Architecture: any Depends: libzen0 (>=0.4.29) Description: libmediainfo mandatory library (dev) This package includes the development support files Package: libzen0 Section: libs Architecture: any Depends: Replaces: libzen0-dev Description: libmediainfo mandatory library This package includes the shared library ZenLib/debian/copyright100777 0 0 1041 12143747554 10545 0This package was debianized by MediaArea.net SARL on Wed, 26 Nov 2008 20:19:43 +0100. It was downloaded from Upstream Author(s): MediaArea.net SARL Copyright: License: Zlib The Debian packaging is (C) 2009, MediaArea.net SARL and is licensed under the Zlib license. # Please also look if there are files or directories which have a # different copyright/license attached and list them here. ZenLib/debian/libzen-dev.dirs100777 0 0 300 12143747554 11511 0usr/lib usr/lib/pkgconfig usr/include/ZenLib usr/include/ZenLib/HTTP_Client usr/include/ZenLib/Format/Html usr/include/ZenLib/Format/Http usr/share/doc/libzen-dev usr/share/doc/libzen-dev/Doc ZenLib/debian/libzen-dev.install100777 0 0 364 12143747554 12230 0usr/lib/lib*.so usr/lib/*.la usr/lib/pkgconfig/* usr/include/ZenLib/* usr/include/ZenLib/HTTP_Client/* usr/include/ZenLib/Format/Html/* usr/include/ZenLib/Format/Http/* usr/share/doc/libzen-dev/Documentation.html usr/share/doc/libzen-dev/Doc/* ZenLib/debian/libzen0.dirs100777 0 0 36 12143747554 11003 0usr/lib usr/share/doc/libzen0 ZenLib/debian/libzen0.install100777 0 0 167 12143747554 11535 0usr/lib/lib*.so.* usr/share/doc/libzen0/History.txt usr/share/doc/libzen0/License.txt usr/share/doc/libzen0/ReadMe.txt ZenLib/debian/rules100777 0 0 6635 12143747554 7705 0#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 # shared library versions version=`ls src/.libs/lib*.so.* | \ awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` major=`ls src/.libs/lib*.so.* | \ awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` configure: configure-stamp configure-stamp: dh_testdir # Add here commands to configure the package. fromdos *.txt Source/Doc/*.html chmod 644 *.txt Source/Doc/*.html cd Source/Doc && doxygen Doxyfile cp Source/Doc/*.html ./ cd Project/GNU/Library && chmod u+x autogen cd Project/GNU/Library && ./autogen cd Project/GNU/Library && ./configure --disable-static --enable-shared --prefix=/usr touch $@ build: build-stamp build-stamp: configure-stamp dh_testdir # Add here commands to compile the package. cd Project/GNU/Library && $(MAKE) touch $@ clean: dh_testdir dh_testroot # Add here commands to clean up after the build process. # $(MAKE) clean dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs # Add here commands to install the package into debian/tmp cd Project/GNU/Library && $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install install -dm 755 $(CURDIR)/debian/tmp/usr/include/ZenLib install -m 644 Source/ZenLib/*.h $(CURDIR)/debian/tmp/usr/include/ZenLib install -dm 755 $(CURDIR)/debian/tmp/usr/include/ZenLib/HTTP_Client install -m 644 Source/ZenLib/HTTP_Client/*.h $(CURDIR)/debian/tmp/usr/include/ZenLib/HTTP_Client install -dm 755 $(CURDIR)/debian/tmp/usr/include/ZenLib/Format/Html install -m 644 Source/ZenLib/Format/Html/*.h $(CURDIR)/debian/tmp/usr/include/ZenLib/Format/Html install -dm 755 $(CURDIR)/debian/tmp/usr/include/ZenLib/Format/Http install -m 644 Source/ZenLib/Format/Http/*.h $(CURDIR)/debian/tmp/usr/include/ZenLib/Format/Http sed -i -e 's|Version: |Version: %{version}|g' Project/GNU/Library/libzen.pc install -dm 755 $(CURDIR)/debian/tmp/usr/lib/pkgconfig install -m 644 Project/GNU/Library/libzen.pc $(CURDIR)/debian/tmp/usr/lib/pkgconfig install -dm 755 $(CURDIR)/debian/tmp/usr/share/doc/libzen0 install -m 644 *.txt $(CURDIR)/debian/tmp/usr/share/doc/libzen0 install -dm 755 $(CURDIR)/debian/tmp/usr/share/doc/libzen-dev install -m 644 Documentation.html $(CURDIR)/debian/tmp/usr/share/doc/libzen-dev install -dm 755 $(CURDIR)/debian/tmp/usr/share/doc/libzen-dev/Doc install -m 644 Doc/*.* $(CURDIR)/debian/tmp/usr/share/doc/libzen-dev/Doc if test -d Doc/search/ ; then install -dm 755 $(CURDIR)/debian/tmp/usr/share/doc/libzen-dev/Doc/search ; fi if test -d Doc/search/ ; then install -m 644 Doc/search/*.* $(CURDIR)/debian/tmp/usr/share/doc/libzen-dev/Doc/search ; fi # Build architecture-independent files here. binary-indep: build install # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot dh_install --sourcedir=debian/tmp dh_installchangelogs dh_installdocs dh_installexamples # dh_install # dh_installmenu # dh_installdebconf # dh_installlogrotate # dh_installemacsen # dh_installpam # dh_installmime # dh_installinit # dh_installcron # dh_installinfo dh_installman dh_link dh_strip dh_compress dh_fixperms # dh_perl # dh_python dh_makeshlibs dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure ZenLib/History.txt100777 0 0 25425 12143532622 7612 0Version 0.4.29, 2013-05-13 -------------- x Ztring: Ztring_NoZero option was not correctly implemented x File: Write only is not possible with ios_base::out (file is truncated) on Linux x Dir: Include_Dirs only was not working x File: accepts Windows "\\?\" magic value Version 0.4.28, 2012-08-06 -------------- + Removing _T() in order to be compatible with LLVM compiler x Ztring: UTF-16 conversion routines crash if the provided string size is odd. x GNU: forcing stdc++ at link Version 0.4.27, 2012-05-22 -------------- + Better support of machines lacking of std::basic_stream x License text corrections Version 0.4.26, 2012-04-09 -------------- + Better support of machines lacking of std::stringstream + Better support of machines requesting explicit stdc++ library link option (e.g. some ARM embedded devices) Version 0.4.25, 2012-03-13 -------------- + Fast bitstream parser + Removing Win9X detection on 64-bit CPU + Ztring: integer to text conversion with radix=2 + Updated Linux compilation scripts Version 0.4.24, 2012-01-24 -------------- + Convertion from ctime style date to ISO date + GNU: more generic test of size_t as a long (e.g. for s390) x Read of text arrays of data was not well done if separator is bigger than 1 character x UTF-8 to UCS4 conversion was buggy with 4-byte characters x LittleEndian2float80() was buggy x Removing TinyXml and Base64 from the package Version 0.4.23, 2011-11-10 -------------- + Loading of CSV or any 2-dimensional array is carriage return mode insensitive + Ztring: ISO_8859_2 support + File: Truncate method x Ztring: UTF-8 load/save using generic code instead of Windows functions (they don't work for all Unicode codes) x File: Crash with some unordered API calls x FileName: Name::Get() wrong behavior in some cases Version 0.4.22, 2011-09-23 -------------- + File size retrieval is dynamic = support of growing files (Windows) x #3412495, Ztring: To_UTF8() was working wrong, corrected thanks to Andrew Jang Version 0.4.21, 2011-08-16 -------------- + File size retrieval is faster (Windows) x #3157308, Ztring::Assign_FromFile(): Memory leak Version 0.4.20, 2011-06-15 -------------- + TinyXml updated + float16 (on disk) support Version 0.4.19, 2011-03-19 -------------- + Ztring: more compatibility with uCLibC x BitStream_LE: wrong result if buffer underrun Version 0.4.18, 2011-03-03 -------------- + HTTP helpers in Unicode version x BitStream Little Endian: count of remaining bits was wrong x ZtringList and ZtringListList :: Read(): do not remove pending delimiters x File Open status: error with Windows return value Version 0.4.17, 2010-12-16 -------------- + uClibc compatibility, thanks to Metin KAYA + BitStream: Skip methods improvements Version 0.4.16, 2010-10-24 ------------- + BitStream: Peek3() x Decimal point issues with some specific compilers/OS x ZtringList: issues with EOL x #3025205, File is not opened if a "?" is in it Version 0.4.15, 2010-05-14 ------------- x Ztring: Solaris compatibility was broken x Solaris: pkgtrans packages, with optional default directory as script parameter Version 0.4.14, 2010-05-02 ------------- + Ztring: better compatibility with std::string + TinyXml import Version 0.4.13, 2010-04-16 ------------- + MSVC2010 project files update + Solaris package creation files update (with relocation) Version 0.4.12, 2010-03-08 ------------- + MSVC2010 project files + Solaris package creation files Version 0.4.11, 2010-02-19 ------------- + Ztring: To_int128u() + Ztring: ISO_8859_1() x File::Open(): no Access_Read_Write (Windows) x BigEndian2int128u() x Ztring::To_UUID(): wrong transformation text to UUID in some cases Version 0.4.10, 2010-01-03 ------------- + Ztring: From a file + Ztring::Duration_From_Milliseconds: handling of negative values x UUID: better validation x ZtringList: better handling of CSV import x File: Write append on Linux/Mac x File: No read/write on Linux/Mac x Dir: No dir test and creation on Mac/Linux x float64_int64s: handling of big integers Version 0.4.9, 2009-11-13 ------------- + File: bug in Open() Version 0.4.8, 2009-10-30 ------------- + Thread: reorganization, better support x File: Support of non-seekable files x ZtringListList: CSV write with quoted strings was wrong (again) Version 0.4.7, 2009-10-15 ------------- + Better universal binary building (Mac OS X) + Linux: Modification date/time (UTC and Local) x ZtringListList: CSV write with quoted strings was wrong x Ztring: GUID to string was wrong x Linux build script were a bit broken x File: file existence test was broken x FindAndReplace was hanging up if ToFind is empty Version 0.4.6, 2009-09-25 ------------- + Thread with Linux (base) + File: ignoring hidden files + Ztring: To_CC4, To_UUID x ZtringListList: better CSV compatibility x File, Open: const input x intxToLittleEndian x Correcting some warnings Version 0.4.5, 2009-09-05 ------------- + libzen.pc correction Version 0.4.4, 2009-09-01 ------------- + Dir::GetAllFileNames() was listing all dir if filename does not exist + Support of more platforms (fmodf) Version 0.4.3, 2009-07-03 ------------- + OpenSolaris support + Path separator + Ztring: handling of another format of date + Ztring: Changed UUID to GUID, Added UUID (in the right order) + Mac OS X: Creation of universal and 10.4 compatible binaries option Version 0.4.2, 2009-04-17 ------------- + File: Local modified/created date Version 0.4.1, 2009-04-03 ------------- + Dir: Option for GetAllFileNames (API incompatible change) Version 0.4.0, 2009-03-20 ------------- + Ztring: Radix option for To_xxx() (API incompatible change) Version 0.3.8, 2009-02-13 ------------- x UTF-8 conversion replacement (was buggy with Debian Lenny, why?) x Big files seeking on Linux x Sometimes memory corruption with Ztring Version 0.3.7 2009-01-30 ------------- + Some additional helpers for Ztring x Managing transformation from Unicode to local with unsupported characters Version 0.3.6 2009-01-19 ------------- + HTML protocol basic stuff + HTTP protocol helpers x Crash in Ztring::Trim() x Code cleanup Version 0.3.5 2008-12-09 ------------- + mipsel CPU support + Better Linux integration + rpm stuff (thanks to oc2pus http://packman.links2linux.org) + deb stuff x Code cleanup Version 0.3.4.0 2008-10-17 --------------- x some size of returned value problems in Ztring x Bug in FileName.cpp Version 0.3.3.9 2008-09-12 --------------- + Sparc compatibility x MacOS X wchar_t stuff Version 0.3.3.8 2008-08-22 --------------- x UTF-16 parsing under Linux Version 0.3.3.7 2008-06-13 --------------- + MinGW compatibility Version 0.3.3.6 2008-05-30 --------------- + MSVC2008 project files Version 0.3.3.5 2008-05-16 --------------- x Ztring: Problem with UTF-8 locale x xxxBSD compatibility Version 0.3.3.4 2008-04-26 --------------- x #1946749, Ztring: From_UTF16BE - endless loop Version 0.3.3.3 2008-04-12 --------------- + Adding some classes for speed improvement Version 0.3.3.2 2008-03-28 --------------- x On some systems, if a string is not a number, the returned number from string-->number conversion is undetermined x Non-unicode version: invalid read with assign() Version 0.3.3.1 2008-03-14 --------------- + Basic support of threads Version 0.3.3.0 2008-02-29 --------------- + Base64 encode/decode + File::Created() and File::Modified() x Trim() problem Version 0.3.2.6 2008-02-09 --------------- x Was not seeking after EOF x Win9X does not support shared reading, do not use it if Win9X Version 0.3.2.5 2008-02-01 --------------- + Linux/MacOS: support of 2GiB+ files x File: Re-enabled shared reading x Better handling of Floating point to string Version 0.3.2.4 2008-01-09 --------------- + Ztring::From_GUID() x small bugfixes Version 0.3.2.3 2007-12-10 --------------- x small bugfixes Version 0.3.2.2 2007-11-02 --------------- x Ztring comparaison bug x Memory leaks Version 0.3.2.1 2007-10-07 --------------- + BitStream_LE (Little Endian) class + OpenFolder_Show method for Windows + int128u/s + Win9X support does not request Microsoft unicows.lib anymore x Win9X support was brocken, is back now x Several small bug fixes Version 0.3.2.0 2007-08-17 --------------- + WxWidgets is kept out by default x Some minor bug corrections Version 0.3.1.7 2007-07-23 --------------- x .c files were not in source code Version 0.3.1.6 2007-05-14 --------------- x SetFilePointerEx() to SetFilePointer() for win98 support Version 0.3.1.5 2007-04-28 --------------- + Ztring::Date_From_Seconds_1601() added x Some bugfixes and warning corrections, mainly for 64-bit port Version 0.3.1.4 2007-02-05 --------------- x UTF16 with BOM corrupted handling Version 0.3.1.3 2006-12-22 --------------- + UTF16BE Handling + MacIntel adaptation Version 0.3.1.2 2006-12-07 --------------- x Some errors in Ztring x BitStream::Peek() corrected Version 0.3.1.1 2006-11-24 --------------- x BitStream : error with some last bits + ZtringListList and ZtringList : number of element limit added Version 0.3.1.0 2006-08-15 --------------- + Seconds from 1904 to ISO Version 0.3.0.2 2006-07-21 --------------- x Memory leak in Ztring::From_Local(...), (maybe a wxWidgets problem) x Memory leak with some streams methods, using now internal Win32 functions + Some return references in Ztring + Some dates functions Version 0.3.0.1 2006-05-03 --------------- x Big mistake in From_Local(...), Memory corruption Version 0.3.0.0 2006-04-30 --------------- x some Ztring::From_Number returned void + From_Date function + More utils Version 0.2.2.0 2005-12-18 --------------- + Some more utils Version 0.2.1.0 2005-10-14 --------------- + Preparing cross-platform makefiles for GCC, more testing with MinGW + Memory leaks detection in DEBUG mode (with BCC and MSVC only) x Ztring::To_intxx : was adding 1 to big integers if Rouded option set Version 0.2.0.1 2005-05-18 --------------- x MS Visual C++ compilation bug Version 0.2.0.0 2005-03-07 --------------- New + DevCpp (with MinGW) project + GCC project (makefile). Tested with CygWin and Knoppix + FindAndReplaced : Ztring_Recursive is off by default Version 0.1.1.2 2005-01-17 --------------- Bug fixes - Constructors in ZtringLislistF Version 0.1.1.1 2005-01-09 --------------- Bug fixes - minor bugs Version 0.1.1.0 2004-08-03 --------------- Bug fixes - Ztring::int32u was not in compiled files - Visual C++ 6 adaptation (thanks to Jasper van de Gronde) - Visual C++ 7.1 adaptation Version 0.1.0.0 2004-08-02 --------------- New - Conf file - I don't remember :( Bug fixes - Version 0.0.2.0 2003-07-25 --------------- New - Bug fixes - ZenLib/License.txt100777 0 0 1604 12143707634 7513 0Copyright (c) 2002-2013 MediaArea.net SARL. All rights reserved. This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution.ZenLib/Project/ 40777 0 0 0 12144136370 6667 5ZenLib/Project/BCB/ 40777 0 0 0 12144136351 7254 5ZenLib/Project/BCB/Example/ 40777 0 0 0 12144136351 10647 5ZenLib/Project/BCB/Example/ZenLib_Test.cbproj100777 0 0 40546 12144136351 14363 0 {50A38A98-F258-41DA-8CC3-BA0616A69B6E} CppConsoleApplication Debug 12.0 true true Base true true Base true ..\..\..\Source\ZenLib\;..\..\..\Source\Example\;..\..\..\Source\ZenLib;..\..\..\Source\Example;$(IncludePath) _UNICODE _WIN32 _DEBUG;$(TASM_Defines) vcl.bpi;rtl.bpi;dbrtl.bpi;adortl.bpi;vcldb.bpi;vclx.bpi;bdertl.bpi;vcldbx.bpi;dsnap.bpi;dsnap.bpi;dsnapcon.bpi;teeui.bpi;teedb.bpi;tee.bpi;dss.bpi;dsnapcon.bpi;bcbsmp.bpi;vclie.bpi;xmlrtl.bpi;inet.bpi;inetdbbde.bpi;inetdbxpress.bpi;inetdb.bpi;webdsnap.bpi;bcbie.bpi;websnap.bpi;soaprtl.bpi;dbexpress.bpi;dbxcds.bpi true _UNICODE;_WIN32;_DEBUG;$(BRCC_Defines) ..\..\..\Source\Example;..\..\..\Source\ZenLib;.\;$(BDS)\lib;$(BDS)\lib\obj;$(DCC_UnitSearchPath) true true ..\..\..\Source\Example;..\..\..\Source\ZenLib;$(DCC_ResourcePath) -I..\..\..\Source\ZenLib;..\..\..\Source\Example;..\..\..\Source;..\..\..\..\Shared\Include;$(BDS)\include;$(BDS)\include\vcl;$(BDS)\include\dinkumware ..\..\..\Source\ZenLib;..\..\..\Source\Example;..\..\..\Source;..\..\..\..\Shared\Include;$(BDS)\include;$(BDS)\include\vcl;$(BDS)\include\dinkumware;$(BCC_IncludePath) true ..\..\..\Source\ZenLib;..\..\..\Source\Example;..\..\..\Source;..\..\..\..\Shared\Include;$(BDS)\include;$(BDS)\include\vcl;$(BDS)\include\dinkumware;$(BRCC_IncludePath) true true ..\..\..\Source\Example;..\..\..\Source\ZenLib;.\;$(BDS)\lib;$(BDS)\lib\obj;$(DCC_IncludePath) ..\..\..\Source\ZenLib;..\..\..\Source\Example;..\..\..\Source;..\..\..\..\Shared\Include;$(BDS)\include;$(BDS)\include\vcl;$(BDS)\include\dinkumware;$(TASM_IncludePath) . true exe true /w2 Full vcl.lib;rtl.lib ..\..\..\Source\Example;..\..\..\Source\ZenLib;$(ILINK_ObjectSearchPath) -a4 -Vx -r- -k -Ve ..\..\..\Source\Example;..\..\..\Source\ZenLib;$(DCC_ObjPath) JPHNE NO_STRICT;_UNICODE;_WIN32;$(BCC_Defines) false -M ..\..\..\Source\ZenLib\;..\..\..\Source\Example\;..\..\..\..\Shared\Library\BCB;..\..\..\Source\ZenLib;..\..\..\Source\Example;$(BDS)\lib\obj;$(BDS)\lib;$(ILINK_LibraryPath) true _DEBUG;$(BCC_Defines);$(BCC_Defines) $(BDS)\lib\debug;$(ILINK_LibraryPath);$(ILINK_LibraryPath) Debug_Build DEBUG;$(DCC_Define);$(DCC_Define) -M -V true true true NDEBUG;$(BCC_Defines);$(BCC_Defines) -a4 -Vx -r- -k -Ve -r true Release_Build -M -$O+ None $(BDS)\lib\release;$(ILINK_LibraryPath);$(ILINK_LibraryPath) true -1 0 5 2 7 3 9 4 8 5 6 1 7 ..\..\..\Source\ZenLib\ZtringListListF.h 0 8 2 9 4 3 10 Base Cfg_2 Base Cfg_1 Base CPlusPlusBuilder.Personality.12 CppConsoleApplication False False 1 0 0 0 False False False False False 1036 1252 1.0.0.0 1.0.0.0 15 ..\..\..\Source;..\..\..\..\Shared\Include;$(BCB)\include;$(BCB)\include\vcl ..\..\..\Source\ZenLib;..\..\..\Source\Example;..\..\..\Source\Files;..\..\..\Source;..\..\..\..\Shared\Include;$(BCB)\include;$(BCB)\include\vcl ..\..\..\Source\Files;..\..\..\Source;..\..\..\..\Shared\Include;$(BCB)\include;$(BCB)\include\vcl ..\..\..\Source\ZenLib;..\..\..\Source\Files;..\..\..\Source;..\..\..\..\Shared\Include;$(BCB)\include;$(BCB)\include\vcl ..\..\..\Source\ZenLib;..\..\..\Source\Files;..\..\..\Source;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\Shared\Include ..\..\..\Source;$(BCB)\include;$(BCB)\include\vcl;..\..\..\..\Shared\Include ..\..\..\Source\Files;..\..\..\Source\ZenLib;..\..\..\Source;$(BCB)\include;$(BCB)\include\vcl;D:\Programmation\Common\Include ..\..\..\Source\Files;..\..\..\Source\ZenLib;..\..\..\Source;$(BCB)\include;$(BCB)\include\vcl ..\..\..\Source\ZenLib;..\..\..\Source;$(BCB)\include;$(BCB)\include\vcl ..\..\..\Source;$(BCB)\include;$(BCB)\include\vcl ..\..\..\Source\ZenLib;D:\Programmation\ZenLib\Source;$(BCB)\include;$(BCB)\include\vcl D:\Programmation\ZenLib\Source;$(BCB)\include;$(BCB)\include\vcl $(BCB)\include;$(BCB)\include\vcl D:\Program Files\Applis\Borland\CBuilder6\Projects;$(BCB)\include;$(BCB)\include\vcl;D:\Programmation\Common\Include $(BCB)\include;$(BCB)\include\vcl;D:\Programmation\Common\Include 8 ..\..\..\Source\ZenLib;..\..\..\Source\Example;$(BCB)\lib\obj;$(BCB)\lib ..\..\..\Source\ZenLib;..\..\..\Source\Example;..\..\..\Source\Files;$(BCB)\lib\obj;$(BCB)\lib ..\..\..\Source\Files;$(BCB)\lib\obj;$(BCB)\lib $(BCB)\lib\obj;$(BCB)\lib D:\Program Files\Applis\Borland\CBuilder6\Lib\Release;..\..\..\Source\Files;..\..\..\Source\ZenLib;$(BCB)\lib\obj;$(BCB)\lib ..\..\..\Source\Files;..\..\..\Source\ZenLib;$(BCB)\lib\obj;$(BCB)\lib ..\..\..\Source\ZenLib;$(BCB)\lib\obj;$(BCB)\lib D:\Program Files\Applis\Borland\CBuilder6\Projects;$(BCB)\lib\obj;$(BCB)\lib 1 $(BCB)\source\vcl 10 _UNICODE;_WIN32;_DEBUG _WIN32;_DEBUG;_UNICODE _WIN32;_DEBUG;UNICODE _WIN32;_DEBUG WIN32;_DEBUG;_UNICODE WIN32;_DEBUG WIN32;_UNICODE;_DEBUG WIN32;_UNICODE WIN32;_UNICODE;_USE_OLD_RW_STL WIN32 2 ..\_Temp Release 5 .\ ..\_Temp\ ..\_Temp Release\ Release 1 Release $(BCB)\source\vcl False False False True False False True True 12 ZenLib/Project/BCB/Example/ZenLib_Test.res100777 0 0 1554 12144136351 13651 0 ÿÿÿÿè ÿÿÿÿ ( @€€€€€€€€€€€€ÀÀÀÿÿÿÿÿÿÿÿÿÿÿÿ|Ì»|Ì@|Ì»|ì@ŒÌ»|ì@ŒÌw|Ì@ÌÌ{|ŒÌÌÌÌ@|Ì{|ìÌÌÌÌ@ÌÌÌÌìÌ{|ìÌÌÌÌ@ÌÌÌÌìÌw|ì3Ì3Ì@Ç»ÌwìÌÌÌì»Ì»ÌDD@Ì»ÌwìÌÌÌìwÌwÌDf@Ì{ÌwìÌÌÌìÌÌÌÌDf@ÌwÌwì»Ìwì3Ì3ÌDf@ÌÌÌÌì»Ìwì»Ì»ÌC·@ÌÌÌÌì‹ÌwìwÌwÌGv@Ì{ÌwìwÌwìÌÌÌÌDf@ÌwÌwìÌÌÌì3Ì3ÌDf@ÌÌÌÌìÌÌÌì»Ì»ÌC·@ÌÌÌÌìÌÌÌìˆÌˆÌG|@Ì{ÌwìÌÌÌìÌÌÌÌDÌ@ÌwÌwì»ÌwîîîîîäÌ@ÌÌÌÌì‹ÌwÄDÇG·@ì‹Ì{ÄÌwÇw@ìˆÌwÄÌÌÌÌ@ìÌÌÌÄÌÌÌÌÀìÌÌÌÄîîîîîÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ<ÿ<ÿ<ÿ<ÿ?ÿÿ?ÿÿÿÿÿÿÿÿÿ0ÿÿMAINICON  èZenLib/Project/BCB/Library/ 40777 0 0 0 12144136370 10661 5ZenLib/Project/BCB/Library/ZenLib.cbproj100777 0 0 32103 12014427071 13361 0 {CAF569C1-3E94-4403-9496-1125D746E686} CppStaticLibrary Release 12.0 true true Base true true Base true 128 ..\..\..\Source\ZenLib\;..\..\..\Source\ZenLib\Format\Http\;..\..\..\Source\ZenLib\Format\Html\;..\..\..\Source\ZenLib\HTTP_Client\;..\..\..\Source\ZenLib\TinyXml;..\..\..\Source\ZenLib;..\..\..\Source\ZenLib\Format\Http;..\..\..\Source\ZenLib\Format\Html;..\..\..\Source\ZenLib\HTTP_Client;$(IncludePath) _RTLDLL;NO_STRICT;_UNICODE;_WIN32;$(BRCC_Defines) vcl.bpi;rtl.bpi;vclx.bpi;xmlrtl.bpi;vclie.bpi;inet.bpi;inetdbbde.bpi;inetdbxpress.bpi;soaprtl.bpi;dbrtl.bpi;dsnap.bpi;bcbie.bpi;vcldb.bpi;websnap.bpi;webdsnap.bpi;vclactnband.bpi ..\..\..\Source\ZenLib\Format\Http;..\..\..\Source\ZenLib\Format\Html;..\..\..\Source\ZenLib\HTTP_Client;..\..\..\Source\ZenLib;E:\Programmation\ZenLib\Project\BCB\Library;$(DCC_ResourcePath) _RTLDLL;NO_STRICT;_UNICODE;_WIN32;$(TASM_Defines) true ..\..\..\Source\ZenLib\Format\Http;..\..\..\Source\ZenLib\Format\Html;..\..\..\Source\ZenLib\HTTP_Client;..\..\..\Source\ZenLib;..\..\..\Source;..\..\..\..\shared\include;$(BDS)\include;$(BDS)\include\dinkumware;$(BDS)\include\vcl;$(BCC_IncludePath) ..\..\..\Source\ZenLib\Format\Http;..\..\..\Source\ZenLib\Format\Html;..\..\..\Source\ZenLib\HTTP_Client;..\..\..\Source\ZenLib;..\..\..\Source;..\..\..\..\shared\include;$(BDS)\include;$(BDS)\include\dinkumware;$(BDS)\include\vcl;$(BRCC_IncludePath) ..\..\..\Source\ZenLib\Format\Http;..\..\..\Source\ZenLib\Format\Html;..\..\..\Source\ZenLib\HTTP_Client;..\..\..\Source\ZenLib;..\..\..\Source;..\..\..\..\shared\include;$(BDS)\include;$(BDS)\include\dinkumware;$(BDS)\include\vcl;$(TASM_IncludePath) ..\..\..\Source\ZenLib\Format\Http;..\..\..\Source\ZenLib\Format\Html;..\..\..\Source\ZenLib\HTTP_Client;..\..\..\Source\ZenLib;E:\Programmation\ZenLib\Project\BCB\Library;C:\Documents and Settings\Jerome\Mes documents\Borland Studio Projects;$(BDS)\lib;$(BDS)\lib\obj;$(DCC_IncludePath) ..\..\..\Source\ZenLib\Format\Http;..\..\..\Source\ZenLib\Format\Html;..\..\..\Source\ZenLib\HTTP_Client;..\..\..\Source\ZenLib;E:\Programmation\ZenLib\Project\BCB\Library;C:\Documents and Settings\Jerome\Mes documents\Borland Studio Projects;$(BDS)\lib;$(BDS)\lib\obj;$(DCC_UnitSearchPath) true lib rtl.lib;vcl.lib true true _RTLDLL;NO_STRICT;_UNICODE;_WIN32;$(BCC_Defines) JPHNE $(BDS)\lib;$(BDS)\lib\obj;$(BDS)\lib\psdk;$(ILINK_LibraryPath) ..\..\..\Source\ZenLib\Format\Http;..\..\..\Source\ZenLib\Format\Html;..\..\..\Source\ZenLib\HTTP_Client;..\..\..\Source\ZenLib;E:\Programmation\ZenLib\Project\BCB\Library;$(DCC_ObjPath) 32 _DEBUG;$(BCC_Defines);$(BCC_Defines) $(BDS)\lib\debug;$(ILINK_LibraryPath);$(ILINK_LibraryPath) -k Debug_Build true DEBUG;$(DCC_Define);$(DCC_Define) true true -V Full true true true false true NDEBUG;$(BCC_Defines);$(BCC_Defines) 32 true Release_Build -$O+ None -r $(BDS)\lib\release;$(ILINK_LibraryPath);$(ILINK_LibraryPath) 19 0 20 1 21 2 3 18 4 15 5 16 6 17 7 26 8 27 9 28 25 10 22 ..\..\..\Source\ZenLib\ZtringListListF.h 11 23 12 24 13 14 4 15 6 17 3 18 -1 0 -1 1 21 2 22 11 23 12 24 13 9 28 25 10 5 16 8 27 7 26 Base Cfg_2 Base Cfg_1 Base CPlusPlusBuilder.Personality.12 CppStaticLibrary False False 1 0 0 0 False False False False False 1036 1252 1.0.0.0 1.0.0.0 False False False True False False True True 12 ZenLib/Project/BCB/Library/ZenLib.cpp100777 0 0 321 12014427071 12621 0//--------------------------------------------------------------------------- #include #pragma hdrstop #define Library // To add a file to the library use the Project menu 'Add to Project'. ZenLib/Project/CMake/ 40777 0 0 0 12144136370 7647 5ZenLib/Project/CMake/CMakeLists.txt100777 0 0 1461 12014427071 12506 0project(zenlib) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../ZenLib/Source) add_definitions(-DUNICODE) set(zenlib_SRCS ZenLib/Conf.cpp ZenLib/CriticalSection.cpp ZenLib/Dir.cpp ZenLib/File.cpp ZenLib/FileName.cpp ZenLib/HTTP_Client.cpp ZenLib/InfoMap.cpp ZenLib/int128s.cpp ZenLib/int128u.cpp ZenLib/MemoryDebug.cpp ZenLib/OS_Utils.cpp ZenLib/Translation.cpp ZenLib/Thread.cpp ZenLib/Utils.cpp ZenLib/Ztring.cpp ZenLib/ZtringList.cpp ZenLib/ZtringListList.cpp ZenLib/ZtringListListF.cpp ZenLib/Format/Html/Html_Handler.cpp ZenLib/Format/Html/Html_Request.cpp ZenLib/Format/Http/Http_Cookies.cpp ZenLib/Format/Http/Http_Handler.cpp ZenLib/Format/Http/Http_Request.cpp ZenLib/Format/Http/Http_Utils.cpp ) add_library(zenlib STATIC ${zenlib_SRCS})ZenLib/Project/CodeBlocks/ 40777 0 0 0 12144136370 10677 5ZenLib/Project/CodeBlocks/Library/ 40777 0 0 0 12144136370 12303 5ZenLib/Project/CodeBlocks/Library/ZenLib.cbp100777 0 0 5262 12014427071 14256 0 ZenLib/Project/CodeBlocks/ZenLib.workspace100777 0 0 333 12014427071 14056 0 ZenLib/Project/GNU/ 40777 0 0 0 12144136370 7320 5ZenLib/Project/GNU/Library/ 40777 0 0 0 12144136370 10724 5ZenLib/Project/GNU/Library/autogen100777 0 0 1034 12014427072 12405 0#libtoolize if test "$(uname)" = "Darwin" ; then #Darwin based Systems like Mac OS X: libtoolize is called glibtoolize. glibtoolize --automake else libtoolize --automake fi #aclocal if test -e /usr/bin/aclocal-1.11 ; then #OpenSolaris: no aclocal aclocal-1.11 elif test -e /usr/bin/aclocal-1.10 ; then aclocal-1.10 else aclocal fi #automake if test -e /usr/bin/automake-1.11 ; then #OpenSolaris: no automake automake-1.11 -a elif test -e /usr/bin/automake-1.10 ; then automake-1.10 -a else automake -a fi autoconf ZenLib/Project/GNU/Library/configure.ac100777 0 0 23301 12014427072 13327 0dnl ######################################################################### dnl ### Init dnl ######################################################################### dnl ------------------------------------------------------------------------- dnl Name and version dnl AC_INIT([libzen], [0.4.25]) dnl ------------------------------------------------------------------------- dnl Test if we are at the good place dnl AC_CONFIG_SRCDIR([../../../Source/ZenLib/Ztring.cpp]) dnl ------------------------------------------------------------------------- dnl sets build, host, target variables and the same with _alias dnl AC_CANONICAL_BUILD AM_INIT_AUTOMAKE([foreign -Wall]) dnl ------------------------------------------------------------------------- dnl Autotools init dnl AC_PROG_CC AC_PROG_CXX AC_PROG_CPP AC_DISABLE_SHARED AC_LIBTOOL_WIN32_DLL AC_PROG_LIBTOOL AC_PROG_INSTALL dnl ######################################################################### dnl ### Options dnl ######################################################################### dnl ------------------------------------------------------------------------- dnl Enable dnl AC_ARG_ENABLE([debug], [AS_HELP_STRING([--enable-debug], [Enable full debug])], , [enable_debug=no]) AC_ARG_ENABLE([gprof], [AS_HELP_STRING([--enable-gprof], [Enable gprof log])], , [enable_gprof=no]) AC_ARG_ENABLE([universal_binary], [AS_HELP_STRING([--enable-universal_binary], [Create Mac PPC/i386 Universal binary])], , [enable_universal_binary=no]) AC_ARG_ENABLE([arch-ppc], [AS_HELP_STRING(([--enable-arch-ppc], [Create Mac PPC architecture]))], , [enable_arch_ppc=no]) AC_ARG_ENABLE([arch-ppc64], [AS_HELP_STRING(([--enable-arch-ppc64], [Create Mac PPC64 architecture]))], , [enable_arch_ppc64=no]) AC_ARG_ENABLE([arch-i386], [AS_HELP_STRING(([--enable-arch-i386], [Create Mac i386 architecture]))], , [enable_arch_i386=no]) AC_ARG_ENABLE([arch-x86_64], [AS_HELP_STRING(([--enable-arch-x86_64], [Create Mac x86_64 architecture]))], , [enable_arch_x86_64=no]) AC_ARG_ENABLE([unicode], [AS_HELP_STRING(([--disable-unicode], [Disable unicode]))], , [enable_unicode=yes]) AC_ARG_ENABLE([wstring_missing], [AS_HELP_STRING(([--enable-wstring_missing], [Disable wstring support (old compilers)]))], , [enable_wstring_missing=no]) AC_ARG_ENABLE([stream_missing], [AS_HELP_STRING(([--enable-stream_missing], [Disable stream support (old compilers)]))], , [enable_stream_missing=no]) AC_ARG_ENABLE([large_files], [AS_HELP_STRING(([--disable-large_files], [Disable large files support]))], , [enable_large_files=yes]) dnl AC_ARG_ENABLE([threads], [AS_HELP_STRING(([--disable-threads], [Disable threads support]))], , [enable_threads=yes]) dnl ------------------------------------------------------------------------- dnl With dnl AC_ARG_WITH([macosx-sdk], [AS_HELP_STRING(([--with-macosx-sdk], [Force the Mac SDK]))], , [with_macosx_sdk=no]) AC_ARG_WITH([macosx-version-min], [AS_HELP_STRING(([--with-macosx-version-min], [Force the Mac Version]))], , [with_macosx_version_min=no]) dnl ######################################################################### dnl ### Compiler specific dnl ######################################################################### dnl ------------------------------------------------------------------------- case "${build}" in powerpc-montavista* ) CFLAGS="$CFLAGS -D__MONTAVISTA__" CXXFLAGS="$CXXFLAGS -D__MONTAVISTA__" ;; esac dnl ------------------------------------------------------------------------- dnl Mac Architecture and SDK dnl if test "$enable_universal_binary" = "yes"; then enable_arch_ppc=yes enable_arch_i386=yes if test "$with_macosx_sdk" = no ; then with_macosx_sdk="/Developer/SDKs/MacOSX10.4u.sdk" fi if test "$with_macosx_version_min" = no ; then with_macosx_version_min="10.4" fi fi if test "$enable_arch_ppc" = "yes"; then CXXFLAGS="$CXXFLAGS -arch ppc" CFLAGS="$CFLAGS -arch ppc" LDFLAGS="$LDFLAGS -arch ppc" fi if test "$enable_arch_ppc64" = "yes"; then CXXFLAGS="$CXXFLAGS -arch ppc64" CFLAGS="$CFLAGS -arch ppc64" LDFLAGS="$LDFLAGS -arch ppc64" fi if test "$enable_arch_i386" = "yes"; then CXXFLAGS="$CXXFLAGS -arch i386" CFLAGS="$CFLAGS -arch i386" LDFLAGS="$LDFLAGS -arch i386" fi if test "$enable_arch_x86_64" = "yes"; then CXXFLAGS="$CXXFLAGS -arch x86_64" CFLAGS="$CFLAGS -arch x86_64" LDFLAGS="$LDFLAGS -arch x86_64" fi if test "$with_macosx_sdk" = "yes" ; then CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CXXFLAGS" CFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $CFLAGS" LDFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk $LDFLAGS" elif test "x$with_macosx_sdk" != xno ; then CXXFLAGS="-isysroot $with_macosx_sdk $CXXFLAGS" CFLAGS="-isysroot $with_macosx_sdk $CFLAGS" LDFLAGS="-isysroot $with_macosx_sdk $LDFLAGS" fi if test "x$with_macosx_version_min" != xno ; then CXXFLAGS="-mmacosx-version-min=$with_macosx_version_min $CXXFLAGS" CFLAGS="-mmacosx-version-min=$with_macosx_version_min $CFLAGS" LDFLAGS="-mmacosx-version-min=$with_macosx_version_min $LDFLAGS" fi dnl ######################################################################### dnl ### ZenLib flags dnl ######################################################################### dnl ------------------------------------------------------------------------- dnl Common dnl ZenLib_LIBS="-L$(pwd) -lzen -lpthread -lstdc++ $ZenLib_LIBS" ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a -lpthread -lstdc++ $ZenLib_LIBS_Static" dnl ######################################################################### dnl ### C/C++ compiler options used to compile dnl ######################################################################### dnl ------------------------------------------------------------------------- dnl wstring dnl if test "$enable_wstring_missing" = "yes"; then CXXFLAGS="$CXXFLAGS -DWSTRING_MISSING" ZenLib_CXXFLAGS="$ZenLib_CXXFLAGS -DWSTRING_MISSING" ZenLib_wstring_missing="yes" enable_unicode="no" else ZenLib_wstring_missing="no" fi dnl ------------------------------------------------------------------------- dnl Unicode dnl if test "$enable_unicode" = "yes"; then CXXFLAGS="$CXXFLAGS -DUNICODE" ZenLib_CXXFLAGS="$ZenLib_CXXFLAGS -DUNICODE" ZenLib_Unicode="yes" else ZenLib_Unicode="no" fi dnl ------------------------------------------------------------------------- dnl Large files dnl if test "$enable_large_files" = "yes"; then CXXFLAGS="$CXXFLAGS -D_LARGE_FILES -D_FILE_OFFSET_BITS=64" ZenLib_LargeFiles="yes" else ZenLib_LargeFiles="no" fi dnl ------------------------------------------------------------------------- dnl Threads dnl dnl ------------------------------------------------------------------------- dnl Check if size_t is long dnl AC_LANG([C++]) AC_COMPILE_IFELSE([ #include void foo(signed int) {} void foo(unsigned int) {} int main () {foo(size_t(0)); return 0;}], [size_t_is_long="no"], [size_t_is_long="yes"]) if test "$size_t_is_long" = "yes"; then CXXFLAGS="$CXXFLAGS -DSIZE_T_IS_LONG" ZenLib_CXXFLAGS="$ZenLib_CXXFLAGS -DSIZE_T_IS_LONG" fi dnl ------------------------------------------------------------------------- dnl Check if stream is available dnl AC_LANG([C++]) if test "$enable_unicode" = "yes"; then AC_COMPILE_IFELSE([ #include int main () {std::wstringstream message; message<<1.0; return 0;}], , [enable_stream_missing="yes"]) else AC_COMPILE_IFELSE([ #include int main () {std::stringstream message; message<<1.0; return 0;}], , [enable_stream_missing="yes"]) fi if test "$enable_stream_missing" = "yes"; then CXXFLAGS="$CXXFLAGS -DSTREAM_MISSING" fi dnl ------------------------------------------------------------------------- dnl GNU compiler dnl if test "$GXX" = yes ; then CFLAGS="$CFLAGS -fPIC" CXXFLAGS="$CXXFLAGS -fPIC" if test "$enable_debug" = "yes"; then CFLAGS="$CFLAGS -O0 -g -Wall -Wundef" CXXFLAGS="$CXXFLAGS -O0 -g -Wall -W -Wundef -Wcast-qual -Wno-ctor-dtor-privacy" else CFLAGS="$CFLAGS -O2" CXXFLAGS="$CXXFLAGS -O2" fi if test "$enable_gprof" = "yes"; then CFLAGS="$CFLAGS -pg -g" CXXFLAGS="$CXXFLAGS -pg -g" fi fi dnl ------------------------------------------------------------------------- dnl External libs dnl LDFLAGS="$LDFLAGS -lpthread -lstdc++" dnl ######################################################################### dnl ### Output dnl ######################################################################### AC_SUBST(ZenLib_CXXFLAGS) AC_SUBST(ZenLib_LIBS) AC_SUBST(ZenLib_LIBS_Static) AC_SUBST(ZenLib_Unicode) AC_SUBST(ZenLib_wstring_missing) AC_SUBST(ZenLib_LargeFiles) AC_CONFIG_FILES(libzen-config, [chmod u+x libzen-config]) AC_CONFIG_FILES(libzen.pc) AC_OUTPUT(Makefile) dnl ######################################################################### dnl ### Report how we have been configured dnl ######################################################################### echo "" echo "Configured ZenLib for '$build'" echo "" echo " Unicode? $enable_unicode" echo " Large files support? $enable_large_files" echo " wstring missing support? $enable_wstring_missing" echo " stream missing support? $enable_stream_missing" echo "" echo " Create static lib? $enable_static" echo " Create shared lib? $enable_shared" echo "" echo " CXXFLAGS: $CXXFLAGS" echo " LIBS: $LIBS" ZenLib/Project/GNU/Library/libzen-config.in100777 0 0 542 12143717322 14064 0#!/bin/bash if test "$1" = "CXXFLAGS"; then echo @ZenLib_CXXFLAGS@ fi if test "$1" = "LIBS"; then echo @ZenLib_LIBS@ fi if test "$1" = "LIBS_Static"; then echo @ZenLib_LIBS_Static@ fi if test "$1" = "Unicode"; then echo @ZenLib_Unicode@ fi if test "$1" = "WstringMissing"; then echo @ZenLib_wstring_missing@ fi if test "$1" = "Exists"; then echo yes fi ZenLib/Project/GNU/Library/libzen.pc.in100777 0 0 514 12143717320 13217 0prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@ Unicode=@ZenLib_Unicode@ WstringMissing=@ZenLib_wstring_missing@ Libs_Static=@libdir@/libzen.a -lpthread Name: libzen Version: @PACKAGE_VERSION@ Description: ZenLib Libs: -L@libdir@ -lzen -lpthread -lstdc++ Cflags: -I${includedir} @ZenLib_CXXFLAGS@ ZenLib/Project/GNU/Library/Makefile.am100777 0 0 6665 12014427072 13073 0AUTOMAKE_OPTIONS = foreign lib_LTLIBRARIES = libzen.la libzen_la_SOURCES = \ ../../../Source/ZenLib/Conf.cpp \ ../../../Source/ZenLib/CriticalSection.cpp \ ../../../Source/ZenLib/Dir.cpp \ ../../../Source/ZenLib/File.cpp \ ../../../Source/ZenLib/FileName.cpp \ ../../../Source/ZenLib/InfoMap.cpp \ ../../../Source/ZenLib/int128s.cpp \ ../../../Source/ZenLib/int128u.cpp \ ../../../Source/ZenLib/MemoryDebug.cpp \ ../../../Source/ZenLib/OS_Utils.cpp \ ../../../Source/ZenLib/Translation.cpp \ ../../../Source/ZenLib/Thread.cpp \ ../../../Source/ZenLib/Utils.cpp \ ../../../Source/ZenLib/Ztring.cpp \ ../../../Source/ZenLib/ZtringList.cpp \ ../../../Source/ZenLib/ZtringListList.cpp \ ../../../Source/ZenLib/ZtringListListF.cpp \ ../../../Source/ZenLib/Format/Html/Html_Handler.cpp \ ../../../Source/ZenLib/Format/Html/Html_Request.cpp \ ../../../Source/ZenLib/Format/Http/Http_Cookies.cpp \ ../../../Source/ZenLib/Format/Http/Http_Handler.cpp \ ../../../Source/ZenLib/Format/Http/Http_Request.cpp \ ../../../Source/ZenLib/Format/Http/Http_Utils.cpp libzen_la_LDFLAGS = -no-undefined -version-info 0:0:0 zenincludedir = $(includedir)/ZenLib zeninclude_HEADERS = \ ../../../Source/ZenLib/BitStream.h \ ../../../Source/ZenLib/BitStream_LE.h \ ../../../Source/ZenLib/Conf.h \ ../../../Source/ZenLib/Conf_Internal.h \ ../../../Source/ZenLib/CriticalSection.h \ ../../../Source/ZenLib/Dir.h \ ../../../Source/ZenLib/File.h \ ../../../Source/ZenLib/FileName.h \ ../../../Source/ZenLib/HTTP_Client.h \ ../../../Source/ZenLib/InfoMap.h \ ../../../Source/ZenLib/int128s.h \ ../../../Source/ZenLib/int128u.h \ ../../../Source/ZenLib/MemoryDebug.h \ ../../../Source/ZenLib/OS_Utils.h \ ../../../Source/ZenLib/PreComp.h \ ../../../Source/ZenLib/Thread.h \ ../../../Source/ZenLib/Trace.h \ ../../../Source/ZenLib/Translation.h \ ../../../Source/ZenLib/Utils.h \ ../../../Source/ZenLib/Ztring.h \ ../../../Source/ZenLib/ZtringList.h \ ../../../Source/ZenLib/ZtringListListF.h \ ../../../Source/ZenLib/ZtringListList.h zen_httpclientdir = $(zenincludedir)/HTTP_Client zen_httpclient_HEADERS = \ ../../../Source/ZenLib/HTTP_Client/HTTPClient.h \ ../../../Source/ZenLib/HTTP_Client/HTTPClientCommon.h \ ../../../Source/ZenLib/HTTP_Client/HTTPClientString.h \ ../../../Source/ZenLib/HTTP_Client/HTTPClientAuth.h \ ../../../Source/ZenLib/HTTP_Client/HTTPClientWrapper.h zen_format_htmldir = $(zenincludedir)/Format/Html zen_format_html_HEADERS = \ ../../../Source/ZenLib/Format/Html/Html_Handler.h \ ../../../Source/ZenLib/Format/Html/Html_Request.h zen_format_httpdir = $(zenincludedir)/Format/Http zen_format_http_HEADERS = \ ../../../Source/ZenLib/Format/Http/Http_Utils.h \ ../../../Source/ZenLib/Format/Http/Http_Request.h \ ../../../Source/ZenLib/Format/Http/Http_Handler.h \ ../../../Source/ZenLib/Format/Http/Http_Cookies.h bin_SCRIPTS = libzen-config pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libzen.pc AM_CPPFLAGS = -I../../../Source ZenLib/Project/GNU/libzen.dsc100777 0 0 553 12143747564 11375 0Format: 1.0 Source: libzen Binary: libzen-dev, libzen0 Architecture: any Version: 0.4.29-1 Maintainer: MediaArea.net SARL Homepage: http://mediainfo.sourceforge.net Standards-Version: 3.7.3 Build-Depends: debhelper (>= 5), doxygen, tofrodos, automake, autoconf, libtool Files: 00000000000000000000000000000000 000000 libzen_0.4.29-1.tar.gz ZenLib/Project/GNU/libzen.spec100777 0 0 7720 12143754613 11572 0%define libzen_version 0.4.29 Name: libzen Version: %{libzen_version} Release: 1 Summary: C++ utility library License: Zlib Group: System/Libraries URL: http://sourceforge.net/projects/zenlib Packager: MediaArea.net SARL Source: %{name}_%{version}-1.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gcc-c++ BuildRequires: pkgconfig BuildRequires: glibc-devel BuildRequires: doxygen BuildRequires: libtool BuildRequires: automake BuildRequires: autoconf %description ZenLib is a C++ utility library. It includes classes for handling strings, configuration, bit streams, threading, translation, and cross-platform operating system functions. %package -n %{name}0 Summary: C++ utility library -- runtime Group: System/Libraries Requires: glibc %description -n %{name}0 ZenLib is a C++ utility library. It includes classes for handling strings, configuration, bit streams, threading, translation, and cross-platform operating system functions. This package contains the headers required for compiling applications/libraries which use this library. %package doc Summary: C++ utility library -- documentation Group: Development/Libraries Requires: %{name}0 = %{version} %description doc ZenLib is a C++ utility library. It includes classes for handling strings, configuration, bit streams, threading, translation, and cross-platform operating system functions. This package contains the documentation %package devel Summary: C++ utility library -- development Group: Development/Libraries Requires: %{name}0%{?_isa} = %{version} Requires: glibc-devel %description devel ZenLib is a C++ utility library. It includes classes for handling strings, configuration, bit streams, threading, translation, and cross-platform operating system functions. This package contains the include files and mandatory libraries for development. %prep %setup -q -n ZenLib #Correct documentation encoding and permissions sed -i 's/.$//' *.txt chmod 644 *.txt Source/Doc/Documentation.html chmod 644 Source/ZenLib/*.h Source/ZenLib/*.cpp \ Source/ZenLib/Format/Html/*.h Source/ZenLib/Format/Html/*.cpp \ Source/ZenLib/Format/Http/*.h Source/ZenLib/Format/Http/*.cpp pushd Project/GNU/Library autoreconf -i popd %build export CFLAGS="%{optflags}" export CPPFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" #Make documentation pushd Source/Doc/ doxygen Doxyfile popd cp Source/Doc/*.html ./ pushd Project/GNU/Library %configure --disable-static --enable-shared make clean make %{?_smp_mflags} popd %install pushd Project/GNU/Library make install DESTDIR=%{buildroot} popd #Install headers and ZenLib-config install -dm 755 %{buildroot}%{_includedir}/ZenLib install -m 644 Source/ZenLib/*.h \ %{buildroot}%{_includedir}/ZenLib for i in HTTP_Client Format/Html Format/Http; do install -dm 755 %{buildroot}%{_includedir}/ZenLib/$i install -m 644 Source/ZenLib/$i/*.h \ %{buildroot}%{_includedir}/ZenLib/$i done sed -i -e 's|Version: |Version: %{version}|g' \ Project/GNU/Library/%{name}.pc install -dm 755 %{buildroot}%{_libdir}/pkgconfig install -m 644 Project/GNU/Library/%{name}.pc \ %{buildroot}%{_libdir}/pkgconfig %post -n %{name}0 -p /sbin/ldconfig %postun -n %{name}0 -p /sbin/ldconfig %files -n %{name}0 %defattr(-,root,root,-) %doc History.txt License.txt ReadMe.txt %{_libdir}/%{name}.so.* %files doc %defattr(-,root,root,-) %doc Documentation.html %doc Doc %files devel %defattr(-,root,root,-) %{_bindir}/%{name}-config %{_includedir}/ZenLib %{_libdir}/%{name}.so %{_libdir}/%{name}.la %{_libdir}/pkgconfig/*.pc %changelog * Tue Jan 01 2009 MediaArea.net SARL - 0.4.29-0 - See History.txt for more info and real dates - Previous packages made by Toni Graffy - Fedora style made by Vasiliy N. Glazov ZenLib/Project/MSVC2005/ 40777 0 0 0 11773145374 7761 5ZenLib/Project/MSVC2005/Example/ 40777 0 0 0 11773145374 11354 5ZenLib/Project/MSVC2005/Example/ZenLib_Test.vcproj100777 0 0 6463 12014427071 15056 0 ZenLib/Project/MSVC2005/Library/ 40777 0 0 0 12144136370 11352 5ZenLib/Project/MSVC2005/Library/ZenLib.vcproj100777 0 0 16350 12014427071 14104 0 ZenLib/Project/MSVC2005/ZenLib_MSVC.sln100777 0 0 1270 12014427071 12574 0Microsoft Visual Studio Solution File, Format Version 9.00 # Visual Studio 2005 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZenLib", "Library\ZenLib.vcproj", "{0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|Win32.ActiveCfg = Release|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal ZenLib/Project/MSVC2008/ 40777 0 0 0 11773145374 7764 5ZenLib/Project/MSVC2008/Example/ 40777 0 0 0 11773145374 11357 5ZenLib/Project/MSVC2008/Example/ZenLib_Test.vcproj100777 0 0 6463 12014427071 15061 0 ZenLib/Project/MSVC2008/Library/ 40777 0 0 0 12144136370 11355 5ZenLib/Project/MSVC2008/Library/ZenLib.vcproj100777 0 0 51532 12014427071 14110 0 ZenLib/Project/MSVC2008/ZenLib_MSVC.sln100777 0 0 3706 12014427071 12605 0Microsoft Visual Studio Solution File, Format Version 10.00 # Visual Studio 2008 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZenLib", "Library\ZenLib.vcproj", "{0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 Debug|x64 = Debug|x64 DebugA|Win32 = DebugA|Win32 DebugA|x64 = DebugA|x64 Release|Win32 = Release|Win32 Release|x64 = Release|x64 ReleaseA|Win32 = ReleaseA|Win32 ReleaseA|x64 = ReleaseA|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|Win32.ActiveCfg = Debug|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|Win32.Build.0 = Debug|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|x64.ActiveCfg = Debug|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|x64.Build.0 = Debug|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|Win32.ActiveCfg = DebugA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|Win32.Build.0 = DebugA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|x64.ActiveCfg = DebugA|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|x64.Build.0 = DebugA|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|Win32.ActiveCfg = Release|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|Win32.Build.0 = Release|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|x64.ActiveCfg = Release|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|x64.Build.0 = Release|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|Win32.ActiveCfg = ReleaseA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|Win32.Build.0 = ReleaseA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|x64.ActiveCfg = ReleaseA|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|x64.Build.0 = ReleaseA|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal ZenLib/Project/MSVC2010/ 40777 0 0 0 12144136370 7742 5ZenLib/Project/MSVC2010/Example/ 40777 0 0 0 12037257531 11341 5ZenLib/Project/MSVC2010/Example/ZenLib_Test.sln100777 0 0 1642 12022065532 14334 0 Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZenLib_Test", "ZenLib_Test.vcxproj", "{425F07FD-D7F7-467F-B213-8B60635582F2}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Release_Ansi|Win32 = Release_Ansi|Win32 Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {425F07FD-D7F7-467F-B213-8B60635582F2}.Release_Ansi|Win32.ActiveCfg = Release_Ansi|Win32 {425F07FD-D7F7-467F-B213-8B60635582F2}.Release_Ansi|Win32.Build.0 = Release_Ansi|Win32 {425F07FD-D7F7-467F-B213-8B60635582F2}.Release|Win32.ActiveCfg = Release|Win32 {425F07FD-D7F7-467F-B213-8B60635582F2}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal ZenLib/Project/MSVC2010/Example/ZenLib_Test.vcxproj100777 0 0 10215 12022067161 15247 0 Release_Ansi Win32 Release Win32 {425F07FD-D7F7-467F-B213-8B60635582F2} Win32Proj Application MultiByte Application Unicode <_ProjectFileVersion>10.0.40219.1 Release\ Release\ Release_Ansi\ Release_Ansi\ ../../../Source;%(AdditionalIncludeDirectories) WIN32;NDEBUG;%(PreprocessorDefinitions) Level4 comctl32.lib;WxJpeg.lib;WxPng.lib;WxTiff.lib;WxWidgets.lib;ZenLib.lib;%(AdditionalDependencies) ../../../Release/MSVC/Library;../../../../Shared/Library/MSVC comctl32.lib;WxJpeg.lib;WxPng.lib;WxTiff.lib;WxWidgets.lib;ZenLib.lib;%(AdditionalDependencies) ../../../Source;%(AdditionalIncludeDirectories) WIN32;NDEBUG;%(PreprocessorDefinitions) Level4 ZenLibA.lib;WxBaseA.lib;%(AdditionalDependencies) ../../../ReleaseA/MSVC/Library;../../../../Shared/Library/MSVC ZenLib/Project/MSVC2010/Example/ZenLib_Test.vcxproj.filters100777 0 0 1020 12022065516 16672 0 {5fc02ff6-0eab-4a4f-a754-256dd82d27af} cpp;c;cxx;def;odl;idl;hpj;bat;asm Source Files ZenLib/Project/MSVC2010/Library/ 40777 0 0 0 12144136370 11346 5ZenLib/Project/MSVC2010/Library/ZenLib.vcxproj100777 0 0 47143 12134545607 14305 0 DebugA Win32 DebugA x64 Debug Win32 Debug x64 ReleaseA Win32 ReleaseA x64 Release Win32 Release x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94} ZenLib Win32Proj StaticLibrary MultiByte StaticLibrary MultiByte true StaticLibrary Unicode true StaticLibrary Unicode StaticLibrary MultiByte StaticLibrary MultiByte true StaticLibrary Unicode true StaticLibrary Unicode <_ProjectFileVersion>10.0.30128.1 $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ Disabled ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebug Level4 EditAndContinue true Use ZenLib/PreComp.h MachineX86 Disabled ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreadedDebug Level4 ProgramDatabase EnableFastChecks true Use ZenLib/PreComp.h MachineX64 MaxSpeed ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreaded Level4 true Use ZenLib/PreComp.h MachineX86 MaxSpeed ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreaded Level4 true Use ZenLib/PreComp.h MachineX64 MaxSpeed ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreaded Level4 true Use ZenLib/PreComp.h MachineX86 MaxSpeed ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreaded Level4 true Use ZenLib/PreComp.h MachineX64 Disabled ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebug Level4 EditAndContinue true Use ZenLib/PreComp.h MachineX86 Disabled ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebug Level4 ProgramDatabase true Use ZenLib/PreComp.h MachineX64 Create Create Create Create Create Create Create Create ZenLib/Project/MSVC2010/Library/ZenLib.vcxproj.filters100777 0 0 17762 12014427072 15750 0 {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx {b0e0820a-9895-4fee-8a01-7583d157cda3} {a987454d-645c-4a63-bc84-ffc79ae4679d} {e2876701-1853-42b5-a385-15d45b825a88} {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hpp;hxx;hm;inl;inc;xsd {14855e7b-4367-4780-9bdb-48a7e942fd23} {5cfba4eb-2f03-4a6b-8f8a-a8a0dbfb4802} {16c53209-3c96-4ded-b925-c5cd36c4858f} Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files\Format\Http Source Files\Format\Http Source Files\Format\Http Source Files\Format\Http Source Files\Format\Html Source Files\Format\Html Source Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files\Format\Html Header Files\Format\Html Header Files\Format\Http Header Files\Format\Http Header Files\Format\Http Header Files\Format\Http Header Files Header Files ZenLib/Project/MSVC2010/ZenLib_MSVC.sln100777 0 0 3707 12014427072 12600 0Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2010 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZenLib", "Library\ZenLib.vcxproj", "{0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 Debug|x64 = Debug|x64 DebugA|Win32 = DebugA|Win32 DebugA|x64 = DebugA|x64 Release|Win32 = Release|Win32 Release|x64 = Release|x64 ReleaseA|Win32 = ReleaseA|Win32 ReleaseA|x64 = ReleaseA|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|Win32.ActiveCfg = Debug|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|Win32.Build.0 = Debug|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|x64.ActiveCfg = Debug|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|x64.Build.0 = Debug|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|Win32.ActiveCfg = DebugA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|Win32.Build.0 = DebugA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|x64.ActiveCfg = DebugA|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|x64.Build.0 = DebugA|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|Win32.ActiveCfg = Release|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|Win32.Build.0 = Release|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|x64.ActiveCfg = Release|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|x64.Build.0 = Release|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|Win32.ActiveCfg = ReleaseA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|Win32.Build.0 = ReleaseA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|x64.ActiveCfg = ReleaseA|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|x64.Build.0 = ReleaseA|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal ZenLib/Project/MSVC2012/ 40777 0 0 0 12036061777 7754 5ZenLib/Project/MSVC2012/Example/ 40777 0 0 0 12036062014 11330 5ZenLib/Project/MSVC2012/Example/ZenLib_Test.sln100777 0 0 1640 12036062050 14331 0Microsoft Visual Studio Solution File, Format Version 11.00 # Visual Studio 2012 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZenLib_Test", "ZenLib_Test.vcxproj", "{425F07FD-D7F7-467F-B213-8B60635582F2}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Release_Ansi|Win32 = Release_Ansi|Win32 Release|Win32 = Release|Win32 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {425F07FD-D7F7-467F-B213-8B60635582F2}.Release_Ansi|Win32.ActiveCfg = Release_Ansi|Win32 {425F07FD-D7F7-467F-B213-8B60635582F2}.Release_Ansi|Win32.Build.0 = Release_Ansi|Win32 {425F07FD-D7F7-467F-B213-8B60635582F2}.Release|Win32.ActiveCfg = Release|Win32 {425F07FD-D7F7-467F-B213-8B60635582F2}.Release|Win32.Build.0 = Release|Win32 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal ZenLib/Project/MSVC2012/Example/ZenLib_Test.vcxproj100777 0 0 10215 12022067161 15251 0 Release_Ansi Win32 Release Win32 {425F07FD-D7F7-467F-B213-8B60635582F2} Win32Proj Application MultiByte Application Unicode <_ProjectFileVersion>10.0.40219.1 Release\ Release\ Release_Ansi\ Release_Ansi\ ../../../Source;%(AdditionalIncludeDirectories) WIN32;NDEBUG;%(PreprocessorDefinitions) Level4 comctl32.lib;WxJpeg.lib;WxPng.lib;WxTiff.lib;WxWidgets.lib;ZenLib.lib;%(AdditionalDependencies) ../../../Release/MSVC/Library;../../../../Shared/Library/MSVC comctl32.lib;WxJpeg.lib;WxPng.lib;WxTiff.lib;WxWidgets.lib;ZenLib.lib;%(AdditionalDependencies) ../../../Source;%(AdditionalIncludeDirectories) WIN32;NDEBUG;%(PreprocessorDefinitions) Level4 ZenLibA.lib;WxBaseA.lib;%(AdditionalDependencies) ../../../ReleaseA/MSVC/Library;../../../../Shared/Library/MSVC ZenLib/Project/MSVC2012/Example/ZenLib_Test.vcxproj.filters100777 0 0 1020 12022065516 16674 0 {5fc02ff6-0eab-4a4f-a754-256dd82d27af} cpp;c;cxx;def;odl;idl;hpj;bat;asm Source Files ZenLib/Project/MSVC2012/Library/ 40777 0 0 0 12144136370 11350 5ZenLib/Project/MSVC2012/Library/ZenLib.vcxproj100777 0 0 47743 12074467627 14325 0 DebugA Win32 DebugA x64 Debug Win32 Debug x64 ReleaseA Win32 ReleaseA x64 Release Win32 Release x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94} ZenLib Win32Proj StaticLibrary MultiByte v110_xp StaticLibrary MultiByte true v110_xp StaticLibrary Unicode true v110_xp StaticLibrary Unicode v110_xp StaticLibrary MultiByte v110_xp StaticLibrary MultiByte true v110_xp StaticLibrary Unicode true v110_xp StaticLibrary Unicode v110_xp <_ProjectFileVersion>10.0.30128.1 $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ $(Platform)\$(Configuration)\ $(Platform)\$(Configuration)\Intermediate\ Disabled ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebug Use ZenLib/PreComp.h EditAndContinue true Level4 MachineX86 Disabled ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreadedDebug Level4 ProgramDatabase EnableFastChecks true Use ZenLib/PreComp.h MachineX64 MaxSpeed ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreaded Level4 true Use ZenLib/PreComp.h MachineX86 MaxSpeed ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreaded Level4 true Use ZenLib/PreComp.h MachineX64 MaxSpeed ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreaded Level4 true Use ZenLib/PreComp.h MachineX86 MaxSpeed ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) MultiThreaded Level4 true Use ZenLib/PreComp.h MachineX64 Disabled ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebug Level4 EditAndContinue true Use ZenLib/PreComp.h MachineX86 Disabled ../../../Source;../../../../zlib;%(AdditionalIncludeDirectories) WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) EnableFastChecks MultiThreadedDebug Level4 ProgramDatabase true Use ZenLib/PreComp.h MachineX64 Create Create Create Create Create Create Create Create ZenLib/Project/MSVC2012/Library/ZenLib.vcxproj.filters100777 0 0 17762 12014427072 15752 0 {4FC737F1-C7A5-4376-A066-2A32D752A2FF} cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx {b0e0820a-9895-4fee-8a01-7583d157cda3} {a987454d-645c-4a63-bc84-ffc79ae4679d} {e2876701-1853-42b5-a385-15d45b825a88} {93995380-89BD-4b04-88EB-625FBE52EBFB} h;hpp;hxx;hm;inl;inc;xsd {14855e7b-4367-4780-9bdb-48a7e942fd23} {5cfba4eb-2f03-4a6b-8f8a-a8a0dbfb4802} {16c53209-3c96-4ded-b925-c5cd36c4858f} Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files Source Files\Format\Http Source Files\Format\Http Source Files\Format\Http Source Files\Format\Http Source Files\Format\Html Source Files\Format\Html Source Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files Header Files\Format\Html Header Files\Format\Html Header Files\Format\Http Header Files\Format\Http Header Files\Format\Http Header Files\Format\Http Header Files Header Files ZenLib/Project/MSVC2012/ZenLib_MSVC.sln100777 0 0 3707 12036041004 12571 0Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZenLib", "Library\ZenLib.vcxproj", "{0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Win32 = Debug|Win32 Debug|x64 = Debug|x64 DebugA|Win32 = DebugA|Win32 DebugA|x64 = DebugA|x64 Release|Win32 = Release|Win32 Release|x64 = Release|x64 ReleaseA|Win32 = ReleaseA|Win32 ReleaseA|x64 = ReleaseA|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|Win32.ActiveCfg = Debug|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|Win32.Build.0 = Debug|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|x64.ActiveCfg = Debug|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Debug|x64.Build.0 = Debug|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|Win32.ActiveCfg = DebugA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|Win32.Build.0 = DebugA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|x64.ActiveCfg = DebugA|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.DebugA|x64.Build.0 = DebugA|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|Win32.ActiveCfg = Release|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|Win32.Build.0 = Release|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|x64.ActiveCfg = Release|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.Release|x64.Build.0 = Release|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|Win32.ActiveCfg = ReleaseA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|Win32.Build.0 = ReleaseA|Win32 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|x64.ActiveCfg = ReleaseA|x64 {0DA1DA7D-F393-4E7C-A7CE-CB5C6A67BC94}.ReleaseA|x64.Build.0 = ReleaseA|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal ZenLib/Project/Solaris/ 40777 0 0 0 12144136370 10303 5ZenLib/Project/Solaris/mkpkg100777 0 0 5471 12143533071 11444 0#!/bin/bash #Config user=`id -un` group=`id -gn` processor=`uname -p` kernel=`uname -s` release=`uname -r` #Creation of known directories and filenames name="libzen0" version="0.4.29" Home=`pwd` install_prefix=${Home}/mk_package packagecreation_prefix=${Home}/create_package if test -z ${basedir}; then basedir="/" fi #Common code . ./mkpkg.sub #Compile and install cd ../GNU/Library ./autogen ./configure --prefix=${install_prefix} --enable-shared --disable-static $* make if test -e .libs/libzen.so; then echo "Compilation OK" else echo "Compilation problem" exit 1 fi #**************************************************************************** # Release #**************************************************************************** cd ${Home} mkdir -p ${install_prefix} #Copying useful files install -d -m 755 ${install_prefix}/lib cp -rP ../GNU/Library/.libs/*.so* ${install_prefix}/lib install -d -m 755 ${install_prefix}/share/doc/${name} cp ../../*.txt ${install_prefix}/share/doc/${name} chmod 644 ${install_prefix}/share/doc/${name}/*.txt #Creation of package pkgname="${name}" PackageCreate #**************************************************************************** # Devel #**************************************************************************** cd ${Home} mkdir -p ${install_prefix} #include install -d -m 755 ${install_prefix}/include/ZenLib cp ../../Source/ZenLib/*.h ${install_prefix}/include/ZenLib/ chmod 644 ${install_prefix}/include/ZenLib/*.h install -d -m 755 ${install_prefix}/include/ZenLib/Base64 cp ../../Source/ZenLib/Base64/*.h ${install_prefix}/include/ZenLib/Base64 chmod 644 ${install_prefix}/include/ZenLib/Base64/*.h install -d -m 755 ${install_prefix}/include/ZenLib/HTTP_Client cp ../../Source/ZenLib/HTTP_Client/*.h ${install_prefix}/include/ZenLib/HTTP_Client chmod 644 ${install_prefix}/include/ZenLib/HTTP_Client/*.h install -d -m 755 ${install_prefix}/include/ZenLib/Format/Html cp ../../Source/ZenLib/Format/Html/*.h ${install_prefix}/include/ZenLib/Format/Html chmod 644 ${install_prefix}/include/ZenLib/Format/Html/*.h install -d -m 755 ${install_prefix}/include/ZenLib/Format/Http cp ../../Source/ZenLib/Format/Http/*.h ${install_prefix}/include/ZenLib/Format/Http chmod 644 ${install_prefix}/include/ZenLib/Format/Http/*.h install -d -m 755 ${install_prefix}/include/ZenLib/TinyXml cp ../../Source/ZenLib/TinyXml/*.h ${install_prefix}/include/ZenLib/TinyXml chmod 644 ${install_prefix}/include/ZenLib/TinyXml/*.h install -d -m 755 ${install_prefix}/bin cp ../GNU/Library/libzen-config ${install_prefix}/bin chmod 755 ${install_prefix}/bin/* #depend file mkdir -p ${packagecreation_prefix} echo "P ${name}" > ${packagecreation_prefix}/depend pkgname="${name}-devel" PackageCreate exit 0 #hints #install: pkgadd -R /opt/libzen0 -d./ libzen0 #remove: pkgrm libzen0, remove /var/spool/name/libzen0 ZenLib/Project/Solaris/mkpkg.sub100777 0 0 6302 12014427072 12226 0#!/bin/bash PackageCreate() { mkdir -p ${packagecreation_prefix} #checkinstall echo -e "#!/bin/sh" > ${packagecreation_prefix}/checkinstall echo -e "" >> ${packagecreation_prefix}/checkinstall echo -e "expected_platform=\042${processor}\042" >> ${packagecreation_prefix}/checkinstall echo -e "" >> ${packagecreation_prefix}/checkinstall echo -e "platform=\0140uname -p\0140" >> ${packagecreation_prefix}/checkinstall echo -e "" >> ${packagecreation_prefix}/checkinstall echo -e "if [ \044{platform} != \044{expected_platform} ]; then" >> ${packagecreation_prefix}/checkinstall echo -e " echo \042\0134n\0134n\0134n\0134tThis package must be installer on a \044{expected_platform} architecture\0134n\042" >> ${packagecreation_prefix}/checkinstall echo -e " echo \042\0134tAbording intallation.\0134n\0134n\0134n\042" >> ${packagecreation_prefix}/checkinstall echo -e " exit 1" >> ${packagecreation_prefix}/checkinstall echo -e "fi" >> ${packagecreation_prefix}/checkinstall echo -e "" >> ${packagecreation_prefix}/checkinstall echo -e "exit 0" >> ${packagecreation_prefix}/checkinstall #prototype file echo "i pkginfo" > ${packagecreation_prefix}/prototype echo "!default 0755 root bin" >> ${packagecreation_prefix}/prototype echo "i checkinstall" >> ${packagecreation_prefix}/prototype if test -e ${packagecreation_prefix}/depend; then echo "i depend" >> ${packagecreation_prefix}/prototype fi cd ${install_prefix} find . -print > ${packagecreation_prefix}/files cat ${packagecreation_prefix}/files | pkgproto | sed "s/ bin bin/ ? /g" | sed "s/ ${user} / ? /g" | sed "s/ ${group}/ ?/g" >> ${packagecreation_prefix}/prototype #pkginfo file echo "PKG=${pkgname}" > ${packagecreation_prefix}/pkginfo echo "VERSION=${version}" >> ${packagecreation_prefix}/pkginfo echo "ARCH=${processor}" >> ${packagecreation_prefix}/pkginfo echo "NAME=${pkgname} ${version} ${kernel} ${release} ${processor}" >> ${packagecreation_prefix}/pkginfo echo "DESC=Base library for some other projects" >> ${packagecreation_prefix}/pkginfo echo "CLASSES=none" >> ${packagecreation_prefix}/pkginfo echo "CATEGORY=utility" >> ${packagecreation_prefix}/pkginfo echo "VENDOR=MediaArea.net" >> ${packagecreation_prefix}/pkginfo echo "EMAIL=Info@MediaArea.net" >> ${packagecreation_prefix}/pkginfo echo "BASEDIR=${basedir}" >> ${packagecreation_prefix}/pkginfo cd ${packagecreation_prefix} pkgmk -o -b ${install_prefix} -d . -f prototype echo tar -cf - $pkgname | gzip -9 -c >${Home}/${pkgname}-${version}-${processor}.${kernel}_${release}.tar.gz tar -cf - $pkgname | gzip -9 -c >${Home}/${pkgname}-${version}-${processor}.${kernel}_${release}.tar.gz echo pkgtrans ${packagecreation_prefix} ${Home}/${pkgname}-${version}-${processor}.${kernel}_${release}.pkg ${pkgname} pkgtrans ${packagecreation_prefix} ${Home}/${pkgname}-${version}-${processor}.${kernel}_${release}.pkg ${pkgname} echo gzip -9 -cf ${Home}/${pkgname}-${version}-${processor}.${kernel}_${release}.pkg >${Home}/${pkgname}-${version}-${processor}.${kernel}_${release}.pkg.gz gzip -9 -cf ${Home}/${pkgname}-${version}-${processor}.${kernel}_${release}.pkg >${Home}/${pkgname}-${version}-${processor}.${kernel}_${release}.pkg.gz #Removing files cd ${home} rm -rf ${install_prefix} rm -rf ${packagecreation_prefix} } ZenLib/ReadMe.txt100777 0 0 306 12017715052 7235 0ZenLib - http://zenlib.sourceforge.net Copyright (c) 2005-2012, Jerome Martinez, zen@mediaarea.net This program is freeware under zlib licence conditions. See Licence.txt for more information ZenLib/Release/ 40777 0 0 0 12144136370 6641 5ZenLib/Release/CleanUp.bat100777 0 0 1463 11773610520 10765 0@rem echo off @rem --- General --- cd .. del *.~* *.obj *.o *.tds *.dcu *.ddp *.opt *.ncb *.suo *.ilk *.idb *.pdb *.pch *.plg *.aps *.user *.win *.layout *.local *.depend *.identcache *.tgs *.tgw *.sdf /Q /S del *.~* *.obj *.o *.tds *.dcu *.ddp *.opt *.ncb *.suo *.ilk *.idb *.pdb *.pch *.plg *.aps *.user *.win *.layout *.local *.depend *.identcache *.tgs *.tgw *.sdf /AH /Q /S cd Release @rem Borland Developper Studio --- cd ..\Project\BCB call CleanUp cd ..\..\Release @rem Code::Blocks --- cd ..\Project\CodeBlocks call CleanUp cd ..\..\Release @rem MS Visual Studio --- cd ..\Project\MSVC2010 call CleanUp cd ..\..\Release cd ..\Project\MSVC2008 call CleanUp cd ..\..\Release cd ..\Project\MSVC2005 call CleanUp cd ..\..\Release @rem Release --- del *.zip *.gz *.bz2 *.7z /Q /S ZenLib/Release/Release_BCB.bat100777 0 0 1355 11773610520 11464 0@echo off rem --- Clean up --- del ZenLib_BCB.7z rmdir ZenLib_BCB /S /Q mkdir ZenLib_BCB rem --- Copying : Include --- xcopy ..\Source\ZenLib\*.h ZenLib_BCB\Include\ZenLib\ rem --- Copying : Documentation --- mkdir Doc cd ..\Source\Doc ..\..\..\Shared\Binary\Doxygen Doxygen cd ..\..\Release mkdir ZenLib_BCB\Doc\ xcopy Doc\*.* ZenLib_BCB\Doc\ rmdir Doc /S /Q xcopy ..\Source\Doc\*.html ZenLib_BCB\ /S rem --- Copying : Library --- copy BCB\Library\ZenLib.lib ZenLib_BCB\ rem --- Copying : Information files --- copy ..\*.txt ZenLib_BCB\ rem --- Compressing Archive --- cd ZenLib_BCB ..\..\..\Shared\Binary\Win32\7-Zip\7z a -r -t7z -mx9 ..\ZenLib_BCB.7z * cd .. rem --- Clean up --- rmdir ZenLib_BCB /S /QZenLib/Release/Release_GNU_Prepare.bat100777 0 0 1664 11773610520 13210 0@echo off rem --- Clean up --- del ZenLib_GNU_Prepare.7z rmdir ZenLib_GNU_Prepare /S /Q mkdir ZenLib_GNU_Prepare @rem --- Copying : Sources --- xcopy ..\Source\ZenLib\*.h ZenLib_GNU_Prepare\Source\ZenLib\ /S xcopy ..\Source\ZenLib\*.c ZenLib_GNU_Prepare\Source\ZenLib\ /S xcopy ..\Source\ZenLib\*.cpp ZenLib_GNU_Prepare\Source\ZenLib\ /S @rem --- Copying : Projects --- xcopy ..\Project\GNU\* ZenLib_GNU_Prepare\Project\GNU\ /S @rem --- Copying : Release --- xcopy *.txt ZenLib_GNU_Prepare\Release\ xcopy *.sh ZenLib_GNU_Prepare\Release\ rem --- Copying : Information files --- copy ..\*.txt ZenLib_GNU_Prepare\ rem --- Compressing Archive --- if "%2"=="SkipCompression" goto SkipCompression ..\..\Shared\Binary\Win32\7-Zip\7z a -r -t7z -mx9 ZenLib_GNU_Prepare.7z ZenLib_GNU_Prepare\* :SkipCompression rem --- Clean up --- if "%1"=="SkipCleanUp" goto SkipCleanUp rmdir ZenLib_GNU_Prepare /S /Q :SkipCleanUp ZenLib/Release/Release_Source.bat100777 0 0 6231 11773610520 12334 0@echo off rem --- Clean up --- del ZenLib_Source.7z rmdir ZenLib_Source /S /Q mkdir ZenLib_Source @rem --- Copying : Sources --- xcopy ..\Source\*.h ZenLib_Source\Source\ /S xcopy ..\Source\*.c ZenLib_Source\Source\ /S xcopy ..\Source\*.cpp ZenLib_Source\Source\ /S xcopy ..\Source\Doc\* ZenLib_Source\Source\Doc\ /S @rem --- Copying : debian --- xcopy ..\debian\* ZenLib_Source\debian\ /S @rem --- Copying : Projects --- xcopy ..\Project\*.bpg ZenLib_Source\Project\ /S xcopy ..\Project\*.bpf ZenLib_Source\Project\ /S xcopy ..\Project\*.bpr ZenLib_Source\Project\ /S xcopy ..\Project\*.res* ZenLib_Source\Project\ /S xcopy ..\Project\*.dfm ZenLib_Source\Project\ /S xcopy ..\Project\*.c ZenLib_Source\Project\ /S xcopy ..\Project\*.cpp ZenLib_Source\Project\ /S xcopy ..\Project\*.bdsgroup ZenLib_Source\Project\ /S xcopy ..\Project\*.bdsproj ZenLib_Source\Project\ /S xcopy ..\Project\*.dpr ZenLib_Source\Project\ /S xcopy ..\Project\*.pas ZenLib_Source\Project\ /S xcopy ..\Project\*.dof ZenLib_Source\Project\ /S xcopy ..\Project\*.dev ZenLib_Source\Project\ /S xcopy ..\Project\*.sln ZenLib_Source\Project\ /S xcopy ..\Project\*.cs ZenLib_Source\Project\ /S xcopy ..\Project\*.csproj ZenLib_Source\Project\ /S xcopy ..\Project\*.jsl ZenLib_Source\Project\ /S xcopy ..\Project\*.vjsproj ZenLib_Source\Project\ /S xcopy ..\Project\*.vb ZenLib_Source\Project\ /S xcopy ..\Project\*.vbproj ZenLib_Source\Project\ /S xcopy ..\Project\*.vc ZenLib_Source\Project\ /S xcopy ..\Project\*.vcproj ZenLib_Source\Project\ /S xcopy ..\Project\*.vcxproj ZenLib_Source\Project\ /S xcopy ..\Project\*.vcxproj.filters ZenLib_Source\Project\ /S xcopy ..\Project\*.ico ZenLib_Source\Project\ /S xcopy ..\Project\*.workspace ZenLib_Source\Project\ /S xcopy ..\Project\*.cbp ZenLib_Source\Project\ /S xcopy ..\Project\BCB\*.h ZenLib_Source\Project\BCB\ /S xcopy ..\Project\CMake\*.txt ZenLib_Source\Project\CMake\ /S xcopy ..\Project\MSVC\*.h ZenLib_Source\Project\MSVC\ /S xcopy ..\Project\MSVC\*.rc ZenLib_Source\Project\MSVC\ /S xcopy ..\Project\GNU\* ZenLib_Source\Project\GNU\ /S xcopy ..\Project\Solaris\* ZenLib_Source\Project\Solaris\ /S @rem --- Copying : Release --- xcopy *.txt ZenLib_Source\Release\ xcopy *.bat ZenLib_Source\Release\ xcopy BCB\*.txt ZenLib_Source\Release\BCB\ /S xcopy MSVC\*.txt ZenLib_Source\Release\MSVC\ /S xcopy GCC_MinGW32\*.txt ZenLib_Source\Release\GCC_MinGW32\ /S xcopy GCC_Linux_i386\*.txt ZenLib_Source\Release\GCC_Linux_i386\ /S rem --- Copying : Information files --- copy ..\*.txt ZenLib_Source\ rem --- Copying : CVS files --- copy ..\*.cvsignore ZenLib_Source\ rem --- Compressing Archive --- if "%2"=="SkipCompression" goto SkipCompression move ZenLib_Source ZenLib ..\..\Shared\Binary\Windows_i386\7-Zip\7z a -r -ttar -mx9 ZenLib_Source.tar ZenLib\* ..\..\Shared\Binary\Windows_i386\7-Zip\7z a -r -tbzip2 -mx9 libzen_.tar.bz2 ZenLib_Source.tar ..\..\Shared\Binary\Windows_i386\7-Zip\7z a -r -tgzip -mx9 libzen_-1.tar.gz ZenLib_Source.tar del ZenLib_Source.tar move ZenLib ZenLib_Source :SkipCompression rem --- Clean up --- if "%1"=="SkipCleanUp" goto SkipCleanUp rmdir ZenLib_Source /S /Q :SkipCleanUp ZenLib/Source/ 40777 0 0 0 12144136366 6526 5ZenLib/Source/Doc/ 40777 0 0 0 12144136366 7233 5ZenLib/Source/Doc/Documentation.html100777 0 0 212 12021752016 12773 0
(redirecting)
ZenLib/Source/Doc/Doxyfile100777 0 0 16551 12143713334 11064 0# Doxyfile 1.5.5 #--------------------------------------------------------------------------- # General configuration options #--------------------------------------------------------------------------- PROJECT_NAME = ZenLib PROJECT_NUMBER = OUTPUT_DIRECTORY = ./ OUTPUT_LANGUAGE = English EXTRACT_ALL = YES EXTRACT_PRIVATE = NO EXTRACT_STATIC = NO EXTRACT_LOCAL_CLASSES = YES HIDE_UNDOC_MEMBERS = NO HIDE_UNDOC_CLASSES = NO HIDE_FRIEND_COMPOUNDS = NO HIDE_IN_BODY_DOCS = NO BRIEF_MEMBER_DESC = YES REPEAT_BRIEF = YES ALWAYS_DETAILED_SEC = NO INLINE_INHERITED_MEMB = NO FULL_PATH_NAMES = NO STRIP_FROM_PATH = INTERNAL_DOCS = NO CASE_SENSE_NAMES = YES SHORT_NAMES = NO HIDE_SCOPE_NAMES = NO VERBATIM_HEADERS = YES SHOW_INCLUDE_FILES = YES JAVADOC_AUTOBRIEF = NO MULTILINE_CPP_IS_BRIEF = NO INHERIT_DOCS = YES INLINE_INFO = YES SORT_MEMBER_DOCS = YES DISTRIBUTE_GROUP_DOC = NO TAB_SIZE = 8 GENERATE_TODOLIST = YES GENERATE_TESTLIST = YES GENERATE_BUGLIST = YES GENERATE_DEPRECATEDLIST= YES ALIASES = ENABLED_SECTIONS = MAX_INITIALIZER_LINES = 30 OPTIMIZE_OUTPUT_FOR_C = NO OPTIMIZE_OUTPUT_JAVA = NO SHOW_USED_FILES = YES #--------------------------------------------------------------------------- # configuration options related to warning and progress messages #--------------------------------------------------------------------------- QUIET = YES WARNINGS = NO WARN_IF_UNDOCUMENTED = NO WARN_IF_DOC_ERROR = NO WARN_FORMAT = "$file:$line: $text" WARN_LOGFILE = #--------------------------------------------------------------------------- # configuration options related to the input files #--------------------------------------------------------------------------- INPUT = ../ZenLib/ FILE_PATTERNS = *.h RECURSIVE = YES EXCLUDE = EXCLUDE_SYMLINKS = NO EXCLUDE_PATTERNS = EXAMPLE_PATH = EXAMPLE_PATTERNS = EXAMPLE_RECURSIVE = NO IMAGE_PATH = INPUT_FILTER = FILTER_SOURCE_FILES = NO #--------------------------------------------------------------------------- # configuration options related to source browsing #--------------------------------------------------------------------------- SOURCE_BROWSER = NO INLINE_SOURCES = NO STRIP_CODE_COMMENTS = NO REFERENCED_BY_RELATION = YES REFERENCES_RELATION = YES #--------------------------------------------------------------------------- # configuration options related to the alphabetical class index #--------------------------------------------------------------------------- ALPHABETICAL_INDEX = NO COLS_IN_ALPHA_INDEX = 5 IGNORE_PREFIX = #--------------------------------------------------------------------------- # configuration options related to the HTML output #--------------------------------------------------------------------------- GENERATE_HTML = YES HTML_OUTPUT = ../../Doc HTML_FILE_EXTENSION = .html HTML_HEADER = HTML_FOOTER = HTML_STYLESHEET = GENERATE_HTMLHELP = NO CHM_FILE = HHC_LOCATION = GENERATE_CHI = NO BINARY_TOC = NO TOC_EXPAND = NO DISABLE_INDEX = NO ENUM_VALUES_PER_LINE = 4 GENERATE_TREEVIEW = NO TREEVIEW_WIDTH = 250 #--------------------------------------------------------------------------- # configuration options related to the LaTeX output #--------------------------------------------------------------------------- GENERATE_LATEX = NO LATEX_OUTPUT = latex LATEX_CMD_NAME = latex MAKEINDEX_CMD_NAME = makeindex COMPACT_LATEX = NO PAPER_TYPE = a4wide EXTRA_PACKAGES = LATEX_HEADER = PDF_HYPERLINKS = NO USE_PDFLATEX = NO LATEX_BATCHMODE = NO #--------------------------------------------------------------------------- # configuration options related to the RTF output #--------------------------------------------------------------------------- GENERATE_RTF = NO RTF_OUTPUT = rtf COMPACT_RTF = NO RTF_HYPERLINKS = NO RTF_STYLESHEET_FILE = RTF_EXTENSIONS_FILE = #--------------------------------------------------------------------------- # configuration options related to the man page output #--------------------------------------------------------------------------- GENERATE_MAN = NO MAN_OUTPUT = man MAN_EXTENSION = .3 MAN_LINKS = NO #--------------------------------------------------------------------------- # configuration options related to the XML output #--------------------------------------------------------------------------- GENERATE_XML = NO XML_SCHEMA = XML_DTD = #--------------------------------------------------------------------------- # configuration options for the AutoGen Definitions output #--------------------------------------------------------------------------- GENERATE_AUTOGEN_DEF = NO #--------------------------------------------------------------------------- # configuration options related to the Perl module output #--------------------------------------------------------------------------- GENERATE_PERLMOD = NO PERLMOD_LATEX = NO PERLMOD_PRETTY = YES PERLMOD_MAKEVAR_PREFIX = #--------------------------------------------------------------------------- # Configuration options related to the preprocessor #--------------------------------------------------------------------------- ENABLE_PREPROCESSING = YES MACRO_EXPANSION = NO EXPAND_ONLY_PREDEF = NO SEARCH_INCLUDES = YES INCLUDE_PATH = INCLUDE_FILE_PATTERNS = PREDEFINED = EXPAND_AS_DEFINED = SKIP_FUNCTION_MACROS = YES #--------------------------------------------------------------------------- # Configuration::addtions related to external references #--------------------------------------------------------------------------- TAGFILES = GENERATE_TAGFILE = ALLEXTERNALS = NO EXTERNAL_GROUPS = YES PERL_PATH = /usr/bin/perl #--------------------------------------------------------------------------- # Configuration options related to the dot tool #--------------------------------------------------------------------------- CLASS_DIAGRAMS = YES HIDE_UNDOC_RELATIONS = YES HAVE_DOT = NO CLASS_GRAPH = YES COLLABORATION_GRAPH = YES TEMPLATE_RELATIONS = YES INCLUDE_GRAPH = YES INCLUDED_BY_GRAPH = YES GRAPHICAL_HIERARCHY = YES DOT_IMAGE_FORMAT = png DOT_PATH = DOTFILE_DIRS = GENERATE_LEGEND = YES DOT_CLEANUP = YES #--------------------------------------------------------------------------- # Configuration::addtions related to the search engine #--------------------------------------------------------------------------- SEARCHENGINE = NO ZenLib/Source/Example/ 40777 0 0 0 12144136366 10121 5ZenLib/Source/Example/ZenLib_Test.cpp100777 0 0 2445 12143707535 13115 0/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a zlib-style license that can * be found in the License.txt file in the root of the source tree. */ #include #include #include #include #include "ZenLib/Conf.h" #include "ZenLib/Ztring.h" #include "ZenLib/ZtringListList.h" #include "ZenLib/MemoryDebug.h" using namespace ZenLib; int main(char /*argc*/, char ** /*argv*/) { //Ztring and Unicode //-How To Use Ztring Z1, Z2; Z1+=Z2.From_Unicode(L"Unicode - \xE0\x01FC\r\n"); Z1+=Z2.From_Local("No Unicode - abc\r\n"); Z1+=Z2.From_Number(0x7FFFFFFFFFFFFFFFULL); //Displaying #if defined(_UNICODE) wprintf (L"%s\r\n", Z1.c_str()); #else printf ("%s\r\n", Z1.c_str()); #endif //ZtringLisList ZtringListList ZLL; ZLL=L"11;12;13\r\n21;22;23\r\n31;32;33"; wprintf (L"\r\nZtringListList\r\n%s\r\n", ZLL.Read().c_str()); wprintf (L"%s\r\n", ZLL.Read(1).c_str()); wprintf (L"%s\r\n", ZLL.Read(1, 1).c_str()); //Debug Mode char* A=new char[50]; //Search for a file Debug_MemoryLeak.txt system("PAUSE"); } //--------------------------------------------------------------------------- ZenLib/Source/ZenLib/ 40777 0 0 0 12144136366 7711 5ZenLib/Source/ZenLib/BitStream.h100777 0 0 23741 12143707535 12104 0/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a zlib-style license that can * be found in the License.txt file in the root of the source tree. */ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // Read a stream bit per bit // Can read up to 32 bits at once // //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //--------------------------------------------------------------------------- #ifndef ZenBitStreamH #define ZenBitStreamH //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "ZenLib/Conf.h" //--------------------------------------------------------------------------- namespace ZenLib { #ifndef MIN #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #endif class BitStream { public: BitStream () {Buffer=NULL; Buffer_Size=Buffer_Size_Init=Buffer_Size_BeforeLastCall=0; LastByte_Size=0; BufferUnderRun=true; BookMark=false;} BitStream (const int8u* Buffer_, size_t Size_) {Buffer=Buffer_; Buffer_Size=Buffer_Size_Init=Buffer_Size_BeforeLastCall=Size_*8; //Size is in bits LastByte_Size=0; BufferUnderRun=Buffer_Size?false:true; BookMark=false;} virtual ~BitStream () {}; virtual void Attach(const int8u* Buffer_, size_t Size_) { if (Buffer_==Buffer) return; //Nothing to do Buffer=Buffer_; Buffer_Size=Buffer_Size_Init=Buffer_Size_BeforeLastCall=Size_*8; //Size is in bits LastByte_Size=0; BufferUnderRun=Buffer_Size?false:true; BookMark=false; }; virtual int32u Get (size_t HowMany) { size_t ToReturn; static const int32u Mask[33]={ 0x00000000, 0x00000001, 0x00000003, 0x00000007, 0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f, 0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff, 0x00000fff, 0x00001fff, 0x00003fff, 0x00007fff, 0x0000ffff, 0x0001ffff, 0x0003ffff, 0x0007ffff, 0x000fffff, 0x001fffff, 0x003fffff, 0x007fffff, 0x00ffffff, 0x01ffffff, 0x03ffffff, 0x07ffffff, 0x0fffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff, 0xffffffff, }; if (HowMany==0 || HowMany>32) return 0; if ((size_t)HowMany>Buffer_Size+LastByte_Size) { Buffer_Size=0; LastByte_Size=0; BufferUnderRun=true; return 0; } Buffer_Size_BeforeLastCall=Buffer_Size+LastByte_Size; if (HowMany<=LastByte_Size) { LastByte_Size-=HowMany; ToReturn=LastByte>>LastByte_Size; } else { size_t NewBits=HowMany-LastByte_Size; if (NewBits==32) ToReturn=0; else ToReturn=LastByte<>LastByte_Size)&Mask[NewBits]; } return (int32u)(ToReturn&Mask[HowMany]); }; bool GetB () { return Get(1)?true:false; } int8u Get1 (size_t HowMany) { return (int8u )Get(HowMany); } int16u Get2 (size_t HowMany) { return (int16u)Get(HowMany); } int32u Get4 (size_t HowMany) { return (int32u)Get(HowMany); } int64u Get8 (size_t HowMany) { if (HowMany>64) return 0; //Not supported size_t HowMany1, HowMany2; int64u Value1, Value2; if (HowMany>32) HowMany1=HowMany-32; else HowMany1=0; HowMany2=HowMany-HowMany1; Value1=Get(HowMany1); Value2=Get(HowMany2); if (BufferUnderRun) return 0; return Value1*0x100000000LL+Value2; } virtual void Skip (size_t HowMany) { if (HowMany==0) return; if (HowMany>32) //Algorithm is only for <=32 bits { do { Skip(32); HowMany-=32; } while(HowMany>32); if (HowMany) Skip(HowMany); return; } if ((size_t)HowMany>Buffer_Size+LastByte_Size) { Buffer_Size=0; LastByte_Size=0; BufferUnderRun=true; return; } Buffer_Size_BeforeLastCall=Buffer_Size+LastByte_Size; if (HowMany<=LastByte_Size) LastByte_Size-=HowMany; else { size_t NewBits=HowMany-LastByte_Size; switch ((NewBits-1)/8) { case 3 : NewBits-=8; Buffer++; Buffer_Size-=8; case 2 : NewBits-=8; Buffer++; Buffer_Size-=8; case 1 : NewBits-=8; Buffer++; Buffer_Size-=8; case 0 : LastByte=*Buffer; Buffer++; } LastByte_Size=MIN(8, Buffer_Size)-NewBits; Buffer_Size -=MIN(8, Buffer_Size); } }; void SkipB () { Skip(1); } void Skip1 (size_t HowMany) { Skip(HowMany); } void Skip2 (size_t HowMany) { Skip(HowMany); } void Skip4 (size_t HowMany) { Skip(HowMany); } void Skip8 (size_t HowMany) { if (HowMany>64) return; //Not supported size_t HowMany1, HowMany2; if (HowMany>32) HowMany1=HowMany-32; else HowMany1=0; HowMany2=HowMany-HowMany1; Skip(HowMany1); Skip(HowMany2); } int32u Peek(size_t HowMany) { BookMarkPos(true); int32u ToReturn=Get(HowMany); BookMarkPos(false); return ToReturn; } bool PeekB() { return Peek(1)?true:false; } int8u Peek1(size_t HowMany) { return (int8u )Peek(HowMany); } int16u Peek2(size_t HowMany) { return (int16u)Peek(HowMany); } int32u Peek4(size_t HowMany) { return (int32u)Peek(HowMany); } int32u Peek3(size_t HowMany) { return (int32u)Peek(HowMany); } int64u Peek8(size_t HowMany) { return (int64u)Peek(HowMany); } void BookMarkPos(bool ToSet) { if (ToSet) { BookMark=1; Buffer_BookMark=Buffer; Buffer_Size_BookMark=Buffer_Size; LastByte_BookMark=LastByte; LastByte_Size_BookMark=LastByte_Size; BufferUnderRun_BookMark=BufferUnderRun; } else { BookMark=0; Buffer=Buffer_BookMark; Buffer_Size=Buffer_Size_BookMark; LastByte=LastByte_BookMark; LastByte_Size=LastByte_Size_BookMark; BufferUnderRun=BufferUnderRun_BookMark; } }; virtual int32u Remain () //How many bits remain? { return (int32u)(Buffer_Size+LastByte_Size); }; virtual void Byte_Align() { Get(LastByte_Size); }; virtual size_t Offset_Get() { if (BufferUnderRun) return 0; return (Buffer_Size_Init-Buffer_Size)/8; }; virtual size_t BitOffset_Get() { if (BufferUnderRun) return 0; return LastByte_Size; }; virtual size_t OffsetBeforeLastCall_Get() { if (BufferUnderRun) return 0; return (Buffer_Size_Init-Buffer_Size_BeforeLastCall)/8; }; private : const int8u* Buffer; size_t Buffer_Size; size_t Buffer_Size_Init; size_t Buffer_Size_BeforeLastCall; size_t LastByte; size_t LastByte_Size; bool BufferUnderRun; bool BookMark; const int8u* Buffer_BookMark; size_t Buffer_Size_BookMark; size_t LastByte_BookMark; size_t LastByte_Size_BookMark; bool BufferUnderRun_BookMark; }; } //namespace ZenLib #endif ZenLib/Source/ZenLib/BitStream_Fast.h100777 0 0 26613 12143707535 13062 0/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a zlib-style license that can * be found in the License.txt file in the root of the source tree. */ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // Read a stream bit per bit // Can read up to 32 bits at once // //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //--------------------------------------------------------------------------- #ifndef ZenBitStream_FastH #define ZenBitStream_FastH //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "ZenLib/Conf.h" //--------------------------------------------------------------------------- namespace ZenLib { #ifndef MIN #define MIN(a, b) (((a) < (b)) ? (a) : (b)) #endif class BitStream_Fast { public: BitStream_Fast () {Buffer=NULL; Buffer_Size=Buffer_Size_Init=0; BufferUnderRun=false;} BitStream_Fast (const int8u* Buffer_, size_t Size_) {Buffer=Buffer_; Buffer_Size=Buffer_Size_Init=Size_*8; //Size is in bits BufferUnderRun=false;} ~BitStream_Fast () {}; void Attach(const int8u* Buffer_, size_t Size_) { Buffer=Buffer_; Buffer_Size=Buffer_Size_Init=Size_*8; //Size is in bits BufferUnderRun=false; }; bool GetB () { if (Buffer_Size%8) { Buffer_Size--; return ((LastByte>>(Buffer_Size%8))&0x1)?true:false; } if (!Buffer_Size) { Buffer_Size=0; BufferUnderRun=true; return false; } LastByte=*Buffer; Buffer++; Buffer_Size--; return (LastByte&0x80)?true:false; } int8u Get1 (int8u HowMany) { int8u ToReturn; static const int8u Mask[9]= { 0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff, }; if (HowMany<=(Buffer_Size%8)) { Buffer_Size-=HowMany; return (LastByte>>(Buffer_Size%8))&Mask[HowMany]; } if (HowMany>Buffer_Size) { Buffer_Size=0; BufferUnderRun=true; return 0; } int8u NewBits=HowMany-(Buffer_Size%8); if (NewBits==8) ToReturn=0; else ToReturn=LastByte<>(Buffer_Size%8))&Mask[NewBits]; return ToReturn&Mask[HowMany]; } int16u Get2 (int8u HowMany) { int16u ToReturn; static const int16u Mask[17]= { 0x0000, 0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff, 0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff, }; if (HowMany<=(Buffer_Size%8)) { Buffer_Size-=HowMany; return (LastByte>>(Buffer_Size%8))&Mask[HowMany]; } if (HowMany>Buffer_Size) { Buffer_Size=0; BufferUnderRun=true; return 0; } int8u NewBits=HowMany-(Buffer_Size%8); if (NewBits==16) ToReturn=0; else ToReturn=LastByte<>3) { NewBits-=8; ToReturn|=*Buffer<>(Buffer_Size%8))&Mask[NewBits]; return ToReturn&Mask[HowMany]; } int32u Get4 (int8u HowMany) { int32u ToReturn; static const int32u Mask[33]= { 0x00000000, 0x00000001, 0x00000003, 0x00000007, 0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f, 0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff, 0x00000fff, 0x00001fff, 0x00003fff, 0x00007fff, 0x0000ffff, 0x0001ffff, 0x0003ffff, 0x0007ffff, 0x000fffff, 0x001fffff, 0x003fffff, 0x007fffff, 0x00ffffff, 0x01ffffff, 0x03ffffff, 0x07ffffff, 0x0fffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff, 0xffffffff, }; if (HowMany<=(Buffer_Size%8)) { Buffer_Size-=HowMany; return (LastByte>>(Buffer_Size%8))&Mask[HowMany]; } if (HowMany>Buffer_Size) { Buffer_Size=0; BufferUnderRun=true; return 0; } int8u NewBits=HowMany-(Buffer_Size%8); if (NewBits==32) ToReturn=0; else ToReturn=LastByte<>3) { case 3 : NewBits-=8; ToReturn|=*Buffer<>(Buffer_Size%8))&Mask[NewBits]; return ToReturn&Mask[HowMany]; } int64u Get8 (int8u HowMany) { if (HowMany>64) return 0; //Not supported int8u HowMany1, HowMany2; int64u Value1, Value2; if (HowMany>32) HowMany1=HowMany-32; else HowMany1=0; HowMany2=HowMany-HowMany1; Value1=Get4(HowMany1); Value2=Get4(HowMany2); if (BufferUnderRun) return 0; return Value1*0x100000000LL+Value2; } void Skip (size_t HowMany) { if (HowMany<=(Buffer_Size%8)) { Buffer_Size-=HowMany; return; } if (HowMany>Buffer_Size) { Buffer_Size=0; BufferUnderRun=true; return; } Buffer+=(HowMany-(Buffer_Size%8)-1)>>3; LastByte=*Buffer; Buffer++; Buffer_Size-=HowMany; }; bool PeekB() { if (Buffer_Size%8) return ((LastByte>>((Buffer_Size-1)%8))&0x1)?true:false; if (!Buffer_Size) { Buffer_Size=0; BufferUnderRun=true; return false; } return ((*Buffer)&0x80)?true:false; } int8u Peek1(int8u HowMany) { int8u ToReturn; static const int8u Mask[9]= { 0x00, 0x01, 0x03, 0x07, 0x0f, 0x1f, 0x3f, 0x7f, 0xff, }; if (HowMany<=(Buffer_Size%8)) return (LastByte>>((Buffer_Size-HowMany)%8))&Mask[HowMany]; if (HowMany>Buffer_Size) { Buffer_Size=0; BufferUnderRun=true; return 0; } int8u NewBits=HowMany-(Buffer_Size%8); if (NewBits==8) ToReturn=0; else ToReturn=LastByte<>((Buffer_Size-HowMany)%8))&Mask[NewBits]; return ToReturn&Mask[HowMany]; } int16u Peek2(int8u HowMany) { int16u ToReturn; static const int16u Mask[17]= { 0x0000, 0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff, 0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff, }; if (HowMany<=(Buffer_Size%8)) return (LastByte>>((Buffer_Size-HowMany)%8))&Mask[HowMany]; if (HowMany>Buffer_Size) { Buffer_Size=0; BufferUnderRun=true; return 0; } const int8u* Buffer_Save=Buffer; int8u NewBits=HowMany-(Buffer_Size%8); if (NewBits==16) ToReturn=0; else ToReturn=LastByte<>3) { NewBits-=8; ToReturn|=*Buffer<>((Buffer_Size-HowMany)%8))&Mask[NewBits]; Buffer=Buffer_Save; return ToReturn&Mask[HowMany]; } int32u Peek4(int8u HowMany) { int32u ToReturn; static const int32u Mask[33]= { 0x00000000, 0x00000001, 0x00000003, 0x00000007, 0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f, 0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff, 0x00000fff, 0x00001fff, 0x00003fff, 0x00007fff, 0x0000ffff, 0x0001ffff, 0x0003ffff, 0x0007ffff, 0x000fffff, 0x001fffff, 0x003fffff, 0x007fffff, 0x00ffffff, 0x01ffffff, 0x03ffffff, 0x07ffffff, 0x0fffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff, 0xffffffff, }; if (HowMany<=(Buffer_Size%8)) return (LastByte>>((Buffer_Size-HowMany)%8))&Mask[HowMany]; if (HowMany>Buffer_Size) { Buffer_Size=0; BufferUnderRun=true; return 0; } const int8u* Buffer_Save=Buffer; int8u NewBits=HowMany-(Buffer_Size%8); if (NewBits==32) ToReturn=0; else ToReturn=LastByte<>3) { case 3 : NewBits-=8; ToReturn|=*Buffer<>((Buffer_Size-HowMany)%8))&Mask[NewBits]; Buffer=Buffer_Save; return ToReturn&Mask[HowMany]; } int64u Peek8(int8u HowMany) { return (int64u)Peek4(HowMany); //Not yet implemented } inline size_t Remain () //How many bits remain? { return Buffer_Size; }; inline void Byte_Align() { Skip (Buffer_Size%8); }; inline size_t Offset_Get() { return (Buffer_Size_Init-Buffer_Size)/8; }; inline size_t BitOffset_Get() { return Buffer_Size%8; }; inline size_t OffsetBeforeLastCall_Get() //No more valid { return Buffer_Size%8; }; private : const int8u* Buffer; size_t Buffer_Size; size_t Buffer_Size_Init; int8u LastByte; public : bool BufferUnderRun; }; } //namespace ZenLib #endif ZenLib/Source/ZenLib/BitStream_LE.h100777 0 0 6556 12143707535 12451 0/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a zlib-style license that can * be found in the License.txt file in the root of the source tree. */ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // Read a stream bit per bit, Little Endian version (rarely used!!!) // Can read up to 32 bits at once // //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //--------------------------------------------------------------------------- #ifndef ZenBitStream_LEH #define ZenBitStream_LEH //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "ZenLib/BitStream.h" //--------------------------------------------------------------------------- namespace ZenLib { class BitStream_LE : public BitStream { public: BitStream_LE () :BitStream() {}; BitStream_LE (const int8u* Buffer_, size_t Size_) :BitStream(Buffer_, Size_) {}; void Attach(const int8u* Buffer_, size_t Size_) { endbyte=0; endbit=0; buffer=Buffer_; ptr=Buffer_; storage=(long)Size_; }; int32u Get (size_t HowMany) { ptr_BeforeLastCall=ptr; long ret; static const int32u Mask[33]={ 0x00000000, 0x00000001, 0x00000003, 0x00000007, 0x0000000f, 0x0000001f, 0x0000003f, 0x0000007f, 0x000000ff, 0x000001ff, 0x000003ff, 0x000007ff, 0x00000fff, 0x00001fff, 0x00003fff, 0x00007fff, 0x0000ffff, 0x0001ffff, 0x0003ffff, 0x0007ffff, 0x000fffff, 0x001fffff, 0x003fffff, 0x007fffff, 0x00ffffff, 0x01ffffff, 0x03ffffff, 0x07ffffff, 0x0fffffff, 0x1fffffff, 0x3fffffff, 0x7fffffff, 0xffffffff, }; unsigned long m=Mask[HowMany]; HowMany+=endbit; if(endbyte+4>=storage){ ret=-1L; if(endbyte*8+(long)HowMany>storage*8){ Attach(NULL, 0); goto overflow; } } ret=ptr[0]>>endbit; if(HowMany>8){ ret|=ptr[1]<<(8-endbit); if(HowMany>16){ ret|=ptr[2]<<(16-endbit); if(HowMany>24){ ret|=ptr[3]<<(24-endbit); if(HowMany>32 && endbit){ ret|=ptr[4]<<(32-endbit); } } } } ret&=m; ptr+=HowMany/8; endbyte+=(long)HowMany/8; endbit=(long)HowMany&7; overflow: return(ret); }; void Skip(size_t bits) { Get(bits); } int32u Remain () //How many bits remain? { return storage*8-(endbyte*8+endbit); }; void Byte_Align() { }; size_t Offset_Get() { return ptr-buffer; }; size_t BitOffset_Get() { return endbit; }; size_t OffsetBeforeLastCall_Get() { return ptr_BeforeLastCall-buffer; }; private : long endbyte; int endbit; const unsigned char *buffer; const unsigned char *ptr; const unsigned char *ptr_BeforeLastCall; long storage; }; } //namespace ZenLib #endif ZenLib/Source/ZenLib/Conf.cpp100777 0 0 2531 12143707535 11404 0/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a zlib-style license that can * be found in the License.txt file in the root of the source tree. */ //--------------------------------------------------------------------------- #include "ZenLib/PreComp.h" #ifdef __BORLANDC__ #pragma hdrstop #endif //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "ZenLib/Conf_Internal.h" //--------------------------------------------------------------------------- namespace ZenLib { //*************************************************************************** // Platform differences //*************************************************************************** //End of line #ifdef WINDOWS const Char* EOL=__T("\r\n"); const Char PathSeparator=__T('\\'); #endif #ifdef UNIX const Char* EOL=__T("\n"); const Char PathSeparator=__T('/'); #endif #if defined (MACOS) || defined (MACOSX) const Char* EOL=__T("\r"); const Char PathSeparator=__T('/'); #endif //*************************************************************************** // //*************************************************************************** } //namespace ZenLib/Source/ZenLib/Conf.h100777 0 0 25553 12143707535 11102 0/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a zlib-style license that can * be found in the License.txt file in the root of the source tree. */ //--------------------------------------------------------------------------- #ifndef ZenConfH #define ZenConfH //--------------------------------------------------------------------------- //*************************************************************************** // Platforms //*************************************************************************** //--------------------------------------------------------------------------- //Win32 #if defined(__NT__) || defined(_WIN32) || defined(WIN32) #ifndef WIN32 #define WIN32 #endif #ifndef _WIN32 #define _WIN32 #endif #ifndef __WIN32__ #define __WIN32__ 1 #endif #endif //--------------------------------------------------------------------------- //Win64 #if defined(_WIN64) || defined(WIN64) #ifndef WIN64 #define WIN64 #endif #ifndef _WIN64 #define _WIN64 #endif #ifndef __WIN64__ #define __WIN64__ 1 #endif #endif //--------------------------------------------------------------------------- //Windows #if defined(WIN32) || defined(WIN64) #ifndef WINDOWS #define WINDOWS #endif #ifndef _WINDOWS #define _WINDOWS #endif #ifndef __WINDOWS__ #define __WINDOWS__ 1 #endif #endif #if !defined(ZENLIB_NO_WIN9X_SUPPORT) && (defined(_M_X64) || defined(_M_IA64)) #define ZENLIB_NO_WIN9X_SUPPORT #endif //--------------------------------------------------------------------------- //Unix (Linux, HP, Sun, BeOS...) #if defined(UNIX) || defined(_UNIX) || defined(__UNIX__) \ || defined(__unix) || defined(__unix__) \ || defined(____SVR4____) || defined(__LINUX__) || defined(__sgi) \ || defined(__hpux) || defined(sun) || defined(__SUN__) || defined(_AIX) \ || defined(__EMX__) || defined(__VMS) || defined(__BEOS__) #ifndef UNIX #define UNIX #endif #ifndef _UNIX #define _UNIX #endif #ifndef __UNIX__ #define __UNIX__ 1 #endif #endif //--------------------------------------------------------------------------- //MacOS Classic #if defined(macintosh) #ifndef MACOS #define MACOS #endif #ifndef _MACOS #define _MACOS #endif #ifndef __MACOS__ #define __MACOS__ 1 #endif #endif //--------------------------------------------------------------------------- //MacOS X #if defined(__APPLE__) && defined(__MACH__) #ifndef MACOSX #define MACOSX #endif #ifndef _MACOSX #define _MACOSX #endif #ifndef __MACOSX__ #define __MACOSX__ 1 #endif #endif //Test of targets #if defined(WINDOWS) && defined(UNIX) && defined(MACOS) && defined(MACOSX) #pragma message Multiple platforms??? #endif #if !defined(WIN32) && !defined(UNIX) && !defined(MACOS) && !defined(MACOSX) #pragma message No known platforms, assume default #endif //*************************************************************************** // Internationnal //*************************************************************************** //--------------------------------------------------------------------------- //Unicode #if defined(_UNICODE) || defined(UNICODE) || defined(__UNICODE__) #ifndef _UNICODE #define _UNICODE #endif #ifndef UNICODE #define UNICODE #endif #ifndef __UNICODE__ #define __UNICODE__ 1 #endif #endif //--------------------------------------------------------------------------- //wchar_t stuff #if defined(MACOS) || defined(MACOSX) #include #endif //*************************************************************************** // Compiler bugs/unuseful warning //*************************************************************************** //MSVC6 : for(int t=0; t<10; ++t) { do something }; for(int t=0; t<10; ++t) { do something } #if defined(_MSC_VER) && _MSC_VER <= 1200 #define for if(true)for #pragma warning(disable:4786) // MSVC6 doesn't like typenames longer than 255 chars (which generates an enormous amount of warnings). #endif //MSVC2005 : "deprecated" warning (replacement functions are not in MinGW32 or Borland!) #if defined(_MSC_VER) && _MSC_VER >= 1400 #pragma warning(disable : 4996) #endif //*************************************************************************** // (Without Namespace) //*************************************************************************** //--------------------------------------------------------------------------- #include //--------------------------------------------------------------------------- #if defined(ZENLIB_DEBUG) && (defined(DEBUG) || defined(_DEBUG)) #include "ZenLib/MemoryDebug.h" #endif // defined(ZENLIB_DEBUG) && (defined(DEBUG) || defined(_DEBUG)) //*************************************************************************** // Compiler helpers //*************************************************************************** //--------------------------------------------------------------------------- //Macro to cut down on compiler warnings #ifndef UNUSED #define UNUSED(Identifier) #endif //--------------------------------------------------------------------------- //If we need size_t specific integer conversion #if !defined(SIZE_T_IS_LONG) && (defined(__LP64__) || defined(MACOSX)) #define SIZE_T_IS_LONG #endif //--------------------------------------------------------------------------- //(-1) is known to be the MAX of an unsigned int but GCC complains about it #include #include //size_t namespace ZenLib { const std::size_t Error=((std::size_t)(-1)); const std::size_t All=((std::size_t)(-1)); const std::size_t Unlimited=((std::size_t)(-1)); } //*************************************************************************** // (With namespace) //*************************************************************************** namespace ZenLib { //*************************************************************************** // International //*************************************************************************** //--------------------------------------------------------------------------- //Char types #if defined(__UNICODE__) #if defined (_MSC_VER) && !defined (_NATIVE_WCHAR_T_DEFINED) #pragma message Native wchar_t is not defined, not tested, you should put /Zc:wchar_t in compiler options #endif typedef wchar_t Char; #undef __T #define __T(__x) L ## __x #else // defined(__UNICODE__) typedef char Char; #undef __T #define __T(__x) __x #endif // defined(__UNICODE__) #ifdef wchar_t typedef wchar_t wchar; #endif // wchar_t //*************************************************************************** // Platform differences //*************************************************************************** //End of line extern const Char* EOL; extern const Char PathSeparator; //*************************************************************************** // Types //*************************************************************************** //--------------------------------------------------------------------------- //int typedef signed int ints; typedef unsigned int intu; //--------------------------------------------------------------------------- //8-bit int #if UCHAR_MAX==0xff #undef MAXTYPE_INT #define MAXTYPE_INT 8 typedef signed char int8s; typedef unsigned char int8u; #else #pragma message This machine has no 8-bit integertype? #endif //--------------------------------------------------------------------------- //16-bit int #if UINT_MAX == 0xffff #undef MAXTYPE_INT #define MAXTYPE_INT 16 typedef signed int int16s; typedef unsigned int int16u; #elif USHRT_MAX == 0xffff #undef MAXTYPE_INT #define MAXTYPE_INT 16 typedef signed short int16s; typedef unsigned short int16u; #else #pragma message This machine has no 16-bit integertype? #endif //--------------------------------------------------------------------------- //32-bit int #if UINT_MAX == 0xfffffffful #undef MAXTYPE_INT #define MAXTYPE_INT 32 typedef signed int int32s; typedef unsigned int int32u; #elif ULONG_MAX == 0xfffffffful #undef MAXTYPE_INT #define MAXTYPE_INT 32 typedef signed long int32s; typedef unsigned long int32u; #elif USHRT_MAX == 0xfffffffful #undef MAXTYPE_INT #define MAXTYPE_INT 32 typedef signed short int32s; typedef unsigned short int32u; #else #pragma message This machine has no 32-bit integer type? #endif //--------------------------------------------------------------------------- //64-bit int #if defined(__MINGW32__) || defined(__CYGWIN32__) || defined(__UNIX__) || defined(__MACOSX__) #undef MAXTYPE_INT #define MAXTYPE_INT 64 typedef signed long long int64s; typedef unsigned long long int64u; #elif defined(__WIN32__) #undef MAXTYPE_INT #define MAXTYPE_INT 64 typedef signed __int64 int64s; typedef unsigned __int64 int64u; #else #pragma message This machine has no 64-bit integer type? #endif //--------------------------------------------------------------------------- //32-bit float #if defined(WINDOWS) || defined(UNIX) || defined(MACOSX) #undef MAXTYPE_FLOAT #define MAXTYPE_FLOAT 32 typedef float float32; #else #pragma message This machine has no 32-bit float type? #endif //--------------------------------------------------------------------------- //64-bit float #if defined(WINDOWS) || defined(UNIX) || defined(MACOSX) #undef MAXTYPE_FLOAT #define MAXTYPE_FLOAT 64 typedef double float64; #else #pragma message This machine has no 64-bit float type? #endif //--------------------------------------------------------------------------- //80-bit float #if defined(WINDOWS) || defined(UNIX) || defined(MACOSX) #undef MAXTYPE_FLOAT #define MAXTYPE_FLOAT 80 typedef long double float80; #else #pragma message This machine has no 80-bit float type? #endif //*************************************************************************** // Nested functions //*************************************************************************** //Unices #if defined (UNIX) #define snwprintf swprintf #endif //Windows - MSVC #if defined (_MSC_VER) #define snprintf _snprintf #define snwprintf _snwprintf #endif } //namespace #endif ZenLib/Source/ZenLib/Conf_Internal.h100777 0 0 1452 12143707535 12706 0/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a zlib-style license that can * be found in the License.txt file in the root of the source tree. */ //--------------------------------------------------------------------------- #ifndef ZenConf_InternalH #define ZenConf_InternalH //--------------------------------------------------------------------------- #include "ZenLib/Conf.h" //*************************************************************************** // Choice of method //*************************************************************************** #ifndef ZENLIB_USEWX #ifndef WINDOWS #define ZENLIB_STANDARD //We select the C/C++ standard as much as possible #endif #endif //ZENLIB_USEWX #endif ZenLib/Source/ZenLib/CriticalSection.cpp100777 0 0 15442 12143707535 13623 0/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a zlib-style license that can * be found in the License.txt file in the root of the source tree. */ //--------------------------------------------------------------------------- #include "ZenLib/PreComp.h" #ifdef __BORLANDC__ #pragma hdrstop #endif //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "ZenLib/Conf_Internal.h" //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "ZenLib/CriticalSection.h" //--------------------------------------------------------------------------- //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // ZENLIB_USEWX //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #ifdef ZENLIB_USEWX //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //--------------------------------------------------------------------------- #include //--------------------------------------------------------------------------- namespace ZenLib { //*************************************************************************** // Constructor/Destructor //*************************************************************************** //--------------------------------------------------------------------------- CriticalSection::CriticalSection() { CritSect=new wxCriticalSection(); } //--------------------------------------------------------------------------- CriticalSection::~CriticalSection() { delete ((wxCriticalSection*)CritSect); //CritSect=NULL; } //*************************************************************************** // Enter/Leave //*************************************************************************** //--------------------------------------------------------------------------- void CriticalSection::Enter() { ((wxCriticalSection*)CritSect)->Enter(); } //--------------------------------------------------------------------------- void CriticalSection::Leave() { ((wxCriticalSection*)CritSect)->Leave(); } } //Namespace //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // WINDOWS //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #else //ZENLIB_USEWX #ifdef WINDOWS //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //--------------------------------------------------------------------------- #undef __TEXT #include //--------------------------------------------------------------------------- namespace ZenLib { //*************************************************************************** // Constructor/Destructor //*************************************************************************** //--------------------------------------------------------------------------- CriticalSection::CriticalSection() { CritSect=new CRITICAL_SECTION; InitializeCriticalSection((CRITICAL_SECTION*)CritSect); } //--------------------------------------------------------------------------- CriticalSection::~CriticalSection() { DeleteCriticalSection((CRITICAL_SECTION*)CritSect); delete ((CRITICAL_SECTION*)CritSect); //CritSect=NULL; } //*************************************************************************** // Enter/Leave //*************************************************************************** //--------------------------------------------------------------------------- void CriticalSection::Enter() { EnterCriticalSection((CRITICAL_SECTION*)CritSect); } //--------------------------------------------------------------------------- void CriticalSection::Leave() { LeaveCriticalSection((CRITICAL_SECTION*)CritSect); } } //Namespace //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // UNIX //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #else //WINDOWS //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //--------------------------------------------------------------------------- #include //--------------------------------------------------------------------------- namespace ZenLib { //*************************************************************************** // Constructor/Destructor //*************************************************************************** //--------------------------------------------------------------------------- CriticalSection::CriticalSection() { CritSect=new pthread_mutex_t; pthread_mutex_init((pthread_mutex_t*)CritSect, NULL); } //--------------------------------------------------------------------------- CriticalSection::~CriticalSection() { pthread_mutex_destroy((pthread_mutex_t*)CritSect); delete (pthread_mutex_t*)CritSect; } //*************************************************************************** // Enter/Leave //*************************************************************************** //--------------------------------------------------------------------------- void CriticalSection::Enter() { pthread_mutex_lock((pthread_mutex_t*)CritSect); } //--------------------------------------------------------------------------- void CriticalSection::Leave() { pthread_mutex_unlock((pthread_mutex_t*)CritSect); } } //Namespace //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #endif //WINDOWS #endif //ZENLIB_USEWX //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ZenLib/Source/ZenLib/CriticalSection.h100777 0 0 3442 12143707535 13245 0/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a zlib-style license that can * be found in the License.txt file in the root of the source tree. */ //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ // // CriticalSection functions // //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //--------------------------------------------------------------------------- #ifndef ZenLib_CriticalSectionH #define ZenLib_CriticalSectionH //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #ifdef CS #undef CS //Solaris defines this somewhere #endif //--------------------------------------------------------------------------- namespace ZenLib { //*************************************************************************** /// @brief CriticalSection manipulation //*************************************************************************** class CriticalSection { public : //Constructor/Destructor CriticalSection (); ~CriticalSection (); //Enter/Leave void Enter(); void Leave(); private : void* CritSect; }; //*************************************************************************** /// @brief CriticalSectionLocker helper //*************************************************************************** class CriticalSectionLocker { public: CriticalSectionLocker (ZenLib::CriticalSection &CS) { CritSec=&CS; CritSec->Enter(); } ~CriticalSectionLocker () { CritSec->Leave(); } private: ZenLib::CriticalSection *CritSec; }; } //NameSpace #endif ZenLib/Source/ZenLib/Dir.cpp100777 0 0 30030 12143707535 11250 0/* Copyright (c) MediaArea.net SARL. All Rights Reserved. * * Use of this source code is governed by a zlib-style license that can * be found in the License.txt file in the root of the source tree. */ //--------------------------------------------------------------------------- #include "ZenLib/PreComp.h" #ifdef __BORLANDC__ #pragma hdrstop #endif //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "ZenLib/Conf_Internal.h" //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #ifdef ZENLIB_USEWX #include #include #include #include #else //ZENLIB_USEWX #ifdef ZENLIB_STANDARD #undef WINDOWS #endif #ifdef WINDOWS #undef __TEXT #include #else #include #include #undef __TEXT //dirent include windows.h on Windows/Borland #include #include #endif #endif //ZENLIB_USEWX #include "ZenLib/Dir.h" #include "ZenLib/File.h" #include "ZenLib/FileName.h" #include "ZenLib/OS_Utils.h" //--------------------------------------------------------------------------- namespace ZenLib { //*************************************************************************** // Constructor/Destructor //*************************************************************************** //*************************************************************************** // Open/Close //*************************************************************************** ZtringList Dir::GetAllFileNames(const Ztring &Dir_Name_, dirlist_t Options) { ZtringList ToReturn; Ztring Dir_Name=Dir_Name_; #ifdef ZENLIB_USEWX int Flags=wxDIR_FILES | wxDIR_DIRS; //Search for files wxArrayString Liste; wxFileName FullPath; FullPath=Dir_Name.c_str(); //-File if (FullPath.FileExists()) { FullPath.Normalize(); Liste.Add(FullPath.GetFullPath()); } //-Directory else if (FullPath.DirExists()) { FullPath.Normalize(); wxDir::GetAllFiles(FullPath.GetFullPath(), &Liste, Ztring(), Flags); } //-WildCards else { wxString FileName=FullPath.GetFullName(); FullPath.SetFullName(Ztring()); //Supress filename FullPath.Normalize(); if (FullPath.DirExists()) wxDir::GetAllFiles(FullPath.GetPath(), &Liste, FileName, Flags); } //Compatible array ToReturn.reserve(Liste.GetCount()); for (size_t Pos=0; Posd_name); if (File_Name!=__T(".") && File_Name!=__T("..")) //Avoid . an .. { Ztring File_Name_Complete=Dir_Name+File_Name; if (Exists(File_Name_Complete)) { if (Options&Parse_SubDirs) ToReturn+=GetAllFileNames(File_Name_Complete, Options); //A SubDir } else if ((Options&Include_Hidden) || (!File_Name.empty() && File_Name[0]!=__T('.'))) ToReturn.push_back(File_Name_Complete); //A file } } //Close it closedir(Dir); } else { glob_t globbuf; if (glob(Dir_Name.To_Local().c_str(), GLOB_NOSORT, NULL, &globbuf)==0) { for (int Pos=0; Pos