diff --git a/boot/armllb/boot.s b/boot/armllb/boot.s
index 899013f4..93a3fb74 100644
--- a/boot/armllb/boot.s
+++ b/boot/armllb/boot.s
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS Boot Loader
+ * PROJECT: Boot Loader
* LICENSE: BSD - See COPYING.ARM in the top level directory
* FILE: boot/armllb/boot.s
* PURPOSE: Implements the entry point for ARM machines
diff --git a/boot/bootdata/bootcd.ini b/boot/bootdata/bootcd.ini
index 588dd8d3..4b89bf33 100644
--- a/boot/bootdata/bootcd.ini
+++ b/boot/bootdata/bootcd.ini
@@ -3,7 +3,7 @@ DefaultOS=Setup
TimeOut=0
[Display]
-TitleText=ReactOS Setup
+TitleText=Setup
StatusBarColor=Cyan
StatusBarTextColor=Black
BackdropTextColor=White
diff --git a/boot/bootdata/hivebcd.inf b/boot/bootdata/hivebcd.inf
index 4ca0783d..0a28aa30 100644
--- a/boot/bootdata/hivebcd.inf
+++ b/boot/bootdata/hivebcd.inf
@@ -7,10 +7,10 @@ BCD,"BCD00000000\Description\Control","TreatAtSystem",0x00010001,1
BCD,"BCD00000000\Description\Control","KeyName",,"BCD00000000"
;
-; ReactOS Boot Manager
+; Boot Manager
;
BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Description","Type",0x00010001,0x10100002 ; identifier={bootmgr}
-BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Elements\12000004","Element",,"ReactOS Boot Manager" ; description
+BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Elements\12000004","Element",,"Boot Manager" ; description
BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Elements\12000005","Element",,"en-US" ; locale="en-US"
BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Elements\14000006","Element",0x10000,"{7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}" ; inherit={globalsettings}
BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Elements\23000003","Element",,"{7619dcc9-fafe-11d9-b411-000476eba25f}" ; default={winload}
@@ -19,7 +19,7 @@ BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Elements\2400001
BCD,"BCD00000000\Objects\{9dea862c-5cdd-4e70-acc1-f32b344d4795}\Elements\25000004","Element",0x1,0x1e ; timeout=30
;
-; ReactOS Boot Loader
+; Boot Loader
;
BCD,"BCD00000000\Objects\{7619dcc9-fafe-11d9-b411-000476eba25f}\Description","Type",0x00010001,0x10200003 ; identifier={winload}
BCD,"BCD00000000\Objects\{7619dcc9-fafe-11d9-b411-000476eba25f}\Elements\11000001","Element",0x1,\ ; device=boot
diff --git a/boot/bootdata/hivecls.inf b/boot/bootdata/hivecls.inf
index e8bbdf0e..3ea5aff0 100644
--- a/boot/bootdata/hivecls.inf
+++ b/boot/bootdata/hivecls.inf
@@ -55,18 +55,18 @@ HKCR,"anifile","",0x00000000,"Animated Cursor"
HKCR,"anifile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\main.cpl,-1039"
HKCR,"anifile\DefaultIcon","",0x00000000,"%1"
-; ReactOS Batch Files
+; Batch Files
HKCR,".bat","",0x00000000,"batfile"
-HKCR,"batfile","",0x00000000,"ReactOS Batch File"
+HKCR,"batfile","",0x00000000,"Batch File"
HKCR,"batfile","EditFlags",0x00010001,0x00000010
HKCR,"batfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\shell32.dll,-201"
HKCR,"batfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-153"
HKCR,"batfile\shell\edit\command","",0x00020000,"%SystemRoot%\system32\notepad.exe %1"
HKCR,"batfile\shell\open\command","",0x00000000,"""%1"" %*"
-; ReactOS Command Script Files
+; Command Script Files
HKCR,".cmd","",0x00000000,"cmdfile"
-HKCR,"cmdfile","",0x00000000,"ReactOS Command Script"
+HKCR,"cmdfile","",0x00000000,"Command Script"
HKCR,"cmdfile","EditFlags",0x00010001,0x00000010
HKCR,"cmdfile","FriendlyTypeName",0x00020000,"@%SystemRoot%\system32\shell32.dll,-202"
HKCR,"cmdfile\DefaultIcon","",0x00020000,"%SystemRoot%\system32\shell32.dll,-153"
@@ -640,7 +640,7 @@ XMLFILE="XML Document"
XSLFILE="XSL Stylesheet"
;; In msi.dll
-MSIPACK="ReactOS Installer Package"
+MSIPACK="Installer Package"
;; In themeui.dll
MSSTYLESFILE="Visual Style File"
@@ -708,7 +708,7 @@ CPLFILE_OPENWITH="Ouvrir avec le Panneau de Contrôle"
CHMFILE="Fichier d'aide HTML compilé"
XMLFILE="Document XML"
XSLFILE="Feuille de style XSL"
-MSIPACK="Package ReactOS Installer"
+MSIPACK="Package Installer"
MSSTYLESFILE="Fichier de styles visuels"
THEMEFILE="Fichier de thèmes"
WAVFILE="Son Wave"
diff --git a/boot/bootdata/hivedef.inf b/boot/bootdata/hivedef.inf
index 4837441c..6cf6cd80 100644
--- a/boot/bootdata/hivedef.inf
+++ b/boot/bootdata/hivedef.inf
@@ -155,7 +155,7 @@ HKCU,"Control Panel\International",,0x00000012
HKCU,"Control Panel\International\Geo",,0x00000012
; Cursors Schemes
-HKCU,"Control Panel\Cursors",,,"ReactOS Default"
+HKCU,"Control Panel\Cursors",,,"Default"
HKCU,"Control Panel\Cursors","Scheme Source",0x00010001,0x00000002
; PowerCfg
@@ -217,7 +217,7 @@ HKCU,"Control Panel\Appearance","Current",0x00020000,"%DESKTOP_SCHEME_0%"
HKCU,"Control Panel\Appearance","NewCurrent",0x00020000,"%DESKTOP_SCHEME_0%"
HKCU,"Control Panel\Appearance\New Schemes","SelectedSize",0x00020000,"0"
HKCU,"Control Panel\Appearance\New Schemes","SelectedStyle",0x00020000,"0"
-; ReactOS Standard
+; Standard
HKCU,"Control Panel\Appearance\New Schemes\0","DisplayName",0x00020000,"@themeui.dll,-883"
HKCU,"Control Panel\Appearance\New Schemes\0","LegacyName",0x00020000,"%DESKTOP_SCHEME_0%"
HKCU,"Control Panel\Appearance\New Schemes\0\Sizes\0","DisplayName",0x00020000,"@themeui.dll,-2019"
@@ -1211,7 +1211,7 @@ HKCU,"Control Panel\Appearance\New Schemes\13\Sizes\0","Size #5",0x000b0001,0c,0
HKCU,"Control Panel\Appearance\New Schemes\13\Sizes\0","Size #6",0x000b0001,0c,00,00,00,00,00,00,00
HKCU,"Control Panel\Appearance\New Schemes\13\Sizes\0","Size #7",0x000b0001,12,00,00,00,00,00,00,00
HKCU,"Control Panel\Appearance\New Schemes\13\Sizes\0","Size #8",0x000b0001,12,00,00,00,00,00,00,00
-; ReactOS Classic
+; Classic
HKCU,"Control Panel\Appearance\New Schemes\14","DisplayName",0x00020000,"@themeui.dll,-880"
HKCU,"Control Panel\Appearance\New Schemes\14","LegacyName",0x00020000,"%DESKTOP_SCHEME_14%"
HKCU,"Control Panel\Appearance\New Schemes\14\Sizes\0","DisplayName",0x00020000,"@themeui.dll,-2019"
@@ -1923,7 +1923,7 @@ HKCU,"SOFTWARE",,0x00000012
HKCU,"SOFTWARE\Policies",,0x00000012
HKCU,"SOFTWARE\Microsoft",,0x00000012
-; ReactOS Calculator
+; Calculator
HKCU,"SOFTWARE\Microsoft\Calc",,0x00000012
HKCU,"SOFTWARE\Microsoft\Calc","layout",0x00010001,0x00000001
HKCU,"SOFTWARE\Microsoft\Calc","UseSep",0x00010001,0x00000001
@@ -2128,7 +2128,7 @@ HKCU,"AppEvents\Schemes\Apps\Explorer\Navigating",,0x00000012
HKCU,"AppEvents\Schemes\Apps\Explorer\Navigating\.Current","",0x00020000,""
HKCU,"AppEvents\Schemes\Apps\Explorer\Navigating\.Default","",0x00020000,""
HKCU,"AppEvents\Schemes\Names",,0x00000012
-HKCU,"AppEvents\Schemes\Names\.Default","",0x00000002,"ReactOS Default"
+HKCU,"AppEvents\Schemes\Names\.Default","",0x00000002,"Default"
HKCU,"AppEvents\Schemes\Names\.None","",0x00000002,"No sounds"
HKCU,"AppEvents\EventLabels",,0x00000012
@@ -2184,9 +2184,9 @@ HKCU,"AppEvents\EventLabels\SystemQuestion","",0x00000000,"Question"
HKCU,"AppEvents\EventLabels\SystemQuestion","DispFileName",0x00000000,"@mmsys.cpl,-5849"
HKCU,"AppEvents\EventLabels\SystemStart","",0x00000000,"Start ReactOS"
HKCU,"AppEvents\EventLabels\SystemStart","DispFileName",0x00000000,"@mmsys.cpl,-5850"
-HKCU,"AppEvents\EventLabels\WindowsLogoff","",0x00000000,"ReactOS Logoff"
+HKCU,"AppEvents\EventLabels\WindowsLogoff","",0x00000000,"Logoff"
HKCU,"AppEvents\EventLabels\WindowsLogoff","DispFileName",0x00000000,"@mmsys.cpl,-5852"
-HKCU,"AppEvents\EventLabels\WindowsLogon","",0x00000000,"ReactOS Logon"
+HKCU,"AppEvents\EventLabels\WindowsLogon","",0x00000000,"Logon"
HKCU,"AppEvents\EventLabels\WindowsLogon","DispFileName",0x00000000,"@mmsys.cpl,-5853"
;-------------------------------- STRINGS -------------------------------
diff --git a/boot/bootdata/hivesft.inf b/boot/bootdata/hivesft.inf
index 27112694..70ea9ca9 100644
--- a/boot/bootdata/hivesft.inf
+++ b/boot/bootdata/hivesft.inf
@@ -117,7 +117,7 @@ HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cpls",,0x00000012
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cpls","Console",0x00020000,"%SystemRoot%\system32\console.dll"
; Cursors Schemes
-HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cursors\Schemes","ReactOS Default",0x00020000,""",,,,,,,,,,,,,"""
+HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Control Panel\Cursors\Schemes","Default",0x00020000,""",,,,,,,,,,,,,"""
; Common shell folders
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders",,0x00000012
diff --git a/boot/bootdata/hivesys.inf b/boot/bootdata/hivesys.inf
index 0bcc9ebd..139e4b95 100644
--- a/boot/bootdata/hivesys.inf
+++ b/boot/bootdata/hivesys.inf
@@ -1900,9 +1900,9 @@ HKLM,"SYSTEM\CurrentControlSet\Services\tcpsvcs","ObjectName",0x00000000,"LocalS
HKLM,"SYSTEM\CurrentControlSet\Services\tcpsvcs","Start",0x00010001,0x00000003
HKLM,"SYSTEM\CurrentControlSet\Services\tcpsvcs","Type",0x00010001,0x00000020
-; ReactOS Telnet Service
-HKLM,"SYSTEM\CurrentControlSet\Services\telnetd","Description",0x00000000,"ReactOS Telnet Service"
-HKLM,"SYSTEM\CurrentControlSet\Services\telnetd","DisplayName",0x00000000,"ReactOS Telnet Service"
+; Telnet Service
+HKLM,"SYSTEM\CurrentControlSet\Services\telnetd","Description",0x00000000,"Telnet Service"
+HKLM,"SYSTEM\CurrentControlSet\Services\telnetd","DisplayName",0x00000000,"Telnet Service"
HKLM,"SYSTEM\CurrentControlSet\Services\telnetd","ErrorControl",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\telnetd","Group",0x00000000,"Network"
HKLM,"SYSTEM\CurrentControlSet\Services\telnetd","ImagePath",0x00020000,"%SystemRoot%\system32\telnetd.exe"
@@ -1923,9 +1923,9 @@ HKLM,"SYSTEM\CurrentControlSet\Services\Themes","ObjectName",0x00000000,"LocalSy
HKLM,"SYSTEM\CurrentControlSet\Services\Themes","Start",0x00010001,0x00000002
HKLM,"SYSTEM\CurrentControlSet\Services\Themes","Type",0x00010001,0x00000020
-; ReactOS Installer Service
+; Installer Service
HKLM,"SYSTEM\CurrentControlSet\Services\MSIServer","DependOnService",0x00010000,"RPCSS"
-HKLM,"SYSTEM\CurrentControlSet\Services\MSIServer","DisplayName",0x00000000,"ReactOS Installer"
+HKLM,"SYSTEM\CurrentControlSet\Services\MSIServer","DisplayName",0x00000000,"Installer"
HKLM,"SYSTEM\CurrentControlSet\Services\MSIServer","Description",0x00000000,"Controls installation, maintenance, and removal of software packaged as an MSI (Windows Installer)"
HKLM,"SYSTEM\CurrentControlSet\Services\MSIServer","ErrorControl",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\MSIServer","ImagePath",0x00020000,"%SystemRoot%\system32\msiexec.exe /V"
@@ -1935,7 +1935,7 @@ HKLM,"SYSTEM\CurrentControlSet\Services\MSIServer","Type",0x00010001,0x00000020
; WMI Service
HKLM,"SYSTEM\CurrentControlSet\Services\winmgmt","DependOnService",0x00010000,"RPCSS"
-HKLM,"SYSTEM\CurrentControlSet\Services\winmgmt","DisplayName",0x00000000,"ReactOS Management Infrastructure"
+HKLM,"SYSTEM\CurrentControlSet\Services\winmgmt","DisplayName",0x00000000,"Management Infrastructure"
HKLM,"SYSTEM\CurrentControlSet\Services\winmgmt","Description",0x00000000,"Provides interface to system management information"
HKLM,"SYSTEM\CurrentControlSet\Services\winmgmt","ErrorControl",0x00010001,0x00000001
HKLM,"SYSTEM\CurrentControlSet\Services\winmgmt","Group",0x00000000,"WMI"
diff --git a/boot/bootdata/hybridcd.ini b/boot/bootdata/hybridcd.ini
index d53ab953..51dda03a 100644
--- a/boot/bootdata/hybridcd.ini
+++ b/boot/bootdata/hybridcd.ini
@@ -3,7 +3,7 @@ DefaultOS=Setup
TimeOut=5
[Display]
-TitleText=ReactOS Hybrid-CD
+TitleText=Hybrid-CD
StatusBarColor=Cyan
StatusBarTextColor=Black
BackdropTextColor=White
diff --git a/boot/freeldr/bootsect/dosmbr.S b/boot/freeldr/bootsect/dosmbr.S
index a042c476..1a0645c6 100644
--- a/boot/freeldr/bootsect/dosmbr.S
+++ b/boot/freeldr/bootsect/dosmbr.S
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS Bootsector for ISO file system
+ * PROJECT: Bootsector for ISO file system
* PURPOSE: Normal DOS boot sector
* Ported to NASM from FreeDOS fdisk 1.2.0 by:
* PROGRAMMERS: Casper Hornstrup (chorns@users.sourceforge.net)
diff --git a/boot/freeldr/bootsect/fat32.S b/boot/freeldr/bootsect/fat32.S
index 8b606d10..bbabd6d8 100644
--- a/boot/freeldr/bootsect/fat32.S
+++ b/boot/freeldr/bootsect/fat32.S
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS Bootsector
+ * PROJECT: Bootsector
* FILE: boot/freeldr/bootsect/fat32.S
* PURPOSE:
* PROGRAMMERS: Brian Palmer
diff --git a/boot/freeldr/bootsect/faty.S b/boot/freeldr/bootsect/faty.S
index c1aa1a2d..3956b974 100644
--- a/boot/freeldr/bootsect/faty.S
+++ b/boot/freeldr/bootsect/faty.S
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS Bootsector
+ * PROJECT: Bootsector
* FILE: boot/freeldr/bootsect/faty.S
* PURPOSE: Combined FAT12, FAT16 and FAT32 boot sector
* PROGRAMMERS: Brian Palmer
diff --git a/boot/freeldr/bootsect/isoboot.S b/boot/freeldr/bootsect/isoboot.S
index a3733e07..6f89f53e 100644
--- a/boot/freeldr/bootsect/isoboot.S
+++ b/boot/freeldr/bootsect/isoboot.S
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS Bootsector for ISO file system
+ * PROJECT: Bootsector for ISO file system
* FILE: boot/freeldr/bootsect/isoboot.S
* PURPOSE:
* PROGRAMMERS: ?
diff --git a/boot/freeldr/freeldr/arch/arm/boot.S b/boot/freeldr/freeldr/arch/arm/boot.S
index b664e9fb..8f259683 100644
--- a/boot/freeldr/freeldr/arch/arm/boot.S
+++ b/boot/freeldr/freeldr/arch/arm/boot.S
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS Boot Loader
+ * PROJECT: Boot Loader
* LICENSE: BSD - See COPYING.ARM in the top level directory
* FILE: boot/freeldr/freeldr/arch/arm/boot.S
* PURPOSE: Implements the entry point for ARM machines
diff --git a/boot/freeldr/freeldr/arch/powerpc/boot.s b/boot/freeldr/freeldr/arch/powerpc/boot.s
deleted file mode 100644
index cc67a408..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/boot.s
+++ /dev/null
@@ -1,111 +0,0 @@
- .section ".text"
- .extern PpcInit
- .globl _start
- .globl call_ofw
-_start:
- sync
- isync
-
- lis %r1,stackend@ha
- addi %r1,%r1,stackend@l
-
- /* Store ofw call addr */
- mr %r21,%r5
- lis %r10,ofw_call_addr@ha
- stw %r5,ofw_call_addr@l(%r10)
-
- bl zero_registers
-
- /* Zero CTR */
- mtcr %r31
-
- lis %r3,PpcInit@ha
- addi %r3,%r3,PpcInit@l
- mtlr %r3
-
- /* Check for ofw */
- lis %r3,ofw_call_addr@ha
- lwz %r3,ofw_call_addr@l(%r3)
- cmpw %r3,%r31 /* Zero? */
- mr %r3,%r31
- beq initfp
-
- lis %r3,call_ofw@ha
- addi %r3,%r3,call_ofw@l
- b bootme
-
-initfp:
- /* Enabling FP at this point won't hurt, and the varargs scheme we're
- * using now requires it. */
- mfmsr %r0
- ori %r0,%r0,8192
- mtmsr %r0
-
-bootme:
- blr
-
-zero_registers:
- xor %r2,%r2,%r2
- mr %r0,%r2
- mr %r3,%r2
-
- mr %r4,%r2
- mr %r5,%r2
- mr %r6,%r2
- mr %r7,%r2
-
- mr %r8,%r2
- mr %r9,%r2
- mr %r10,%r2
- mr %r11,%r2
-
- mr %r12,%r2
- mr %r13,%r2
- mr %r14,%r2
- mr %r15,%r2
-
- mr %r12,%r2
- mr %r13,%r2
- mr %r14,%r2
- mr %r15,%r2
-
- mr %r16,%r2
- mr %r17,%r2
- mr %r18,%r2
- mr %r19,%r2
-
- mr %r20,%r2
- mr %r21,%r2
- mr %r22,%r2
- mr %r23,%r2
-
- mr %r24,%r2
- mr %r25,%r2
- mr %r26,%r2
- mr %r27,%r2
-
- mr %r28,%r2
- mr %r29,%r2
- mr %r30,%r2
- mr %r31,%r2
-
- blr
-
-ofw_memory_size:
- .long 0
- .long 0
- .long 0
- .long 0
-
- .align 4
-stack:
- .space 0x4000
-stackend:
- .long 0,0,0,0
-
- .globl _bss
- .section ".bss2"
-_bss:
- .long 0
-
- .align 4
diff --git a/boot/freeldr/freeldr/arch/powerpc/compat.h b/boot/freeldr/freeldr/arch/powerpc/compat.h
deleted file mode 100644
index e62d16de..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/compat.h
+++ /dev/null
@@ -1,105 +0,0 @@
-#pragma once
-
-#define __init
-#define __initdata
-
-#define SPRN_MSSCR0 0x3f6 /* Memory Subsystem Control Register 0 */
-#define SPRN_MSSSR0 0x3f7 /* Memory Subsystem Status Register 1 */
-#define SPRN_LDSTCR 0x3f8 /* Load/Store control register */
-#define SPRN_LDSTDB 0x3f4 /* */
-#define SPRN_LR 0x008 /* Link Register */
-#ifndef SPRN_PIR
-#define SPRN_PIR 0x3FF /* Processor Identification Register */
-#endif
-#define SPRN_PTEHI 0x3D5 /* 981 7450 PTE HI word (S/W TLB load) */
-#define SPRN_PTELO 0x3D6 /* 982 7450 PTE LO word (S/W TLB load) */
-#define SPRN_PURR 0x135 /* Processor Utilization of Resources Reg */
-#define SPRN_PVR 0x11F /* Processor Version Register */
-#define SPRN_RPA 0x3D6 /* Required Physical Address Register */
-#define SPRN_SDA 0x3BF /* Sampled Data Address Register */
-#define SPRN_SDR1 0x019 /* MMU Hash Base Register */
-#define SPRN_ASR 0x118 /* Address Space Register */
-#define SPRN_SIA 0x3BB /* Sampled Instruction Address Register */
-#define SPRN_SPRG0 0x110 /* Special Purpose Register General 0 */
-#define SPRN_SPRG1 0x111 /* Special Purpose Register General 1 */
-#define SPRN_SPRG2 0x112 /* Special Purpose Register General 2 */
-#define SPRN_SPRG3 0x113 /* Special Purpose Register General 3 */
-#define SPRN_SPRG4 0x114 /* Special Purpose Register General 4 */
-#define SPRN_SPRG5 0x115 /* Special Purpose Register General 5 */
-#define SPRN_SPRG6 0x116 /* Special Purpose Register General 6 */
-#define SPRN_SPRG7 0x117 /* Special Purpose Register General 7 */
-#define SPRN_SRR0 0x01A /* Save/Restore Register 0 */
-#define SPRN_SRR1 0x01B /* Save/Restore Register 1 */
-#ifndef SPRN_SVR
-#define SPRN_SVR 0x11E /* System Version Register */
-#endif
-#define SPRN_THRM1 0x3FC /* Thermal Management Register 1 */
-/* these bits were defined in inverted endian sense originally, ugh, confusing */
-
-/* Values for PP (assumes Ks=0, Kp=1) */
-#define PP_RWXX 0 /* Supervisor read/write, User none */
-#define PP_RWRX 1 /* Supervisor read/write, User read */
-#define PP_RWRW 2 /* Supervisor read/write, User read/write */
-#define PP_RXRX 3 /* Supervisor read, User read */
-
-/* Block size masks */
-#define BL_128K 0x000
-#define BL_256K 0x001
-#define BL_512K 0x003
-#define BL_1M 0x007
-#define BL_2M 0x00F
-#define BL_4M 0x01F
-#define BL_8M 0x03F
-#define BL_16M 0x07F
-#define BL_32M 0x0FF
-#define BL_64M 0x1FF
-#define BL_128M 0x3FF
-#define BL_256M 0x7FF
-
-/* BAT Access Protection */
-#define BPP_XX 0x00 /* No access */
-#define BPP_RX 0x01 /* Read only */
-#define BPP_RW 0x02 /* Read/write */
-
-/* Definitions for 40x embedded chips. */
-#define _PAGE_GUARDED 0x001 /* G: page is guarded from prefetch */
-#define _PAGE_FILE 0x001 /* when !present: nonlinear file mapping */
-#define _PAGE_PRESENT 0x002 /* software: PTE contains a translation */
-#define _PAGE_NO_CACHE 0x004 /* I: caching is inhibited */
-#define _PAGE_WRITETHRU 0x008 /* W: caching is write-through */
-#define _PAGE_USER 0x010 /* matches one of the zone permission bits */
-#define _PAGE_RW 0x040 /* software: Writes permitted */
-#define _PAGE_DIRTY 0x080 /* software: dirty page */
-#define _PAGE_HWWRITE 0x100 /* hardware: Dirty & RW, set in exception */
-#define _PAGE_HWEXEC 0x200 /* hardware: EX permission */
-#define _PAGE_ACCESSED 0x400 /* software: R: page referenced */
-
-#define _PMD_PRESENT 0x400 /* PMD points to page of PTEs */
-#define _PMD_BAD 0x802
-#define _PMD_SIZE 0x0e0 /* size field, != 0 for large-page PMD entry */
-#define _PMD_SIZE_4M 0x0c0
-#define _PMD_SIZE_16M 0x0e0
-#define PMD_PAGE_SIZE(pmdval) (1024 << (((pmdval) & _PMD_SIZE) >> 4))
-
-#define PVR_VER(pvr)(((pvr) >> 16) & 0xFFFF) /* Version field */
-
-#define KERNELBASE 0x80000000
-
-typedef unsigned char __u8;
-typedef unsigned short __u16;
-typedef unsigned int __u32;
-
-typedef struct _pci_reg_property {
- struct {
- int a_hi, a_mid, a_lo;
- } addr;
- int size_hi, size_lo;
-} pci_reg_property;
-
-void btext_drawstring(const char *c);
-void btext_drawhex(unsigned long v);
-
-void *ioremap(__u32 phys, __u32 size);
-void iounmap(void *logical);
-
-__u32 GetPVR(void);
diff --git a/boot/freeldr/freeldr/arch/powerpc/loader.c b/boot/freeldr/freeldr/arch/powerpc/loader.c
deleted file mode 100644
index 24c958a7..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/loader.c
+++ /dev/null
@@ -1,349 +0,0 @@
-/*
- * FreeLoader
- * Copyright (C) 1998-2003 Brian Palmer
- * Copyright (C) 2005 Alex Ionescu
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-#define _NTSYSTEM_
-#include
-
-#define NDEBUG
-#include
-
-#define DbgPrint printf
-
-extern PVOID KernelBase;
-extern PVOID KernelMemory;
-
-PVOID
-NTAPI
-LdrPEGetExportByName(PVOID BaseAddress,
- PUCHAR SymbolName,
- USHORT Hint);
-
-/* FUNCTIONS *****************************************************************/
-
-PLOADER_MODULE
-NTAPI
-LdrGetModuleObject(PCHAR ModuleName)
-{
- ULONG i;
-
- for (i = 0; i < LoaderBlock.ModsCount; i++)
- {
- if (strstr(_strupr((PCHAR)reactos_modules[i].String), _strupr(ModuleName)))
- {
- return &reactos_modules[i];
- }
- }
-
- return NULL;
-}
-
-PVOID
-NTAPI
-LdrPEFixupForward(IN PCHAR ForwardName)
-{
- CHAR NameBuffer[128];
- PCHAR p;
- PLOADER_MODULE ModuleObject;
-
- strcpy(NameBuffer, ForwardName);
- p = strchr(NameBuffer, '.');
- if (p == NULL) return NULL;
- *p = 0;
-
- ModuleObject = LdrGetModuleObject(NameBuffer);
- if (!ModuleObject)
- {
- DbgPrint("LdrPEFixupForward: failed to find module %s\n", NameBuffer);
- return NULL;
- }
-
- return LdrPEGetExportByName((PVOID)ModuleObject->ModStart, (PUCHAR)(p + 1), 0xffff);
-}
-
-PVOID
-NTAPI
-LdrPEGetExportByName(PVOID BaseAddress,
- PUCHAR SymbolName,
- USHORT Hint)
-{
- PIMAGE_EXPORT_DIRECTORY ExportDir;
- PULONG * ExFunctions;
- PULONG * ExNames;
- USHORT * ExOrdinals;
- PVOID ExName;
- ULONG Ordinal;
- PVOID Function;
- LONG minn, maxn, mid, res;
- ULONG ExportDirSize;
-
- /* HAL and NTOS use a virtual address, switch it to physical mode */
- if ((ULONG_PTR)BaseAddress & 0x80000000)
- {
- BaseAddress = (PVOID)((ULONG_PTR)BaseAddress - KSEG0_BASE + (ULONG)KernelMemory);
- }
-
- ExportDir = (PIMAGE_EXPORT_DIRECTORY)
- RtlImageDirectoryEntryToData(BaseAddress,
- TRUE,
- IMAGE_DIRECTORY_ENTRY_EXPORT,
- &ExportDirSize);
- if (!ExportDir)
- {
- DbgPrint("LdrPEGetExportByName(): no export directory!\n");
- return NULL;
- }
-
- /* The symbol names may be missing entirely */
- if (!ExportDir->AddressOfNames)
- {
- DbgPrint("LdrPEGetExportByName(): symbol names missing entirely\n");
- return NULL;
- }
-
- /*
- * Get header pointers
- */
- ExNames = (PULONG *)RVA(BaseAddress, ExportDir->AddressOfNames);
- ExOrdinals = (USHORT *)RVA(BaseAddress, ExportDir->AddressOfNameOrdinals);
- ExFunctions = (PULONG *)RVA(BaseAddress, ExportDir->AddressOfFunctions);
-
- /*
- * Check the hint first
- */
- if (Hint < ExportDir->NumberOfNames)
- {
- ExName = RVA(BaseAddress, ExNames[Hint]);
- if (strcmp(ExName, (PCHAR)SymbolName) == 0)
- {
- Ordinal = ExOrdinals[Hint];
- Function = RVA(BaseAddress, ExFunctions[Ordinal]);
- if ((ULONG_PTR)Function >= (ULONG_PTR)ExportDir &&
- (ULONG_PTR)Function < (ULONG_PTR)ExportDir + ExportDirSize)
- {
- Function = LdrPEFixupForward((PCHAR)Function);
- if (Function == NULL)
- {
- DbgPrint("LdrPEGetExportByName(): failed to find %s\n", Function);
- }
- return Function;
- }
-
- if (Function != NULL) return Function;
- }
- }
-
- /*
- * Binary search
- */
- minn = 0;
- maxn = ExportDir->NumberOfNames - 1;
- while (minn <= maxn)
- {
- mid = (minn + maxn) / 2;
-
- ExName = RVA(BaseAddress, ExNames[mid]);
- res = strcmp(ExName, (PCHAR)SymbolName);
- if (res == 0)
- {
- Ordinal = ExOrdinals[mid];
- Function = RVA(BaseAddress, ExFunctions[Ordinal]);
- if ((ULONG_PTR)Function >= (ULONG_PTR)ExportDir &&
- (ULONG_PTR)Function < (ULONG_PTR)ExportDir + ExportDirSize)
- {
- Function = LdrPEFixupForward((PCHAR)Function);
- if (Function == NULL)
- {
- DbgPrint("1: failed to find %s\n", Function);
- }
- return Function;
- }
- if (Function != NULL)
- {
- return Function;
- }
- }
- else if (res > 0)
- {
- maxn = mid - 1;
- }
- else
- {
- minn = mid + 1;
- }
- }
-
- /* Fall back on unsorted */
- minn = 0;
- maxn = ExportDir->NumberOfNames - 1;
- while (minn <= maxn)
- {
- ExName = RVA(BaseAddress, ExNames[minn]);
- res = strcmp(ExName, (PCHAR)SymbolName);
- if (res == 0)
- {
- Ordinal = ExOrdinals[minn];
- Function = RVA(BaseAddress, ExFunctions[Ordinal]);
- if ((ULONG_PTR)Function >= (ULONG_PTR)ExportDir &&
- (ULONG_PTR)Function < (ULONG_PTR)ExportDir + ExportDirSize)
- {
- Function = LdrPEFixupForward((PCHAR)Function);
- if (Function == NULL)
- {
- DbgPrint("LdrPEGetExportByName(): failed to find %s\n",SymbolName);
- }
- return Function;
- }
- if (Function != NULL)
- {
- return Function;
- }
- DbgPrint("Failed to get function %s\n", SymbolName);
- }
- minn++;
- }
-
- DbgPrint("2: failed to find %s\n",SymbolName);
- return (PVOID)NULL;
-}
-
-NTSTATUS
-NTAPI
-LdrPEProcessImportDirectoryEntry(PVOID DriverBase,
- PLOADER_MODULE LoaderModule,
- PIMAGE_IMPORT_DESCRIPTOR ImportModuleDirectory)
-{
- PVOID* ImportAddressList;
- PULONG FunctionNameList;
-
- if (ImportModuleDirectory == NULL || ImportModuleDirectory->Name == 0)
- {
- return STATUS_UNSUCCESSFUL;
- }
-
- /* Get the import address list. */
- ImportAddressList = (PVOID*)RVA(DriverBase, ImportModuleDirectory->FirstThunk);
-
- /* Get the list of functions to import. */
- if (ImportModuleDirectory->OriginalFirstThunk != 0)
- {
- FunctionNameList = (PULONG)RVA(DriverBase, ImportModuleDirectory->OriginalFirstThunk);
- }
- else
- {
- FunctionNameList = (PULONG)RVA(DriverBase, ImportModuleDirectory->FirstThunk);
- }
-
- /* Walk through function list and fixup addresses. */
- while (*FunctionNameList != 0L)
- {
- if ((*FunctionNameList) & 0x80000000)
- {
- DbgPrint("Failed to import ordinal from %s\n", LoaderModule->String);
- return STATUS_UNSUCCESSFUL;
- }
- else
- {
- IMAGE_IMPORT_BY_NAME *pe_name;
- pe_name = RVA(DriverBase, *FunctionNameList);
- *ImportAddressList = LdrPEGetExportByName((PVOID)LoaderModule->ModStart, pe_name->Name, pe_name->Hint);
-
- /* Fixup the address to be virtual */
- *ImportAddressList = (PVOID)(ULONG_PTR)*ImportAddressList + (ULONG_PTR)KernelBase - (ULONG_PTR)KernelMemory;
-
-
- //DbgPrint("Looked for: %s and found: %x\n", pe_name->Name, *ImportAddressList);
- if ((*ImportAddressList) == NULL)
- {
- DbgPrint("Failed to import %s from %s\n", pe_name->Name, LoaderModule->String);
- return STATUS_UNSUCCESSFUL;
- }
- }
- ImportAddressList++;
- FunctionNameList++;
- }
- return STATUS_SUCCESS;
-}
-
-extern BOOLEAN FrLdrLoadDriver(PCHAR szFileName, INT nPos);
-
-NTSTATUS
-NTAPI
-LdrPEGetOrLoadModule(IN PCHAR ModuleName,
- IN PCHAR ImportedName,
- IN PLOADER_MODULE* ImportedModule)
-{
- NTSTATUS Status = STATUS_SUCCESS;
-
- *ImportedModule = LdrGetModuleObject(ImportedName);
- if (*ImportedModule == NULL)
- {
- /*
- * For now, we only support import-loading the HAL.
- * Later, FrLdrLoadDriver should be made to share the same
- * code, and we'll just call it instead.
- */
- FrLdrLoadDriver(ImportedName, 0);
-
- /* Return the new module */
- *ImportedModule = LdrGetModuleObject(ImportedName);
- if (*ImportedModule == NULL)
- {
- DbgPrint("Error loading import: %s\n", ImportedName);
- return STATUS_UNSUCCESSFUL;
- }
- }
-
- return Status;
-}
-
-NTSTATUS
-NTAPI
-LdrPEFixupImports(IN PVOID DllBase,
- IN PCHAR DllName)
-{
- PIMAGE_IMPORT_DESCRIPTOR ImportModuleDirectory;
- PCHAR ImportedName;
- NTSTATUS Status;
- PLOADER_MODULE ImportedModule;
- ULONG Size;
-
- /* Process each import module */
- ImportModuleDirectory = (PIMAGE_IMPORT_DESCRIPTOR)
- RtlImageDirectoryEntryToData(DllBase,
- TRUE,
- IMAGE_DIRECTORY_ENTRY_IMPORT,
- &Size);
- while (ImportModuleDirectory && ImportModuleDirectory->Name)
- {
- /* Check to make sure that import lib is kernel */
- ImportedName = (PCHAR) DllBase + ImportModuleDirectory->Name;
- //DbgPrint("Processing imports for file: %s into file: %s\n", DllName, ImportedName);
-
- Status = LdrPEGetOrLoadModule(DllName, ImportedName, &ImportedModule);
- if (!NT_SUCCESS(Status)) return Status;
-
- Status = LdrPEProcessImportDirectoryEntry(DllBase, ImportedModule, ImportModuleDirectory);
- if (!NT_SUCCESS(Status)) return Status;
-
- //DbgPrint("Imports for file: %s into file: %s complete\n", DllName, ImportedName);
- ImportModuleDirectory++;
- }
-
- return STATUS_SUCCESS;
-}
diff --git a/boot/freeldr/freeldr/arch/powerpc/mach.c b/boot/freeldr/freeldr/arch/powerpc/mach.c
deleted file mode 100644
index be8cf7e8..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/mach.c
+++ /dev/null
@@ -1,560 +0,0 @@
-/*
- * FreeLoader PowerPC Part
- * Copyright (C) 2005 Art Yerkes
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-#include "freeldr.h"
-#include "machine.h"
-#include "ppcmmu/mmu.h"
-#include "of.h"
-#include "prep.h"
-#include "compat.h"
-
-extern void BootMain( LPSTR CmdLine );
-extern PCHAR GetFreeLoaderVersionString();
-extern ULONG CacheSizeLimit;
-of_proxy ofproxy;
-void *PageDirectoryStart, *PageDirectoryEnd;
-static int chosen_package, stdin_handle, stdout_handle, part_handle = -1;
-int mmu_handle = 0;
-int claimed[4];
-BOOLEAN AcpiPresent = FALSE;
-char BootPath[0x100] = { 0 }, BootPart[0x100] = { 0 }, CmdLine[0x100] = { "bootprep" };
-jmp_buf jmp;
-volatile char *video_mem = 0;
-
-void PpcOfwPutChar( int ch ) {
- char buf[3];
- if( ch == 0x0a ) { buf[0] = 0x0d; buf[1] = 0x0a; }
- else { buf[0] = ch; buf[1] = 0; }
- buf[2] = 0;
- ofw_write(stdout_handle, buf, strlen(buf));
-}
-
-int PpcFindDevice( int depth, int parent, char *devname, int *nth ) {
- static char buf[256];
- int next = 0;
- int gotname = 0;
- int match = 0;
- int i;
-
- next = ofw_child( parent );
-
- //printf( "next = %x\n", next );
-
- gotname = ofw_getprop(parent, "name", buf, 256);
-
- //printf( "gotname = %d\n", gotname );
-
- match = !strncmp(buf, devname, strlen(devname));
-
- if( !nth && match ) return parent;
-
- for( i = 0; i < depth; i++ ) PpcOfwPutChar( ' ' );
-
- if( depth == 1 ) {
- if( gotname > 0 ) {
- printf( "%c Name: %s\n", match ? '*' : ' ', buf );
- } else {
- printf( "- No name attribute for %x\n", parent );
- }
- }
-
- while( !match && next ) {
- i = PpcFindDevice( depth+1, next, devname, nth );
- if( i ) return i;
- next = ofw_peer( next );
- }
-
- return 0;
-}
-
-BOOLEAN PpcConsKbHit() {
- return FALSE;
-}
-
-int PpcConsGetCh() {
- char buf;
- ofw_read( stdin_handle, &buf, 1 );
- return buf;
-}
-
-void PpcVideoClearScreen( UCHAR Attr ) {
-}
-
-VOID PpcVideoGetDisplaySize( PULONG Width, PULONG Height, PULONG Depth ) {
- *Width = 80;
- *Height = 25;
- *Depth = 16;
-}
-
-ULONG PpcVideoGetBufferSize() {
- ULONG Width, Height, Depth;
- MachVideoGetDisplaySize( &Width, &Height, &Depth );
- return Width * Height * Depth / 8;
-}
-
-VIDEODISPLAYMODE PpcVideoSetDisplayMode( char *DisplayMode, BOOLEAN Init ) {
- //printf( "DisplayMode: %s %s\n", DisplayMode, Init ? "true" : "false" );
- if( Init && !video_mem ) {
- video_mem = MmAllocateMemory( PpcVideoGetBufferSize() );
- }
- return VideoTextMode;
-}
-
-VOID PpcVideoSetTextCursorPosition( ULONG X, ULONG Y ) {
- printf("SetTextCursorPosition(%d,%d)\n", X,Y);
-}
-
-VOID PpcVideoHideShowTextCursor( BOOLEAN Show ) {
- printf("HideShowTextCursor(%s)\n", Show ? "true" : "false");
-}
-
-VOID PpcVideoPutChar( int Ch, UCHAR Attr, unsigned X, unsigned Y ) {
- printf( "\033[%d;%dH%c", Y, X, Ch );
-}
-
-VOID PpcVideoCopyOffScreenBufferToVRAM( PVOID Buffer ) {
- int i,j;
- ULONG w,h,d;
- PCHAR ChBuf = Buffer;
- int offset = 0;
-
- MachVideoGetDisplaySize( &w, &h, &d );
-
- for( i = 0; i < h; i++ ) {
- for( j = 0; j < w; j++ ) {
- offset = (j * 2) + (i * w * 2);
- if( ChBuf[offset] != video_mem[offset] ) {
- video_mem[offset] = ChBuf[offset];
- MachVideoPutChar(ChBuf[offset],0,j+1,i+1);
- }
- }
- }
-}
-
-BOOLEAN PpcVideoIsPaletteFixed() {
- return FALSE;
-}
-
-VOID PpcVideoSetPaletteColor( UCHAR Color,
- UCHAR Red, UCHAR Green, UCHAR Blue ) {
- printf( "SetPaletteColor(%x,%x,%x,%x)\n", Color, Red, Green, Blue );
-}
-
-VOID PpcVideoGetPaletteColor( UCHAR Color,
- UCHAR *Red, UCHAR *Green, UCHAR *Blue ) {
- printf( "GetPaletteColor(%x)\n", Color);
-}
-
-VOID PpcVideoSync() {
- printf( "Sync\n" );
-}
-
-int mmu_initialized = 0;
-int mem_range_end;
-VOID PpcInitializeMmu()
-{
- if(!mmu_initialized)
- {
- MmuInit();
- MmuDbgInit(0, 0x800003f8);
- MmuSetMemorySize(mem_range_end);
- //MmuDbgEnter(0x20);
- mmu_initialized = 1;
- }
-}
-
-ULONG PpcPrepGetMemoryMap( PBIOS_MEMORY_MAP BiosMemoryMap,
- ULONG MaxMemoryMapSize );
-
-/*
- * Get memory the proper openfirmware way
- */
-ULONG PpcGetMemoryMap( PBIOS_MEMORY_MAP BiosMemoryMap,
- ULONG MaxMemoryMapSize ) {
- int i, memhandle, total = 0, slots = 0, last = 0x40000, allocstart = 0x1000000;
- int regdata[0x40];
-
- printf("PpcGetMemoryMap(%d)\n", MaxMemoryMapSize);
-
- memhandle = ofw_finddevice("/memory");
-
- ofw_getprop(memhandle, "reg", (char *)regdata, sizeof(regdata));
-
- /* Try to claim some memory in usable blocks. Try to get some 8mb bits */
- for( i = 0; i < sizeof(claimed) / sizeof(claimed[0]); ) {
- if (!claimed[i])
- claimed[i] = ofw_claim(allocstart, 8 * 1024 * 1024, 0x1000);
-
- allocstart += 8 * 1024 * 1024;
-
- if (claimed[i]) {
- if (last < claimed[i]) {
- BiosMemoryMap[slots].Type = BiosMemoryAcpiReclaim;
- BiosMemoryMap[slots].BaseAddress = last;
- BiosMemoryMap[slots].Length = claimed[i] - last;
- slots++;
- }
-
- BiosMemoryMap[slots].Type = BiosMemoryUsable;
- BiosMemoryMap[slots].BaseAddress = claimed[i];
- BiosMemoryMap[slots].Length = 8 * 1024 * 1024;
-
- total += BiosMemoryMap[slots].Length;
- last =
- BiosMemoryMap[slots].BaseAddress +
- BiosMemoryMap[slots].Length;
- slots++;
- i++;
- }
- }
-
- /* Get the rest until the end of the memory object as we see it */
- if (last < regdata[1]) {
- BiosMemoryMap[slots].Type = BiosMemoryAcpiReclaim;
- BiosMemoryMap[slots].BaseAddress = last;
- BiosMemoryMap[slots].Length = regdata[1] - last;
- slots++;
- }
-
- for (i = 0; i < slots; i++) {
- printf("MemoryMap[%d] = (%x:%x)\n",
- i,
- (int)BiosMemoryMap[i].BaseAddress,
- (int)BiosMemoryMap[i].Length);
-
- }
-
- mem_range_end = regdata[1];
-
- printf( "Returning memory map (%d entries, %dk free, %dk total ram)\n",
- slots, total / 1024, regdata[1] / 1024 );
-
- return slots;
-}
-
-BOOLEAN PpcDiskGetBootPath( char *OutBootPath, unsigned Size ) {
- strncpy( OutBootPath, BootPath, Size );
- return TRUE;
-}
-
-BOOLEAN PpcDiskReadLogicalSectors( ULONG DriveNumber, ULONGLONG SectorNumber,
- ULONG SectorCount, PVOID Buffer ) {
- int rlen = 0;
-
- if( part_handle == -1 ) {
- part_handle = ofw_open( BootPart );
-
- if( part_handle == -1 ) {
- printf("Could not open any disk devices we know about\n");
- return FALSE;
- }
- }
-
- if( part_handle == -1 ) {
- printf("Got partition handle %x\n", part_handle);
- return FALSE;
- }
-
- if( ofw_seek( part_handle,
- (ULONG)(SectorNumber >> 25),
- (ULONG)((SectorNumber * 512) & 0xffffffff) ) ) {
- printf("Seek to %x failed\n", (ULONG)(SectorNumber * 512));
- return FALSE;
- }
-
- rlen = ofw_read( part_handle, Buffer, (ULONG)(SectorCount * 512) );
- return rlen > 0;
-}
-
-BOOLEAN PpcDiskGetDriveGeometry( ULONG DriveNumber, PGEOMETRY DriveGeometry ) {
- printf("GetGeometry(%d)\n", DriveNumber);
- DriveGeometry->BytesPerSector = 512;
- DriveGeometry->Heads = 16;
- DriveGeometry->Sectors = 63;
- return TRUE;
-}
-
-ULONG PpcDiskGetCacheableBlockCount( ULONG DriveNumber ) {
- printf("GetCacheableBlockCount\n");
- return 1;
-}
-
-TIMEINFO*
-PpcGetTime(VOID)
-{
- static TIMEINFO TimeInfo;
- //printf("PpcGetTime\n");
- return &TimeInfo;
-}
-
-VOID NarrowToWide(WCHAR *wide_name, char *name)
-{
- char *copy_name;
- WCHAR *wide_name_ptr;
- for (wide_name_ptr = wide_name, copy_name = name;
- (*wide_name_ptr = *copy_name);
- wide_name_ptr++, copy_name++);
-}
-
-/* Recursively copy the device tree into our representation
- * It'll be passed to HAL.
- *
- * When NT was first done on PPC, it was on PReP hardware, which is very
- * like PC hardware (really, just a PPC on a PC motherboard). HAL can guess
- * the addresses of needed resources in this scheme as it can on x86.
- *
- * Most PPC hardware doesn't assign fixed addresses to hardware, which is
- * the problem that open firmware partially solves. It allows hardware makers
- * much more leeway in building PPC systems. Unfortunately, because
- * openfirmware as originally specified neither captures nor standardizes
- * all possible information, and also because of bugs, most OSs use a hybrid
- * configuration scheme that relies both on verification of devices and
- * recording information from openfirmware to be treated as hints.
- */
-VOID OfwCopyDeviceTree
-(PCONFIGURATION_COMPONENT_DATA ParentKey,
- char *name,
- int innode,
- ULONG *BusNumber,
- ULONG *DiskController,
- ULONG *DiskNumber)
-{
- int proplen = 0, node = innode;
- char *prev_name, cur_name[64], data[256], *slash, devtype[64];
- wchar_t wide_name[64];
- PCONFIGURATION_COMPONENT_DATA NewKey;
-
- NarrowToWide(wide_name, name);
-
- /* Create a key for this device */
- FldrCreateComponentKey
- (ParentKey,
- AdapterClass,
- MultiFunctionAdapter,
- 0,
- 0,
- (ULONG)-1,
- NULL,
- NULL,
- 0,
- &NewKey);
-
- /* Add properties */
- for (prev_name = ""; ofw_nextprop(node, prev_name, cur_name) == 1; )
- {
- proplen = ofw_getproplen(node, cur_name);
- if (proplen > 256 || proplen < 0)
- {
- printf("Warning: not getting prop %s (too long: %d)\n",
- cur_name, proplen);
- continue;
- }
- ofw_getprop(node, cur_name, data, sizeof(data));
-
- /* Get device type so we can examine it */
- if (!strcmp(cur_name, "device_type"))
- strcpy(devtype, (char *)data);
-
- NarrowToWide(wide_name, cur_name);
- //RegSetValue(NewKey, wide_name, REG_BINARY, data, proplen);
-
- strcpy(data, cur_name);
- prev_name = data;
- }
-
-#if 0
- /* Special device handling */
- if (!strcmp(devtype, "ata"))
- {
- OfwHandleDiskController(NewKey, node, *DiskController);
- (*DiskController)++;
- *DiskNumber = 0;
- }
- else if (!strcmp(devtype, "disk"))
- {
- OfwHandleDiskObject(NewKey, node, *DiskController, *DiskNumber);
- (*DiskNumber)++;
- }
-#endif
-
- /* Subdevices */
- for (node = ofw_child(node); node; node = ofw_peer(node))
- {
- ofw_package_to_path(node, data, sizeof(data));
- slash = strrchr(data, '/');
- if (slash) slash++; else continue;
- OfwCopyDeviceTree
- (NewKey, slash, node, BusNumber, DiskController, DiskNumber);
- }
-}
-
-PCONFIGURATION_COMPONENT_DATA PpcHwDetect() {
- PCONFIGURATION_COMPONENT_DATA RootKey;
- ULONG BusNumber = 0, DiskController = 0, DiskNumber = 0;
- int node = ofw_finddevice("/");
-
- FldrCreateSystemKey(&RootKey);
-
- OfwCopyDeviceTree(RootKey,"/",node,&BusNumber,&DiskController,&DiskNumber);
- return RootKey;
-}
-
-VOID
-PpcHwIdle(VOID)
-{
- /* UNIMPLEMENTED */
-}
-
-void PpcDefaultMachVtbl()
-{
- MachVtbl.ConsPutChar = PpcOfwPutChar;
- MachVtbl.ConsKbHit = PpcConsKbHit;
- MachVtbl.ConsGetCh = PpcConsGetCh;
- MachVtbl.VideoClearScreen = PpcVideoClearScreen;
- MachVtbl.VideoSetDisplayMode = PpcVideoSetDisplayMode;
- MachVtbl.VideoGetDisplaySize = PpcVideoGetDisplaySize;
- MachVtbl.VideoGetBufferSize = PpcVideoGetBufferSize;
- MachVtbl.VideoSetTextCursorPosition = PpcVideoSetTextCursorPosition;
- MachVtbl.VideoHideShowTextCursor = PpcVideoHideShowTextCursor;
- MachVtbl.VideoPutChar = PpcVideoPutChar;
- MachVtbl.VideoCopyOffScreenBufferToVRAM =
- PpcVideoCopyOffScreenBufferToVRAM;
- MachVtbl.VideoIsPaletteFixed = PpcVideoIsPaletteFixed;
- MachVtbl.VideoSetPaletteColor = PpcVideoSetPaletteColor;
- MachVtbl.VideoGetPaletteColor = PpcVideoGetPaletteColor;
- MachVtbl.VideoSync = PpcVideoSync;
-
- MachVtbl.GetMemoryMap = PpcGetMemoryMap;
-
- MachVtbl.DiskGetBootPath = PpcDiskGetBootPath;
- MachVtbl.DiskReadLogicalSectors = PpcDiskReadLogicalSectors;
- MachVtbl.DiskGetDriveGeometry = PpcDiskGetDriveGeometry;
- MachVtbl.DiskGetCacheableBlockCount = PpcDiskGetCacheableBlockCount;
-
- MachVtbl.GetTime = PpcGetTime;
-
- MachVtbl.HwDetect = PpcHwDetect;
- MachVtbl.HwIdle = PpcHwIdle;
-}
-
-void PpcOfwInit()
-{
- chosen_package = ofw_finddevice( "/chosen" );
-
- ofw_getprop(chosen_package, "bootargs",
- CmdLine, sizeof(CmdLine));
- ofw_getprop( chosen_package, "stdin",
- (char *)&stdin_handle, sizeof(stdin_handle) );
- ofw_getprop( chosen_package, "stdout",
- (char *)&stdout_handle, sizeof(stdout_handle) );
- ofw_getprop( chosen_package, "mmu",
- (char *)&mmu_handle, sizeof(mmu_handle) );
-
- // Allow forcing prep for broken OFW
- if(!strncmp(CmdLine, "bootprep", 8))
- {
- printf("Going to PREP init...\n");
- ofproxy = NULL;
- PpcPrepInit();
- return;
- }
-
- printf( "FreeLDR version [%s]\n", GetFreeLoaderVersionString() );
-
- BootMain( CmdLine );
-}
-
-void PpcInit( of_proxy the_ofproxy ) {
- // Hack to be a bit easier on ram
- CacheSizeLimit = 64 * 1024;
- ofproxy = the_ofproxy;
- PpcDefaultMachVtbl();
- if(ofproxy) PpcOfwInit();
- else PpcPrepInit();
-}
-
-void MachInit(const char *CmdLine) {
- int i, len;
- char *sep;
-
- BootPart[0] = 0;
- BootPath[0] = 0;
-
- printf( "Determining boot device: [%s]\n", CmdLine );
-
- sep = NULL;
- for( i = 0; i < strlen(CmdLine); i++ ) {
- if( strncmp(CmdLine + i, "boot=", 5) == 0) {
- strcpy(BootPart, CmdLine + i + 5);
- sep = strchr(BootPart, ',');
- if( sep )
- *sep = 0;
- while(CmdLine[i] && CmdLine[i]!=',') i++;
- }
- }
-
- if( strlen(BootPart) == 0 ) {
- if (ofproxy)
- len = ofw_getprop(chosen_package, "bootpath",
- BootPath, sizeof(BootPath));
- else
- len = 0;
- if( len < 0 ) len = 0;
- BootPath[len] = 0;
- printf( "Boot Path: %s\n", BootPath );
-
- sep = strrchr(BootPath, ',');
-
- strcpy(BootPart, BootPath);
- if( sep ) {
- BootPart[sep - BootPath] = 0;
- }
- }
-
- printf( "FreeLDR starting (boot partition: %s)\n", BootPart );
-}
-
-void beep() {
-}
-
-UCHAR NTAPI READ_PORT_UCHAR(PUCHAR Address) {
- return GetPhysByte(((ULONG)Address)+0x80000000);
-}
-
-void WRITE_PORT_UCHAR(PUCHAR Address, UCHAR Value) {
- SetPhysByte(((ULONG)Address)+0x80000000, Value);
-}
-
-void DiskStopFloppyMotor() {
-}
-
-void BootOldLinuxKernel( unsigned long size ) {
- ofw_exit();
-}
-
-void BootNewLinuxKernel() {
- ofw_exit();
-}
-
-void ChainLoadBiosBootSectorCode() {
- ofw_exit();
-}
-
-void DbgBreakPoint() {
- __asm__("twi 31,0,0");
-}
diff --git a/boot/freeldr/freeldr/arch/powerpc/mboot.c b/boot/freeldr/freeldr/arch/powerpc/mboot.c
deleted file mode 100644
index 352d2378..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/mboot.c
+++ /dev/null
@@ -1,842 +0,0 @@
-/*
- * FreeLoader
- * Copyright (C) 1998-2003 Brian Palmer
- * Copyright (C) 2005 Alex Ionescu
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#include
-#include
-#include
-#include
-#include "ppcmmu/mmu.h"
-#include "compat.h"
-
-#define NDEBUG
-#include
-
-/* We'll check this to see if we're in OFW land */
-extern of_proxy ofproxy;
-
-PVOID KernelMemory = 0;
-
-/* Bits to shift to convert a Virtual Address into an Offset in the Page Table */
-#define PFN_SHIFT 12
-
-/* Bits to shift to convert a Virtual Address into an Offset in the Page Directory */
-#define PDE_SHIFT 22
-#define PDE_SHIFT_PAE 18
-
-#define STARTUP_BASE 0xC0000000
-#define HYPERSPACE_BASE 0xC0400000
-#define HYPERSPACE_PAE_BASE 0xC0800000
-#define APIC_BASE 0xFEC00000
-#define KPCR_BASE 0xFF000000
-
-#define LowMemPageTableIndex 0
-#define StartupPageTableIndex (STARTUP_BASE >> 22)
-#define HyperspacePageTableIndex (HYPERSPACE_BASE >> 22)
-#define KpcrPageTableIndex (KPCR_BASE >> 22)
-#define ApicPageTableIndex (APIC_BASE >> 22)
-
-#define BAT_GRANULARITY (64 * 1024)
-#define KernelMemorySize (8 * 1024 * 1024)
-#define XROUNDUP(x,n) ((((ULONG)x) + ((n) - 1)) & (~((n) - 1)))
-
-#define TAG_MBOOT 'oobM'
-
-char reactos_module_strings[64][256]; // Array to hold module names
-
-/* Load Address of Next Module */
-ULONG_PTR NextModuleBase = 0;
-
-/* Currently Opened Module */
-PLOADER_MODULE CurrentModule = NULL;
-
-/* Unrelocated Kernel Base in Virtual Memory */
-ULONG_PTR KernelBase;
-
-/* Wether PAE is to be used or not */
-BOOLEAN PaeModeEnabled;
-
-/* Kernel Entrypoint in Physical Memory */
-ULONG_PTR KernelEntryPoint;
-
-/* Dummy to bring in memmove */
-PVOID memmove_dummy = memmove;
-
-PLOADER_MODULE
-NTAPI
-LdrGetModuleObject(PCHAR ModuleName);
-
-NTSTATUS
-NTAPI
-LdrPEFixupImports(IN PVOID DllBase,
- IN PCHAR DllName);
-
-VOID PpcInitializeMmu(int max);
-
-/* FUNCTIONS *****************************************************************/
-
-/*++
- * FrLdrStartup
- * INTERNAL
- *
- * Prepares the system for loading the Kernel.
- *
- * Params:
- * Magic - Multiboot Magic
- *
- * Returns:
- * None.
- *
- * Remarks:
- * None.
- *
- *--*/
-
-typedef void (*KernelEntryFn)( void * );
-
-int MmuPageMiss(int trapCode, ppc_trap_frame_t *trap)
-{
- int i;
- printf("TRAP %x\n", trapCode);
- for( i = 0; i < 40; i++ )
- printf("r[%d] %x\n", i, trap->gpr[i]);
- printf("HALT!\n");
- while(1);
-}
-
-typedef struct _ppc_map_set_t {
- int mapsize;
- int usecount;
- ppc_map_info_t *info;
-} ppc_map_set_t;
-
-extern int mmu_handle;
-paddr_t MmuTranslate(paddr_t possibly_virtual)
-{
- if (ofproxy)
- {
- /* Openfirmware takes liberties with boot-time memory.
- * if you're in a unitary kernel, it's not as difficult, but since
- * we rely on loading things into virtual space from here, we need
- * to detect the mappings so far.
- */
- int args[2];
- args[0] = possibly_virtual;
- args[1] = 1; /* Marker to tell we want a physical addr */
- return (paddr_t)ofw_callmethod_ret("translate", mmu_handle, 2, args, 3);
- }
- else
- {
- /* Other booters don't remap ram */
- return possibly_virtual;
- }
-}
-
-VOID
-NTAPI
-FrLdrAddPageMapping(ppc_map_set_t *set, int proc, paddr_t phys, vaddr_t virt)
-{
- int j;
- paddr_t page = ROUND_DOWN(phys, (1<usecount; j++ )
- {
- if(set->info[j].addr == page) return;
- }
-
- if (!set->mapsize)
- {
- set->mapsize = 0x80;
- set->info = MmAllocateMemory(0x80 * sizeof(*set->info));
- }
- else if (set->mapsize <= set->usecount)
- {
- ppc_map_info_t *newinfo = MmAllocateMemory(set->mapsize * 2 * sizeof(*set->info));
- memcpy(newinfo, set->info, set->mapsize * sizeof(*set->info));
- MmFreeMemory(set->info);
- set->info = newinfo;
- set->mapsize *= 2;
- }
-
- set->info[set->usecount].flags = MMU_ALL_RW;
- set->info[set->usecount].proc = proc;
- set->info[set->usecount].addr = virt;
- set->info[set->usecount].phys = page;
- set->usecount++;
-}
-
-extern int _start[], _end[];
-
-VOID
-NTAPI
-FrLdrStartup(ULONG Magic)
-{
- ULONG_PTR i, tmp, OldModCount = 0;
- PCHAR ModHeader;
- CHAR ModulesTreated[64] = { 0 };
- ULONG NumberOfEntries = 0, UsedEntries = 0;
- PPAGE_LOOKUP_TABLE_ITEM FreeLdrMap = MmGetMemoryMap(&NumberOfEntries);
- ppc_map_set_t memmap = { };
-
- printf("FrLdrStartup\n");
-
- /* Disable EE */
- __asm__("mfmsr %0" : "=r" (tmp));
- tmp &= 0x7fff;
- __asm__("mtmsr %0" : : "r" (tmp));
-
- while(OldModCount != LoaderBlock.ModsCount)
- {
- printf("Added %d modules last pass\n",
- LoaderBlock.ModsCount - OldModCount);
-
- OldModCount = LoaderBlock.ModsCount;
-
- for(i = 0; i < LoaderBlock.ModsCount; i++)
- {
- if (!ModulesTreated[i])
- {
- ModulesTreated[i] = 1;
- ModHeader = ((PCHAR)reactos_modules[i].ModStart);
- if(ModHeader[0] == 'M' && ModHeader[1] == 'Z')
- LdrPEFixupImports
- ((PVOID)reactos_modules[i].ModStart,
- (PCHAR)reactos_modules[i].String);
- }
- }
- }
-
- printf("Starting mmu\n");
-
- PpcInitializeMmu(0);
-
- printf("Allocating vsid 0 (kernel)\n");
- MmuAllocVsid(0, 0xff00);
-
- /* We'll use vsid 1 for freeldr (expendable) */
- printf("Allocating vsid 1 (freeldr)\n");
- MmuAllocVsid(1, 0xff);
-
- printf("Mapping Freeldr Code (%x-%x)\n", _start, _end);
-
- /* Map memory zones */
- /* Freeldr itself */
- for( i = (int)_start;
- i < (int)_end;
- i += (1<= (ULONG)KernelMemory &&
- tmp < (ULONG)KernelMemory + KernelMemorySize) {
- FrLdrAddPageMapping(&memmap, 0, tmp, KernelBase + tmp - (ULONG)KernelMemory);
- } else {
- FrLdrAddPageMapping(&memmap, 1, tmp, 0);
- }
- }
- }
-
- MmuMapPage(memmap.info, memmap.usecount);
-
- printf("Finished Mapping the Freeldr Heap (used %d pages)\n", UsedEntries);
-
- printf("Setting initial segments\n");
- MmuSetVsid(0, 8, 1);
- MmuSetVsid(8, 16, 0);
-
- printf("Segments set!\n");
-
- MmuTurnOn((KernelEntryFn)KernelEntryPoint, &LoaderBlock);
-
- /* Nothing more */
- while(1);
-}
-
-/*++
- * FrLdrSetupPae
- * INTERNAL
- *
- * Configures PAE on a MP System, and sets the PDBR if it's supported, or if
- * the system is UP.
- *
- * Params:
- * Magic - Multiboot Magic
- *
- * Returns:
- * None.
- *
- * Remarks:
- * None.
- *
- *--*/
-VOID
-FASTCALL
-FrLdrSetupPae(ULONG Magic)
-{
-}
-
-/*++
- * FrLdrGetKernelBase
- * INTERNAL
- *
- * Gets the Kernel Base to use.
- *
- * Params:
- *
- * Returns:
- * None.
- *
- * Remarks:
- * Sets both the FreeLdr internal variable as well as the one which
- * will be used by the Kernel.
- *
- *--*/
-VOID
-FASTCALL
-FrLdrGetKernelBase(VOID)
-{
- PCHAR p;
-
- /* Default kernel base at 2GB */
- KernelBase = 0x80800000;
-
- /* Set KernelBase */
- LoaderBlock.KernelBase = 0x80000000;
-
- /* Read Command Line */
- p = (PCHAR)LoaderBlock.CommandLine;
- while ((p = strchr(p, '/')) != NULL) {
-
- /* Find "/3GB" */
- if (!_strnicmp(p + 1, "3GB", 3)) {
-
- /* Make sure there's nothing following it */
- if (p[4] == ' ' || p[4] == 0) {
-
- /* Use 3GB */
- KernelBase = 0xE0000000;
- LoaderBlock.KernelBase = 0xC0000000;
- }
- }
-
- p++;
- }
-}
-
-/*++
- * FrLdrGetPaeMode
- * INTERNAL
- *
- * Determines whether PAE mode shoudl be enabled or not.
- *
- * Params:
- * None.
- *
- * Returns:
- * None.
- *
- * Remarks:
- * None.
- *
- *--*/
-VOID
-FASTCALL
-FrLdrGetPaeMode(VOID)
-{
-}
-
-/*++
- * FrLdrSetupPageDirectory
- * INTERNAL
- *
- * Sets up the ReactOS Startup Page Directory.
- *
- * Params:
- * None.
- *
- * Returns:
- * None.
- *
- * Remarks:
- * We are setting PDEs, but using the equvivalent (for our purpose) PTE structure.
- * As such, please note that PageFrameNumber == PageEntryNumber.
- *
- *--*/
-VOID
-FASTCALL
-FrLdrSetupPageDirectory(VOID)
-{
-}
-
-/*++
- * FrLdrMapModule
- * INTERNAL
- *
- * Loads the indicated elf image as PE. The target will appear to be
- * a PE image whose ImageBase has ever been KernelAddr.
- *
- * Params:
- * Image -- File to load
- * ImageName -- Name of image for the modules list
- * MemLoadAddr -- Freeldr address of module
- * KernelAddr -- Kernel address of module
- *--*/
-#define ELF_SECTION(n) ((Elf32_Shdr*)(sptr + (n * shsize)))
-#define COFF_FIRST_SECTION(h) ((PIMAGE_SECTION_HEADER) ((DWORD)h+FIELD_OFFSET(IMAGE_NT_HEADERS,OptionalHeader)+(SWAPW(((PIMAGE_NT_HEADERS)(h))->FileHeader.SizeOfOptionalHeader))))
-
-BOOLEAN
-NTAPI
-FrLdrMapModule(FILE *KernelImage, PCHAR ImageName, PCHAR MemLoadAddr, ULONG KernelAddr)
-{
- PIMAGE_DOS_HEADER ImageHeader = 0;
- PIMAGE_NT_HEADERS NtHeader = 0;
- PIMAGE_SECTION_HEADER Section;
- ULONG SectionCount;
- ULONG ImageSize;
- INT i, j;
- PLOADER_MODULE ModuleData;
- //int phsize, phnum;
- int shsize, shnum, relsize, SectionAddr = 0;
- PCHAR sptr;
- Elf32_Ehdr ehdr;
- Elf32_Shdr *shdr;
- LPSTR TempName;
-
- TempName = strrchr(ImageName, '\\');
- if(TempName) TempName++; else TempName = (LPSTR)ImageName;
- ModuleData = LdrGetModuleObject(TempName);
-
- if(ModuleData)
- {
- return TRUE;
- }
-
- if(!KernelAddr)
- KernelAddr = (ULONG)NextModuleBase - (ULONG)KernelMemory + KernelBase;
- if(!MemLoadAddr)
- MemLoadAddr = (PCHAR)NextModuleBase;
-
- ModuleData = &reactos_modules[LoaderBlock.ModsCount];
- //printf("Loading file (elf at %x)\n", KernelAddr);
-
- /* Load the first 1024 bytes of the kernel image so we can read the PE header */
- if (!FsReadFile(KernelImage, sizeof(ehdr), NULL, &ehdr)) {
-
- /* Fail if we couldn't read */
- printf("Couldn't read the elf header\n");
- return FALSE;
- }
-
- /* Start by getting elf headers */
- //phsize = ehdr.e_phentsize;
- //phnum = ehdr.e_phnum;
- shsize = ehdr.e_shentsize;
- shnum = ehdr.e_shnum;
- sptr = (PCHAR)FrLdrTempAlloc(shnum * shsize, TAG_MBOOT);
-
- /* Read section headers */
- FsSetFilePointer(KernelImage, ehdr.e_shoff);
- FsReadFile(KernelImage, shsize * shnum, NULL, sptr);
-
- /* Now we'll get the PE Header */
- for( i = 0; i < shnum; i++ )
- {
- shdr = ELF_SECTION(i);
- shdr->sh_addr = 0;
-
- /* Find the PE Header */
- if (shdr->sh_type == TYPE_PEHEADER)
- {
- FsSetFilePointer(KernelImage, shdr->sh_offset);
- FsReadFile(KernelImage, shdr->sh_size, NULL, MemLoadAddr);
- ImageHeader = (PIMAGE_DOS_HEADER)MemLoadAddr;
- NtHeader = (PIMAGE_NT_HEADERS)((PCHAR)MemLoadAddr + SWAPD(ImageHeader->e_lfanew));
-#if 0
- printf("NtHeader at %x\n", SWAPD(ImageHeader->e_lfanew));
- printf("SectionAlignment %x\n",
- SWAPD(NtHeader->OptionalHeader.SectionAlignment));
- SectionAddr = ROUND_UP
- (shdr->sh_size, SWAPD(NtHeader->OptionalHeader.SectionAlignment));
- printf("Header ends at %x\n", SectionAddr);
-#endif
- break;
- }
- }
-
- if(i == shnum)
- {
- printf("No peheader section encountered :-(\n");
- return 0;
- }
-#if 0
- else
- {
- printf("DOS SIG: %s\n", (PCHAR)MemLoadAddr);
- }
-#endif
-
- /* Save the Image Base */
- NtHeader->OptionalHeader.ImageBase = SWAPD(KernelAddr);
-
- /* Load the file image */
- Section = COFF_FIRST_SECTION(NtHeader);
- SectionCount = SWAPW(NtHeader->FileHeader.NumberOfSections);
-
- /* Walk each section */
- for (i=0; i < SectionCount; i++, Section++)
- {
- shdr = ELF_SECTION((SWAPD(Section->PointerToRawData)+1));
-
- shdr->sh_addr = SectionAddr = SWAPD(Section->VirtualAddress);
- shdr->sh_addr += KernelAddr;
-
- Section->PointerToRawData = SWAPD((Section->VirtualAddress - KernelAddr));
-
- if (shdr->sh_type != SHT_NOBITS)
- {
- /* Content area */
- printf("Loading section %d at %x (real: %x:%d)\n", i, KernelAddr + SectionAddr, MemLoadAddr+SectionAddr, shdr->sh_size);
- FsSetFilePointer(KernelImage, shdr->sh_offset);
- FsReadFile(KernelImage, shdr->sh_size, NULL, MemLoadAddr + SectionAddr);
- }
- else
- {
- /* Zero it out */
- printf("BSS section %d at %x\n", i, KernelAddr + SectionAddr);
- memset(MemLoadAddr + SectionAddr, 0,
- ROUND_UP(shdr->sh_size,
- SWAPD(NtHeader->OptionalHeader.SectionAlignment)));
- }
- }
-
- ImageSize = SWAPD(NtHeader->OptionalHeader.SizeOfImage);
- printf("Total image size is %x\n", ImageSize);
-
- /* Handle relocation sections */
- for (i = 0; i < shnum; i++) {
- Elf32_Rela reloc = { };
- ULONG *Target32;
- USHORT *Target16;
- int numreloc, relstart, targetSection;
- Elf32_Sym symbol;
- PCHAR RelocSection, SymbolSection;
-
- shdr = ELF_SECTION(i);
- /* Only relocs here */
- if((shdr->sh_type != SHT_REL) &&
- (shdr->sh_type != SHT_RELA)) continue;
-
- relstart = shdr->sh_offset;
- relsize = shdr->sh_type == SHT_RELA ? 12 : 8;
- numreloc = shdr->sh_size / relsize;
- targetSection = shdr->sh_info;
-
- if (!ELF_SECTION(targetSection)->sh_addr) continue;
-
- RelocSection = FrLdrTempAlloc(shdr->sh_size, TAG_MBOOT);
- FsSetFilePointer(KernelImage, relstart);
- FsReadFile(KernelImage, shdr->sh_size, NULL, RelocSection);
-
- /* Get the symbol section */
- shdr = ELF_SECTION(shdr->sh_link);
-
- SymbolSection = FrLdrTempAlloc(shdr->sh_size, TAG_MBOOT);
- FsSetFilePointer(KernelImage, shdr->sh_offset);
- FsReadFile(KernelImage, shdr->sh_size, NULL, SymbolSection);
-
- for(j = 0; j < numreloc; j++)
- {
- ULONG S,A,P;
-
- /* Get the reloc */
- memcpy(&reloc, RelocSection + (j * relsize), sizeof(reloc));
-
- /* Get the symbol */
- memcpy(&symbol, SymbolSection + (ELF32_R_SYM(reloc.r_info) * sizeof(symbol)), sizeof(symbol));
-
- /* Compute addends */
- S = symbol.st_value + ELF_SECTION(symbol.st_shndx)->sh_addr;
- A = reloc.r_addend;
- P = reloc.r_offset + ELF_SECTION(targetSection)->sh_addr;
-
-#if 0
- printf("Symbol[%d] %d -> %d(%x:%x) -> %x(+%x)@%x\n",
- ELF32_R_TYPE(reloc.r_info),
- ELF32_R_SYM(reloc.r_info),
- symbol.st_shndx,
- ELF_SECTION(symbol.st_shndx)->sh_addr,
- symbol.st_value,
- S,
- A,
- P);
-#endif
-
- Target32 = (ULONG*)(((PCHAR)MemLoadAddr) + (P - KernelAddr));
- Target16 = (USHORT *)Target32;
-
- switch (ELF32_R_TYPE(reloc.r_info))
- {
- case R_PPC_NONE:
- break;
- case R_PPC_ADDR32:
- *Target32 = S + A;
- break;
- case R_PPC_REL32:
- *Target32 = S + A - P;
- break;
- case R_PPC_UADDR32: /* Special: Treat as RVA */
- *Target32 = S + A - KernelAddr;
- break;
- case R_PPC_ADDR24:
- *Target32 = (ADDR24_MASK & (S+A)) | (*Target32 & ~ADDR24_MASK);
- break;
- case R_PPC_REL24:
- *Target32 = (ADDR24_MASK & (S+A-P)) | (*Target32 & ~ADDR24_MASK);
- break;
- case R_PPC_ADDR16_LO:
- *Target16 = S + A;
- break;
- case R_PPC_ADDR16_HA:
- *Target16 = (S + A + 0x8000) >> 16;
- break;
- default:
- break;
- }
-
-#if 0
- printf("reloc[%d:%x]: (type %x sym %d val %d) off %x add %x (old %x new %x)\n",
- j,
- ((ULONG)Target32) - ((ULONG)MemLoadAddr),
- ELF32_R_TYPE(reloc.r_info),
- ELF32_R_SYM(reloc.r_info),
- symbol.st_value,
- reloc.r_offset, reloc.r_addend,
- x, *Target32);
-#endif
- }
-
- FrLdrTempFree(SymbolSection, TAG_MBOOT);
- FrLdrTempFree(RelocSection, TAG_MBOOT);
- }
-
- FrLdrTempFree(sptr, TAG_MBOOT);
-
- ModuleData->ModStart = (ULONG)MemLoadAddr;
- /* Increase the next Load Base */
- NextModuleBase = ROUND_UP((ULONG)MemLoadAddr + ImageSize, PAGE_SIZE);
- ModuleData->ModEnd = NextModuleBase;
- ModuleData->String = (ULONG)MmAllocateMemory(strlen(ImageName)+1);
- strcpy((PCHAR)ModuleData->String, ImageName);
- printf("Module %s (%x-%x) next at %x\n",
- ModuleData->String,
- ModuleData->ModStart,
- ModuleData->ModEnd,
- NextModuleBase);
- LoaderBlock.ModsCount++;
-
- /* Return Success */
- return TRUE;
-}
-
-/*++
- * FrLdrMapKernel
- * INTERNAL
- *
- * Maps the Kernel into memory, does PE Section Mapping, initializes the
- * uninitialized data sections, and relocates the image.
- *
- * Params:
- * KernelImage - FILE Structure representing the ntoskrnl image file.
- *
- * Returns:
- * TRUE if the Kernel was mapped.
- *
- * Remarks:
- * None.
- *
- *--*/
-BOOLEAN
-NTAPI
-FrLdrMapKernel(FILE *KernelImage)
-{
- /* Get Kernel Base */
- FrLdrGetKernelBase();
-
- /* Allocate kernel memory */
- KernelMemory = MmAllocateMemory(KernelMemorySize);
-
- return FrLdrMapModule(KernelImage, "ntoskrnl.exe", KernelMemory, KernelBase);
-}
-
-ULONG_PTR
-NTAPI
-FrLdrLoadModule(FILE *ModuleImage,
- LPCSTR ModuleName,
- PULONG ModuleSize)
-{
- ULONG LocalModuleSize;
- ULONG_PTR ThisModuleBase = NextModuleBase;
- PLOADER_MODULE ModuleData;
- LPSTR NameBuffer;
- LPSTR TempName;
-
- /* Get current module data structure and module name string array */
- ModuleData = &reactos_modules[LoaderBlock.ModsCount];
-
- /* Get only the Module Name */
- do {
-
- TempName = strchr(ModuleName, '\\');
-
- if(TempName) {
- ModuleName = TempName + 1;
- }
-
- } while(TempName);
- NameBuffer = reactos_module_strings[LoaderBlock.ModsCount];
-
-
- /* Get Module Size */
- LocalModuleSize = FsGetFileSize(ModuleImage);
-
- /* Fill out Module Data Structure */
- ModuleData->ModStart = NextModuleBase;
- ModuleData->ModEnd = NextModuleBase + LocalModuleSize;
-
- /* Save name */
- strcpy(NameBuffer, ModuleName);
- ModuleData->String = (ULONG_PTR)NameBuffer;
-
- /* Load the file image */
- FsReadFile(ModuleImage, LocalModuleSize, NULL, (PVOID)NextModuleBase);
-
- /* Move to next memory block and increase Module Count */
- NextModuleBase = ROUND_UP(ModuleData->ModEnd, PAGE_SIZE);
- LoaderBlock.ModsCount++;
-
- /* Return Module Size if required */
- if (ModuleSize != NULL) {
- *ModuleSize = LocalModuleSize;
- }
-
- printf("Module %s (%x-%x) next at %x\n",
- ModuleData->String,
- ModuleData->ModStart,
- ModuleData->ModEnd,
- NextModuleBase);
-
- return ThisModuleBase;
-}
-
-PVOID
-NTAPI
-FrLdrMapImage(IN FILE *Image, IN PCHAR ShortName, IN ULONG ImageType)
-{
- PVOID Result = NULL;
-
- printf("Loading image %s (type %d)\n", ShortName, ImageType);
-
- if (ImageType == 1)
- {
- if(FrLdrMapKernel(Image))
- Result = (PVOID)KernelMemory;
- }
- else
- {
- PVOID ModuleBase = (PVOID)NextModuleBase;
-
- if(FrLdrMapModule(Image, ShortName, 0, 0))
- Result = ModuleBase;
- }
- return Result;
-}
-
-ULONG_PTR
-NTAPI
-FrLdrCreateModule(LPCSTR ModuleName)
-{
- PLOADER_MODULE ModuleData;
- LPSTR NameBuffer;
-
- /* Get current module data structure and module name string array */
- ModuleData = &reactos_modules[LoaderBlock.ModsCount];
- NameBuffer = reactos_module_strings[LoaderBlock.ModsCount];
-
- /* Set up the structure */
- ModuleData->ModStart = NextModuleBase;
- ModuleData->ModEnd = -1;
-
- /* Copy the name */
- strcpy(NameBuffer, ModuleName);
- ModuleData->String = (ULONG_PTR)NameBuffer;
-
- /* Set the current Module */
- CurrentModule = ModuleData;
-
- /* Return Module Base Address */
- return(ModuleData->ModStart);
-}
-
-BOOLEAN
-NTAPI
-FrLdrCloseModule(ULONG_PTR ModuleBase,
- ULONG ModuleSize)
-{
- PLOADER_MODULE ModuleData = CurrentModule;
-
- /* Make sure a module is opened */
- if (ModuleData) {
-
- /* Make sure this is the right module and that it hasn't been closed */
- if ((ModuleBase == ModuleData->ModStart) && (ModuleData->ModEnd == MAXULONG_PTR)) {
-
- /* Close the Module */
- ModuleData->ModEnd = ModuleData->ModStart + ModuleSize;
-
- /* Set the next Module Base and increase the number of modules */
- NextModuleBase = ROUND_UP(ModuleData->ModEnd, PAGE_SIZE);
- LoaderBlock.ModsCount++;
-
- /* Close the currently opened module */
- CurrentModule = NULL;
-
- /* Success */
- return(TRUE);
- }
- }
-
- /* Failure path */
- return(FALSE);
-}
diff --git a/boot/freeldr/freeldr/arch/powerpc/mmu.c b/boot/freeldr/freeldr/arch/powerpc/mmu.c
deleted file mode 100644
index e195eaea..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/mmu.c
+++ /dev/null
@@ -1,399 +0,0 @@
-#include
-#include "ppcmmu/mmu.h"
-
-inline int GetMSR() {
- register int res asm ("r3");
- __asm__("mfmsr 3");
- return res;
-}
-
-inline int GetDEC() {
- register int res asm ("r3");
- __asm__("mfdec 3");
- return res;
-}
-
-__asm__("\t.globl GetPhys\n"
- "GetPhys:\t\n"
- "mflr 0\n\t"
- "stwu 0,-16(1)\n\t"
- "mfmsr 5\n\t"
- "andi. 6,5,0xffef\n\t"/* turn off MSR[DR] */
- "mtmsr 6\n\t"
- "isync\n\t"
- "sync\n\t"
- "lwz 3,0(3)\n\t" /* Get actual value at phys addr r3 */
- "mtmsr 5\n\t"
- "isync\n\t"
- "sync\n\t"
- "lwz 0,0(1)\n\t"
- "addi 1,1,16\n\t"
- "mtlr 0\n\t"
- "blr"
- );
-
-__asm__("\t.globl GetPhysHalf\n"
- "GetPhysHalf:\t\n"
- "mflr 0\n\t"
- "stwu 0,-16(1)\n\t"
- "mfmsr 5\n\t"
- "andi. 6,5,0xffef\n\t"/* turn off MSR[DR] */
- "mtmsr 6\n\t"
- "isync\n\t"
- "sync\n\t"
- "lhz 3,0(3)\n\t" /* Get actual value at phys addr r3 */
- "mtmsr 5\n\t"
- "isync\n\t"
- "sync\n\t"
- "lwz 0,0(1)\n\t"
- "addi 1,1,16\n\t"
- "mtlr 0\n\t"
- "blr"
- );
-
-__asm__("\t.globl GetPhysByte\n"
- "GetPhysByte:\t\n"
- "mflr 0\n\t"
- "stwu 0,-16(1)\n\t"
- "mfmsr 5\n\t"
- "andi. 6,5,0xffef\n\t"/* turn off MSR[DR] */
- "mtmsr 6\n\t"
- "isync\n\t"
- "sync\n\t"
- "lbz 3,0(3)\n\t" /* Get actual value at phys addr r3 */
- "mtmsr 5\n\t"
- "isync\n\t"
- "sync\n\t"
- "lwz 0,0(1)\n\t"
- "addi 1,1,16\n\t"
- "mtlr 0\n\t"
- "blr"
- );
-
-__asm__("\t.globl SetPhys\n"
- "SetPhys:\t\n"
- "mflr 0\n\t"
- "stwu 0,-16(1)\n\t"
- "mfmsr 5\n\t"
- "andi. 6,5,0xffef\n\t"/* turn off MSR[DR] */
- "mtmsr 6\n\t"
- "sync\n\t"
- "eieio\n\t"
- "stw 4,0(3)\n\t" /* Set actual value at phys addr r3 */
- "dcbst 0,3\n\t"
- "mtmsr 5\n\t"
- "sync\n\t"
- "eieio\n\t"
- "mr 3,4\n\t"
- "lwz 0,0(1)\n\t"
- "addi 1,1,16\n\t"
- "mtlr 0\n\t"
- "blr"
- );
-
-__asm__("\t.globl SetPhysHalf\n"
- "SetPhysHalf:\t\n"
- "mflr 0\n\t"
- "stwu 0,-16(1)\n\t"
- "mfmsr 5\n\t"
- "andi. 6,5,0xffef\n\t"/* turn off MSR[DR] */
- "mtmsr 6\n\t"
- "sync\n\t"
- "eieio\n\t"
- "sth 4,0(3)\n\t" /* Set actual value at phys addr r3 */
- "dcbst 0,3\n\t"
- "mtmsr 5\n\t"
- "sync\n\t"
- "eieio\n\t"
- "mr 3,4\n\t"
- "lwz 0,0(1)\n\t"
- "addi 1,1,16\n\t"
- "mtlr 0\n\t"
- "blr"
- );
-
-__asm__("\t.globl SetPhysByte\n"
- "SetPhysByte:\t\n"
- "mflr 0\n\t"
- "stwu 0,-16(1)\n\t"
- "mfmsr 5\n\t"
- "andi. 6,5,0xffef\n\t"/* turn off MSR[DR] */
- "mtmsr 6\n\t"
- "sync\n\t"
- "eieio\n\t"
- "stb 4,0(3)\n\t" /* Set actual value at phys addr r3 */
- "dcbst 0,3\n\t"
- "mtmsr 5\n\t"
- "sync\n\t"
- "eieio\n\t"
- "mr 3,4\n\t"
- "lwz 0,0(1)\n\t"
- "addi 1,1,16\n\t"
- "mtlr 0\n\t"
- "blr"
- );
-
-inline int GetSR(int n) {
- register int res asm ("r3");
- switch( n ) {
- case 0:
- __asm__("mfsr 3,0");
- break;
- case 1:
- __asm__("mfsr 3,1");
- break;
- case 2:
- __asm__("mfsr 3,2");
- break;
- case 3:
- __asm__("mfsr 3,3");
- break;
- case 4:
- __asm__("mfsr 3,4");
- break;
- case 5:
- __asm__("mfsr 3,5");
- break;
- case 6:
- __asm__("mfsr 3,6");
- break;
- case 7:
- __asm__("mfsr 3,7");
- break;
- case 8:
- __asm__("mfsr 3,8");
- break;
- case 9:
- __asm__("mfsr 3,9");
- break;
- case 10:
- __asm__("mfsr 3,10");
- break;
- case 11:
- __asm__("mfsr 3,11");
- break;
- case 12:
- __asm__("mfsr 3,12");
- break;
- case 13:
- __asm__("mfsr 3,13");
- break;
- case 14:
- __asm__("mfsr 3,14");
- break;
- case 15:
- __asm__("mfsr 3,15");
- break;
- }
- return res;
-}
-
-inline void GetBat( int bat, int inst, int *batHi, int *batLo ) {
- register int bh asm("r3"), bl asm("r4");
- if( inst ) {
- switch( bat ) {
- case 0:
- __asm__("mfibatu 3,0");
- __asm__("mfibatl 4,0");
- break;
- case 1:
- __asm__("mfibatu 3,1");
- __asm__("mfibatl 4,1");
- break;
- case 2:
- __asm__("mfibatu 3,2");
- __asm__("mfibatl 4,2");
- break;
- case 3:
- __asm__("mfibatu 3,3");
- __asm__("mfibatl 4,3");
- break;
- }
- } else {
- switch( bat ) {
- case 0:
- __asm__("mfdbatu 3,0");
- __asm__("mfdbatl 4,0");
- break;
- case 1:
- __asm__("mfdbatu 3,1");
- __asm__("mfdbatl 4,1");
- break;
- case 2:
- __asm__("mfdbatu 3,2");
- __asm__("mfdbatl 4,2");
- break;
- case 3:
- __asm__("mfdbatu 3,3");
- __asm__("mfdbatl 4,3");
- break;
- }
- }
- *batHi = bh;
- *batLo = bl;
-}
-
-inline void SetBat( int bat, int inst, int batHi, int batLo ) {
- register int bh asm("r3"), bl asm("r4");
- bh = batHi;
- bl = batLo;
- if( inst ) {
- switch( bat ) {
- case 0:
- __asm__("mtibatu 0,3");
- __asm__("mtibatl 0,4");
- break;
- case 1:
- __asm__("mtibatu 1,3");
- __asm__("mtibatl 1,4");
- break;
- case 2:
- __asm__("mtibatu 2,3");
- __asm__("mtibatl 2,4");
- break;
- case 3:
- __asm__("mtibatu 3,3");
- __asm__("mtibatl 3,4");
- break;
- }
- } else {
- switch( bat ) {
- case 0:
- __asm__("mtdbatu 0,3");
- __asm__("mtdbatl 0,4");
- break;
- case 1:
- __asm__("mtdbatu 1,3");
- __asm__("mtdbatl 1,4");
- break;
- case 2:
- __asm__("mtdbatu 2,3");
- __asm__("mtdbatl 2,4");
- break;
- case 3:
- __asm__("mtdbatu 3,3");
- __asm__("mtdbatl 3,4");
- break;
- }
- }
- __asm__("isync\n\tsync");
-}
-
-inline int GetSDR1() {
- register int res asm("r3");
- __asm__("mfsdr1 3");
- return res;
-}
-
-inline void SetSDR1( int sdr ) {
-#if 0
- int i,j;
-#endif
- __asm__("mtsdr1 3");
-#if 0
- __asm__("sync");
- __asm__("isync");
- __asm__("ptesync");
-
- for( i = 0; i < 256; i++ ) {
- j = i << 12;
- __asm__("tlbie %0,0" : : "r" (j));
- }
- __asm__("eieio");
- __asm__("tlbsync");
- __asm__("ptesync");
-#endif
-}
-
-inline int BatHit( int bath, int batl, int virt ) {
- int mask = 0xfffe0000 & ~((batl & 0x3f) << 17);
- return (batl & 0x40) && ((virt & mask) == (bath & mask));
-}
-
-inline int BatTranslate( int bath, int batl, int virt ) {
- return (virt & 0x007fffff) | (batl & 0xfffe0000);
-}
-
-/* translate address */
-int PpcVirt2phys( int virt, int inst ) {
- int msr = GetMSR();
- int txmask = inst ? 0x20 : 0x10;
- int i, bath, batl, sr, sdr1, physbase, valo;
- int hash, hashmask, ptehi, ptelo, ptegaddr;
- //int vahi, npteg;
- int vsid, pteh, ptevsid, pteapi;
-
- if( msr & txmask ) {
- sr = GetSR( virt >> 28 );
- vsid = sr & 0xfffffff;
- //vahi = vsid >> 4;
- valo = (vsid << 28) | (virt & 0xfffffff);
- if( sr & 0x80000000 ) {
- return valo;
- }
-
- for( i = 0; i < 4; i++ ) {
- GetBat( i, inst, &bath, &batl );
- if( BatHit( bath, batl, virt ) ) {
- return BatTranslate( bath, batl, virt );
- }
- }
-
- sdr1 = GetSDR1();
-
- physbase = sdr1 & ~0xffff;
- hashmask = ((sdr1 & 0x1ff) << 10) | 0x3ff;
- hash = (vsid & 0x7ffff) ^ ((valo >> 12) & 0xffff);
- //npteg = hashmask + 1;
-
- for( pteh = 0; pteh < 0x80; pteh += 64, hash ^= 0x7ffff ) {
- ptegaddr = ((hashmask & hash) * 64) + physbase;
-
- for( i = 0; i < 8; i++ ) {
- ptehi = GetPhys( ptegaddr + (i * 8) );
- ptelo = GetPhys( ptegaddr + (i * 8) + 4 );
-
- ptevsid = (ptehi >> 7) & 0xffffff;
- pteapi = ptehi & 0x3f;
-
- if( (ptehi & 64) != pteh ) continue;
- if( ptevsid != (vsid & 0xffffff) ) continue;
- if( pteapi != ((virt >> 22) & 0x3f) ) continue;
-
- return (ptelo & 0xfffff000) | (virt & 0xfff);
- }
- }
- return -1;
- } else {
- return virt;
- }
-}
-
-/* Add a new page table entry for the indicated mapping */
-BOOLEAN InsertPageEntry( int virt, int phys, int slot, int _sdr1 ) {
- int i, ptehi, ptelo;
- int sdr1 = _sdr1 ? _sdr1 : GetSDR1();
- int sr = GetSR( (virt >> 28) & 0xf );
- int vsid = sr & 0xfffffff;
- int physbase = sdr1 & ~0xffff;
- int hashmask = ((sdr1 & 0x1ff) << 10) | 0x3ff;
- int valo = (vsid << 28) | (virt & 0xfffffff);
- int hash = (vsid & 0x7ffff) ^ ((valo >> 12) & 0xffff);
- int ptegaddr = ((hashmask & hash) * 64) + physbase;
-
- for( i = 0; i < 8; i++ ) {
- ptehi = GetPhys( ptegaddr + (i * 8) );
-
- if( (slot != i) && (ptehi & 0x80000000) ) continue;
-
- ptehi = (1 << 31) | (vsid << 7) | ((virt >> 22) & 0x3f);
- ptelo = phys & ~0xfff;
-
- SetPhys( ptegaddr + (i * 8), ptehi );
- SetPhys( ptegaddr + (i * 8) + 4, ptelo );
-
- return TRUE;
- }
-
- return FALSE;
-}
diff --git a/boot/freeldr/freeldr/arch/powerpc/ofw_method.c b/boot/freeldr/freeldr/arch/powerpc/ofw_method.c
deleted file mode 100644
index 0a160b54..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/ofw_method.c
+++ /dev/null
@@ -1,26 +0,0 @@
-#include
-#include "of.h"
-
-typedef struct _ofw_method_call {
- const char *call_method;
- int nargs;
- int nrets;
- const char *method_name;
- int handle;
- int args_rets[8];
-} ofw_method_call;
-
-extern int (*ofw_call_addr)(void *argstruct);
-
-int ofw_callmethod_ret(const char *method, int handle, int nargs, int *args, int ret)
-{
- ofw_method_call callframe = { 0 };
- callframe.call_method = "call-method";
- callframe.nargs = nargs + 2;
- callframe.nrets = ret+1;
- callframe.method_name = method;
- callframe.handle = handle;
- memcpy(callframe.args_rets, args, sizeof(int)*nargs);
- ofw_call_addr(&callframe);
- return callframe.args_rets[nargs+ret];
-}
diff --git a/boot/freeldr/freeldr/arch/powerpc/ofw_util.s b/boot/freeldr/freeldr/arch/powerpc/ofw_util.s
deleted file mode 100644
index 1a214451..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/ofw_util.s
+++ /dev/null
@@ -1,48 +0,0 @@
- .section .text
- .globl ofw_functions
- .globl ofw_call_addr
- .globl call_ofw
-call_ofw:
- /* R3 has the function offset to call (n * 4)
- * Other arg registers are unchanged. */
- subi %r1,%r1,0x100
- stw %r8,24(%r1)
- mflr %r8
- stw %r8,0(%r1)
- stw %r3,4(%r1)
- stw %r4,8(%r1)
- stw %r5,12(%r1)
- stw %r6,16(%r1)
- stw %r7,20(%r1)
- stw %r9,28(%r1)
- stw %r10,32(%r1)
- stw %r20,36(%r1)
-
- lis %r10,ofw_functions@ha
- addi %r8,%r10,ofw_functions@l
- add %r8,%r3,%r8
- lwz %r9,0(%r8)
- mtctr %r9
-
- mr %r3,%r4
- mr %r4,%r5
- mr %r5,%r6
- mr %r6,%r7
- mr %r7,%r8
- mr %r8,%r9
-
- /* Call ofw proxy function */
- bctrl
-
- lwz %r8,0(%r1)
- mtlr %r8
- lwz %r4,8(%r1)
- lwz %r5,12(%r1)
- lwz %r6,16(%r1)
- lwz %r7,20(%r1)
- lwz %r8,24(%r1)
- lwz %r9,28(%r1)
- lwz %r10,32(%r1)
- lwz %r20,36(%r1)
- addi %r1,%r1,0x100
- blr
diff --git a/boot/freeldr/freeldr/arch/powerpc/prep.c b/boot/freeldr/freeldr/arch/powerpc/prep.c
deleted file mode 100644
index 713e6163..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/prep.c
+++ /dev/null
@@ -1,148 +0,0 @@
-#include "freeldr.h"
-#include "machine.h"
-#include "ppcmmu/mmu.h"
-#include "prep.h"
-
-int prep_serial = 0x800003f8;
-extern int mem_range_end;
-
-void sync() { __asm__("eieio\n\tsync"); }
-
-/* Simple serial */
-
-void PpcPrepPutChar( int ch ) {
- if( ch == 0x0a ) {
- SetPhysByte(prep_serial, 0x0d);
- sync();
- }
- SetPhysByte(prep_serial, ch);
- sync();
-}
-
-BOOLEAN PpcPrepDiskReadLogicalSectors
-( ULONG DriveNumber, ULONGLONG SectorNumber,
- ULONG SectorCount, PVOID Buffer ) {
- int secct;
-
- for(secct = 0; secct < SectorCount; secct++)
- {
- ide_seek(&ide1_desc, SectorNumber + secct, 0);
- ide_read(&ide1_desc, ((PCHAR)Buffer) + secct * 512, 512);
- }
- /* Never give up! */
- return TRUE;
-}
-
-BOOLEAN PpcPrepConsKbHit()
-{
- return 1;
- //return GetPhysByte(prep_serial+5) & 1;
-}
-
-int PpcPrepConsGetCh()
-{
- while(!PpcPrepConsKbHit());
- return GetPhysByte(prep_serial);
-}
-
-void PpcPrepVideoClearScreen(UCHAR Attr)
-{
- printf("\033c");
-}
-
-VIDEODISPLAYMODE PpcPrepVideoSetDisplayMode( char *DisplayMode, BOOLEAN Init )
-{
- return VideoTextMode;
-}
-
-void PpcPrepVideoGetDisplaySize( PULONG Width, PULONG Height, PULONG Depth )
-{
- *Width = 80;
- *Height = 25;
- *Depth = 16;
-}
-
-VOID PpcInitializeMmu(int max);
-
-ULONG PpcPrepGetMemoryMap( PBIOS_MEMORY_MAP BiosMemoryMap,
- ULONG MaxMemoryMapSize )
-{
- // Probe memory
- paddr_t physAddr;
- register int oldStore = 0, newStore = 0, change = 0, oldmsr;
-
- __asm__("mfmsr %0\n" : "=r" (oldmsr));
- change = oldmsr & 0x6fff;
- __asm__("mtmsr %0\n" : : "r" (change));
-
- // Find the last ram address in physical space ... this bypasses mapping
- // but could run into non-ram objects right above ram. Usually systems
- // aren't designed like that though.
- for (physAddr = 0x40000, change = newStore;
- (physAddr < 0x80000000) && (change == newStore);
- physAddr += 1 << 12)
- {
- oldStore = GetPhys(physAddr);
- newStore = (physAddr & 0x1000) ? 0x55aa55aa : 0xaa55aa55;
- SetPhys(physAddr, newStore);
- change = GetPhys(physAddr);
- SetPhys(physAddr, oldStore);
- }
- // Back off by one page
- physAddr -= 0x1000;
- BiosMemoryMap[0].BaseAddress = 0x30000; // End of ppcmmu
- BiosMemoryMap[0].Type = BiosMemoryUsable;
- BiosMemoryMap[0].Length = physAddr - BiosMemoryMap[0].BaseAddress;
-
- __asm__("mtmsr %0\n" : : "r" (oldmsr));
-
- mem_range_end = physAddr;
-
- printf("Actual RAM: %d Mb\n", physAddr >> 20);
- return 1;
-}
-
-/* Most PReP hardware is in standard locations, based on the corresponding
- * hardware on PCs. */
-PCONFIGURATION_COMPONENT_DATA PpcPrepHwDetect() {
- PCONFIGURATION_COMPONENT_DATA SystemKey;
-
- /* Create the 'System' key */
- FldrCreateSystemKey(&SystemKey);
-
- printf("DetectHardware() Done\n");
- return SystemKey;
-}
-
-VOID
-PpcPrepHwIdle(VOID)
-{
- /* UNIMPLEMENTED */
-}
-
-void PpcPrepInit()
-{
- MachVtbl.ConsPutChar = PpcPrepPutChar;
-
- printf("Serial on\n");
-
- ide_setup( &ide1_desc );
-
- MachVtbl.DiskReadLogicalSectors = PpcPrepDiskReadLogicalSectors;
-
- MachVtbl.ConsKbHit = PpcPrepConsKbHit;
- MachVtbl.ConsGetCh = PpcPrepConsGetCh;
-
- MachVtbl.VideoClearScreen = PpcPrepVideoClearScreen;
- MachVtbl.VideoSetDisplayMode = PpcPrepVideoSetDisplayMode;
- MachVtbl.VideoGetDisplaySize = PpcPrepVideoGetDisplaySize;
-
- MachVtbl.GetMemoryMap = PpcPrepGetMemoryMap;
- MachVtbl.HwDetect = PpcPrepHwDetect;
- MachVtbl.HwIdle = PcPrepHwIdle;
-
- printf( "FreeLDR version [%s]\n", GetFreeLoaderVersionString() );
-
- BootMain( "" );
-}
-
diff --git a/boot/freeldr/freeldr/arch/powerpc/prep.h b/boot/freeldr/freeldr/arch/powerpc/prep.h
deleted file mode 100644
index c539b88b..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/prep.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#pragma once
-
-extern struct _pci_desc pci1_desc;
-extern struct _idectl_desc ide1_desc;
-extern struct _vga_desc vga1_desc;
-struct _pci_bar {
- unsigned long data;
-};
-
-void sync( void );
-void PpcPrepInit( void );
-void ide_seek( void *extension, int low, int high );
-int ide_read( void *extension, char *buffer, int bytes );
-void ide_setup( void *extension );
-
-void print_bar( struct _pci_bar *bar );
-void pci_setup
-( PCONFIGURATION_COMPONENT_DATA pci_bus,
- struct _pci_desc *pci_desc );
-void pci_read_bar
-( struct _pci_desc *pci_desc,
- int bus, int dev, int fn, int bar,
- struct _pci_bar *bar_data );
-
-void vga_setup
-( PCONFIGURATION_COMPONENT_DATA pci_bus,
- struct _pci_desc *pci_desc, struct _vga_desc *vga_desc,
- int bus, int dev, int fn );
diff --git a/boot/freeldr/freeldr/arch/powerpc/prep_ide.c b/boot/freeldr/freeldr/arch/powerpc/prep_ide.c
deleted file mode 100644
index a96bf4d1..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/prep_ide.c
+++ /dev/null
@@ -1,106 +0,0 @@
-#include "freeldr.h"
-#include "machine.h"
-#include "ppcmmu/mmu.h"
-#include "prep.h"
-
-#define SWAP_W(x) ((((x) & 0xff) << 8) | (((x) >> 8) & 0xff))
-
-typedef struct _idectl_desc {
- int port;
- long long seekto;
- int seek_cylinder, seek_head, seek_sector;
- int cylinders, heads, sectors, bytespersec;
-} idectl_desc;
-
-idectl_desc ide1_desc = { 0x800001f0 };
-
-void ide_seek( void *extension, int low, int high ) {
- idectl_desc *desc = (idectl_desc *)extension;
- long long seekto = ((((long long)high) << 32) | (low & 0xffffffff));
- /* order = sector, head, cylinder */
- desc->seek_sector = seekto % desc->sectors;
- seekto /= desc->sectors;
- desc->seek_head = seekto % desc->heads;
- seekto /= desc->heads;
- desc->seek_cylinder = seekto;
- desc->seekto = seekto;
-}
-
-/* Thanks chuck moore. This is based on the color forth ide code */
-/* Wait for ready */
-void ide_rdy( void *extension ) {
- idectl_desc *desc = (idectl_desc *)extension;
- while( !(GetPhysByte(desc->port+7) & 0x40) ) sync();
-}
-
-void ide_drq( void *extension ) {
- idectl_desc *desc = (idectl_desc *)extension;
- while( !(GetPhysByte(desc->port+7) & 0x08) ) sync();
-}
-
-void ide_bsy( void *extension ) {
- idectl_desc *desc = (idectl_desc *)extension;
- while( GetPhysByte(desc->port+7) & 0x80 )
- {
- printf("Waiting for not busy\n");
- sync();
- }
-}
-
-int ide_read( void *extension, char *buffer, int bytes ) {
- idectl_desc *desc = (idectl_desc *)extension;
- short *databuf = (short *)buffer;
- int inwords;
-
- ide_bsy( extension );
- SetPhysByte(desc->port+2, bytes / desc->bytespersec);
- SetPhysByte(desc->port+3, desc->seek_sector + 1);
- SetPhysByte(desc->port+4, desc->seek_cylinder);
- SetPhysByte(desc->port+5, desc->seek_cylinder >> 8);
- SetPhysByte(desc->port+6, desc->seek_head | 0xa0);
- SetPhysByte(desc->port+7, 0x20);
-
- for( inwords = 0; inwords < desc->bytespersec / sizeof(short); inwords++ ) {
- databuf[inwords] = GetPhysHalf(desc->port);
- }
-
- desc->seekto += desc->bytespersec;
- ide_seek( extension, desc->seekto, desc->seekto >> 32 );
-
- return bytes - (bytes % desc->bytespersec);
-}
-
-void ide_setup( void *extension ) {
- idectl_desc *desc = (idectl_desc *)extension;
- short identbuffer[256];
- char namebuf[41];
- short *databuf = (short *)identbuffer, in;
- int inwords;
-
- ide_rdy( extension );
- ide_bsy( extension );
- desc->bytespersec = 512;
- SetPhysByte(desc->port+2, 1);
- SetPhysByte(desc->port+3, 0);
- SetPhysByte(desc->port+4, 0);
- SetPhysByte(desc->port+5, 0);
- SetPhysByte(desc->port+6, 0);
- SetPhysByte(desc->port+7, 0xec);
- ide_drq( extension );
-
- for( inwords = 0; inwords < desc->bytespersec / sizeof(short); inwords++ ) {
- in = GetPhysHalf(desc->port);
- databuf[inwords] = SWAP_W(in);
- sync();
- }
-
- desc->cylinders = identbuffer[1];
- desc->heads = identbuffer[3];
- desc->sectors = identbuffer[6];
-
- /* Debug: Write out hard disc model */
-
- strncpy(namebuf, (char *)(identbuffer+0x1b), 41);
- printf("HARD DISC MODEL: %s c,h,s %d,%d,%d\n",
- namebuf, desc->cylinders, desc->heads, desc->sectors);
-}
diff --git a/boot/freeldr/freeldr/arch/powerpc/prep_pci.c b/boot/freeldr/freeldr/arch/powerpc/prep_pci.c
deleted file mode 100644
index df92704e..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/prep_pci.c
+++ /dev/null
@@ -1,127 +0,0 @@
-#include
-#include "prep.h"
-
-typedef struct _pci_cfg {
- unsigned long addr;
- unsigned long data;
-} pci_cfg;
-
-typedef struct _pci_desc {
- pci_cfg *cfg;
-} pci_desc;
-
-pci_desc pci1_desc = { (void *)0x80000cf8 };
-#define rev16(x) ((((x)>>8)&0xff)|(((x)&0xff)<<8))
-#define rev32(x) ((((x)>>24)&0xff)|(((x)>>8)&0xff00)|(((x)&0xff00)<<8)|(((x)&0xff)<<24))
-#define pci_addr(bus,dev,fn,reg) \
- (0x80000000 | \
- ((bus & 0xff) << 16) | \
- ((dev & 0x1f) << 11) | \
- ((fn & 7) << 8) | \
- (reg & 0xfc))
-#if 0
-#define pci_cfg_addr(bus,dev,fn,reg) \
- ((bus == 0) ? \
- ((1 << (dev + 16)) | \
- (dev << 11) | \
- (fn << 8) | \
- ((reg & 0xfc) | 1)) : pci_addr(bus,dev,fn,reg))
-#else
-#define pci_cfg_addr(bus,dev,fn,reg) pci_addr(bus,dev,fn,reg)
-#endif
- unsigned long pci_read( pci_desc *desc, int bus, int dev, int fn, int reg, int len ) {
- sync();
- unsigned long save_state = desc->cfg->addr, ret = 0;
- unsigned long addr = pci_cfg_addr(bus,dev,fn,reg);
- unsigned long offset = reg & 3;
- desc->cfg->addr = rev32(addr);
- sync();
- switch( len ) {
- case 4:
- ret = desc->cfg->data;
- break;
- case 2:
- ret = desc->cfg->data;
- ret = (ret >> (offset << 3)) & 0xffff;
- break;
- case 1:
- ret = desc->cfg->data;
- ret = (ret >> (offset << 3)) & 0xff;
- break;
- }
- desc->cfg->addr = save_state;
- sync();
- return ret;
- }
-
-void pci_read_bar( pci_desc *desc, int bus, int dev, int fn, int bar,
- struct _pci_bar *bar_data ) {
- bar_data->data = pci_read( desc, bus, dev, fn, 0x10 + (bar * 4), 4 );
-}
-
-/*
- * Imagine: offset 3, len 1
- * let oldval = 0x12345678 and val = 0xabcd1234;
- * mask = ((1 << 8) - 1) << 24; // 0xff000000
- * oldval = (0x12345678 & 0x00ffffff) | (0xabcd1234 & 0xff000000) = 0xab345678;
- */
-void pci_write( pci_desc *desc, int bus, int dev, int fn, int reg, int len, int val ) {
- unsigned long save_state = desc->cfg->addr;
- unsigned long addr = pci_cfg_addr(bus,dev,fn,reg);
- unsigned long offset = reg & 3;
- unsigned long oldval = pci_read( desc, bus, dev, fn, reg & ~3, 4 );
- unsigned long mask = ((1 << (len * 8)) - 1) << (offset << 3);
- oldval = (oldval & ~mask) | ((val << (offset << 3)) & mask);
- desc->cfg->addr = rev32(addr);
- sync();
- desc->cfg->data = rev32(oldval);
- sync();
- desc->cfg->addr = save_state;
- sync();
-}
-
-void pci_write_bar( pci_desc *desc, int bus, int dev, int fn, int bar, struct _pci_bar *bar_data ) {
- pci_write( desc, bus, dev, fn, 0x10 + (bar * 4), 4, bar_data->data );
-}
-
-void print_bar( struct _pci_bar *bar ) {
- printf("BAR: %x\n", bar->data);
-}
-
-#define PCI_VENDORID 0
-#define PCI_DEVICEID 2
-#define PCI_HEADER_TYPE 0xe
-#define PCI_BASECLASS 0xb
-
-void pci_setup( PCONFIGURATION_COMPONENT_DATA pcibus, pci_desc *desc ) {
- unsigned char type;
- unsigned short vendor, device, devclass;
- int funcs, bus, dev, fn;
-
- pci1_desc.cfg = (pci_cfg *)0x80000cf8;
-
- printf("PCI Bus:\n");
- for( bus = 0; bus < 1; bus++ ) {
- for( dev = 0; dev < 32; dev++ ) {
- type = pci_read(desc,bus,dev,0,PCI_HEADER_TYPE,1);
- vendor = pci_read(desc,bus,dev,0,PCI_VENDORID,2);
- device = pci_read(desc,bus,dev,0,PCI_DEVICEID,2);
-
- if(vendor == 0 || vendor == 0xffff) continue;
- if(type & 0x80) funcs = 8; else funcs = 1;
-
- for( fn = 0; fn < funcs; fn++ ) {
- devclass = pci_read(desc,bus,dev,fn,PCI_BASECLASS,1);
- printf(" %d:%d -> vendor:device:class %x:%x:%x\n",
- bus, dev, vendor, device, devclass);
-
- if( devclass == 3 ) {
- printf("Setting up vga...\n");
- vga_setup(pcibus,desc,&vga1_desc,bus,dev,fn);
- printf("Done with vga\n");
- }
- }
- }
- }
- printf("^-- end PCI\n");
-}
diff --git a/boot/freeldr/freeldr/arch/powerpc/prep_vga.c b/boot/freeldr/freeldr/arch/powerpc/prep_vga.c
deleted file mode 100644
index ee8fdbbf..00000000
--- a/boot/freeldr/freeldr/arch/powerpc/prep_vga.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#include
-#include "prep.h"
-
-struct _vga_desc {
- char *port;
- char *addr;
-};
-
-#define VGA_WIDTH 1024
-#define VGA_HEIGHT 768
-struct _vga_desc vga1_desc = { (char *)0x800003c0 };
-
-void vga_setup( PCONFIGURATION_COMPONENT_DATA pcibus,
- struct _pci_desc *desc, struct _vga_desc *vga_desc,
- int bus, int dev, int fn ) {
- struct _pci_bar bar_data;
- int i;
-
- for( i = 0; i < 6; i++ ) {
- pci_read_bar( desc, bus, dev, fn, i, &bar_data );
- print_bar( &bar_data );
- if( (bar_data.data > 0x10000) || ((bar_data.data&1) == 1) ) {
- vga_desc->addr = (char *)(0xc0000000 + (bar_data.data & ~0x7ff));
-// BootInfo.dispDeviceBase = vga_desc->addr;
- break;
- }
- }
-}
diff --git a/sdk/include/asm/asm.inc b/sdk/include/asm/asm.inc
index 7b8e8317..5c591ca7 100644
--- a/sdk/include/asm/asm.inc
+++ b/sdk/include/asm/asm.inc
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS Kernel
+ * PROJECT: Kernel
* FILE: include/asm/asm.inc
* PURPOSE: ASM macros for GAS and MASM/ML64
* PROGRAMMERS: Timo Kreuzer (timo.kreuzer@reactos.org)
diff --git a/sdk/include/ddk/isvbop.inc b/sdk/include/ddk/isvbop.inc
index 7a13b4bc..2067ed73 100644
--- a/sdk/include/ddk/isvbop.inc
+++ b/sdk/include/ddk/isvbop.inc
@@ -3,7 +3,7 @@
*
* Windows NT Device Driver Kit
*
- * This file is part of the ReactOS DDK package.
+ * This file is part of the DDK package.
*
* Contributors:
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
diff --git a/sdk/include/psdk/common.ver b/sdk/include/psdk/common.ver
index 1b5cd9a1..d9731fd3 100644
--- a/sdk/include/psdk/common.ver
+++ b/sdk/include/psdk/common.ver
@@ -1,5 +1,4 @@
/*
- * PROJECT: ReactOS
* LICENSE: GPL - See COPYING in the top level directory
* FILE: include/psdk/common.ver
* PURPOSE: Common Version File.
diff --git a/sdk/include/reactos/libs/libxml/xmlversion.h.in b/sdk/include/reactos/libs/libxml/xmlversion.h.in
index b173be9e..00a836fb 100644
--- a/sdk/include/reactos/libs/libxml/xmlversion.h.in
+++ b/sdk/include/reactos/libs/libxml/xmlversion.h.in
@@ -435,7 +435,7 @@ XMLPUBFUN void XMLCALL xmlCheckVersion(int version);
*/
#ifndef LIBXML_ATTR_ALLOC_SIZE
-# if (!defined(__clang__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3))))
+# if ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
# define LIBXML_ATTR_ALLOC_SIZE(x) __attribute__((alloc_size(x)))
# else
# define LIBXML_ATTR_ALLOC_SIZE(x)
diff --git a/sdk/include/reactos/version.h.cmake b/sdk/include/reactos/version.h.cmake
index 10128c63..7b6a0d5c 100644
--- a/sdk/include/reactos/version.h.cmake
+++ b/sdk/include/reactos/version.h.cmake
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS kernel
+ * PROJECT: kernel
* FILE: include/reactos/version.h.cmake
* PURPOSE: Defines the current version
* PROGRAMMER: David Welch (welch@mcmail.com)
diff --git a/sdk/lib/3rdparty/bzip2/CHANGES b/sdk/lib/3rdparty/bzip2/CHANGES
deleted file mode 100644
index 81e97ca6..00000000
--- a/sdk/lib/3rdparty/bzip2/CHANGES
+++ /dev/null
@@ -1,327 +0,0 @@
- ------------------------------------------------------------------
- This file is part of bzip2/libbzip2, a program and library for
- lossless, block-sorting data compression.
-
- bzip2/libbzip2 version 1.0.6 of 6 September 2010
- Copyright (C) 1996-2010 Julian Seward
-
- Please read the WARNING, DISCLAIMER and PATENTS sections in the
- README file.
-
- This program is released under the terms of the license contained
- in the file LICENSE.
- ------------------------------------------------------------------
-
-
-0.9.0
-~~~~~
-First version.
-
-
-0.9.0a
-~~~~~~
-Removed 'ranlib' from Makefile, since most modern Unix-es
-don't need it, or even know about it.
-
-
-0.9.0b
-~~~~~~
-Fixed a problem with error reporting in bzip2.c. This does not effect
-the library in any way. Problem is: versions 0.9.0 and 0.9.0a (of the
-program proper) compress and decompress correctly, but give misleading
-error messages (internal panics) when an I/O error occurs, instead of
-reporting the problem correctly. This shouldn't give any data loss
-(as far as I can see), but is confusing.
-
-Made the inline declarations disappear for non-GCC compilers.
-
-
-0.9.0c
-~~~~~~
-Fixed some problems in the library pertaining to some boundary cases.
-This makes the library behave more correctly in those situations. The
-fixes apply only to features (calls and parameters) not used by
-bzip2.c, so the non-fixedness of them in previous versions has no
-effect on reliability of bzip2.c.
-
-In bzlib.c:
- * made zero-length BZ_FLUSH work correctly in bzCompress().
- * fixed bzWrite/bzRead to ignore zero-length requests.
- * fixed bzread to correctly handle read requests after EOF.
- * wrong parameter order in call to bzDecompressInit in
- bzBuffToBuffDecompress. Fixed.
-
-In compress.c:
- * changed setting of nGroups in sendMTFValues() so as to
- do a bit better on small files. This _does_ effect
- bzip2.c.
-
-
-0.9.5a
-~~~~~~
-Major change: add a fallback sorting algorithm (blocksort.c)
-to give reasonable behaviour even for very repetitive inputs.
-Nuked --repetitive-best and --repetitive-fast since they are
-no longer useful.
-
-Minor changes: mostly a whole bunch of small changes/
-bugfixes in the driver (bzip2.c). Changes pertaining to the
-user interface are:
-
- allow decompression of symlink'd files to stdout
- decompress/test files even without .bz2 extension
- give more accurate error messages for I/O errors
- when compressing/decompressing to stdout, don't catch control-C
- read flags from BZIP2 and BZIP environment variables
- decline to break hard links to a file unless forced with -f
- allow -c flag even with no filenames
- preserve file ownerships as far as possible
- make -s -1 give the expected block size (100k)
- add a flag -q --quiet to suppress nonessential warnings
- stop decoding flags after --, so files beginning in - can be handled
- resolved inconsistent naming: bzcat or bz2cat ?
- bzip2 --help now returns 0
-
-Programming-level changes are:
-
- fixed syntax error in GET_LL4 for Borland C++ 5.02
- let bzBuffToBuffDecompress return BZ_DATA_ERROR{_MAGIC}
- fix overshoot of mode-string end in bzopen_or_bzdopen
- wrapped bzlib.h in #ifdef __cplusplus ... extern "C" { ... }
- close file handles under all error conditions
- added minor mods so it compiles with DJGPP out of the box
- fixed Makefile so it doesn't give problems with BSD make
- fix uninitialised memory reads in dlltest.c
-
-0.9.5b
-~~~~~~
-Open stdin/stdout in binary mode for DJGPP.
-
-0.9.5c
-~~~~~~
-Changed BZ_N_OVERSHOOT to be ... + 2 instead of ... + 1. The + 1
-version could cause the sorted order to be wrong in some extremely
-obscure cases. Also changed setting of quadrant in blocksort.c.
-
-0.9.5d
-~~~~~~
-The only functional change is to make bzlibVersion() in the library
-return the correct string. This has no effect whatsoever on the
-functioning of the bzip2 program or library. Added a couple of casts
-so the library compiles without warnings at level 3 in MS Visual
-Studio 6.0. Included a Y2K statement in the file Y2K_INFO. All other
-changes are minor documentation changes.
-
-1.0
-~~~
-Several minor bugfixes and enhancements:
-
-* Large file support. The library uses 64-bit counters to
- count the volume of data passing through it. bzip2.c
- is now compiled with -D_FILE_OFFSET_BITS=64 to get large
- file support from the C library. -v correctly prints out
- file sizes greater than 4 gigabytes. All these changes have
- been made without assuming a 64-bit platform or a C compiler
- which supports 64-bit ints, so, except for the C library
- aspect, they are fully portable.
-
-* Decompression robustness. The library/program should be
- robust to any corruption of compressed data, detecting and
- handling _all_ corruption, instead of merely relying on
- the CRCs. What this means is that the program should
- never crash, given corrupted data, and the library should
- always return BZ_DATA_ERROR.
-
-* Fixed an obscure race-condition bug only ever observed on
- Solaris, in which, if you were very unlucky and issued
- control-C at exactly the wrong time, both input and output
- files would be deleted.
-
-* Don't run out of file handles on test/decompression when
- large numbers of files have invalid magic numbers.
-
-* Avoid library namespace pollution. Prefix all exported
- symbols with BZ2_.
-
-* Minor sorting enhancements from my DCC2000 paper.
-
-* Advance the version number to 1.0, so as to counteract the
- (false-in-this-case) impression some people have that programs
- with version numbers less than 1.0 are in some way, experimental,
- pre-release versions.
-
-* Create an initial Makefile-libbz2_so to build a shared library.
- Yes, I know I should really use libtool et al ...
-
-* Make the program exit with 2 instead of 0 when decompression
- fails due to a bad magic number (ie, an invalid bzip2 header).
- Also exit with 1 (as the manual claims :-) whenever a diagnostic
- message would have been printed AND the corresponding operation
- is aborted, for example
- bzip2: Output file xx already exists.
- When a diagnostic message is printed but the operation is not
- aborted, for example
- bzip2: Can't guess original name for wurble -- using wurble.out
- then the exit value 0 is returned, unless some other problem is
- also detected.
-
- I think it corresponds more closely to what the manual claims now.
-
-
-1.0.1
-~~~~~
-* Modified dlltest.c so it uses the new BZ2_ naming scheme.
-* Modified makefile-msc to fix minor build probs on Win2k.
-* Updated README.COMPILATION.PROBLEMS.
-
-There are no functionality changes or bug fixes relative to version
-1.0.0. This is just a documentation update + a fix for minor Win32
-build problems. For almost everyone, upgrading from 1.0.0 to 1.0.1 is
-utterly pointless. Don't bother.
-
-
-1.0.2
-~~~~~
-A bug fix release, addressing various minor issues which have appeared
-in the 18 or so months since 1.0.1 was released. Most of the fixes
-are to do with file-handling or documentation bugs. To the best of my
-knowledge, there have been no data-loss-causing bugs reported in the
-compression/decompression engine of 1.0.0 or 1.0.1.
-
-Note that this release does not improve the rather crude build system
-for Unix platforms. The general plan here is to autoconfiscate/
-libtoolise 1.0.2 soon after release, and release the result as 1.1.0
-or perhaps 1.2.0. That, however, is still just a plan at this point.
-
-Here are the changes in 1.0.2. Bug-reporters and/or patch-senders in
-parentheses.
-
-* Fix an infinite segfault loop in 1.0.1 when a directory is
- encountered in -f (force) mode.
- (Trond Eivind Glomsrod, Nicholas Nethercote, Volker Schmidt)
-
-* Avoid double fclose() of output file on certain I/O error paths.
- (Solar Designer)
-
-* Don't fail with internal error 1007 when fed a long stream (> 48MB)
- of byte 251. Also print useful message suggesting that 1007s may be
- caused by bad memory.
- (noticed by Juan Pedro Vallejo, fixed by me)
-
-* Fix uninitialised variable silly bug in demo prog dlltest.c.
- (Jorj Bauer)
-
-* Remove 512-MB limitation on recovered file size for bzip2recover
- on selected platforms which support 64-bit ints. At the moment
- all GCC supported platforms, and Win32.
- (me, Alson van der Meulen)
-
-* Hard-code header byte values, to give correct operation on platforms
- using EBCDIC as their native character set (IBM's OS/390).
- (Leland Lucius)
-
-* Copy file access times correctly.
- (Marty Leisner)
-
-* Add distclean and check targets to Makefile.
- (Michael Carmack)
-
-* Parameterise use of ar and ranlib in Makefile. Also add $(LDFLAGS).
- (Rich Ireland, Bo Thorsen)
-
-* Pass -p (create parent dirs as needed) to mkdir during make install.
- (Jeremy Fusco)
-
-* Dereference symlinks when copying file permissions in -f mode.
- (Volker Schmidt)
-
-* Majorly simplify implementation of uInt64_qrm10.
- (Bo Lindbergh)
-
-* Check the input file still exists before deleting the output one,
- when aborting in cleanUpAndFail().
- (Joerg Prante, Robert Linden, Matthias Krings)
-
-Also a bunch of patches courtesy of Philippe Troin, the Debian maintainer
-of bzip2:
-
-* Wrapper scripts (with manpages): bzdiff, bzgrep, bzmore.
-
-* Spelling changes and minor enhancements in bzip2.1.
-
-* Avoid race condition between creating the output file and setting its
- interim permissions safely, by using fopen_output_safely().
- No changes to bzip2recover since there is no issue with file
- permissions there.
-
-* do not print senseless report with -v when compressing an empty
- file.
-
-* bzcat -f works on non-bzip2 files.
-
-* do not try to escape shell meta-characters on unix (the shell takes
- care of these).
-
-* added --fast and --best aliases for -1 -9 for gzip compatibility.
-
-
-1.0.3 (15 Feb 05)
-~~~~~~~~~~~~~~~~~
-Fixes some minor bugs since the last version, 1.0.2.
-
-* Further robustification against corrupted compressed data.
- There are currently no known bitstreams which can cause the
- decompressor to crash, loop or access memory which does not
- belong to it. If you are using bzip2 or the library to
- decompress bitstreams from untrusted sources, an upgrade
- to 1.0.3 is recommended. This fixes CAN-2005-1260.
-
-* The documentation has been converted to XML, from which html
- and pdf can be derived.
-
-* Various minor bugs in the documentation have been fixed.
-
-* Fixes for various compilation warnings with newer versions of
- gcc, and on 64-bit platforms.
-
-* The BZ_NO_STDIO cpp symbol was not properly observed in 1.0.2.
- This has been fixed.
-
-
-1.0.4 (20 Dec 06)
-~~~~~~~~~~~~~~~~~
-Fixes some minor bugs since the last version, 1.0.3.
-
-* Fix file permissions race problem (CAN-2005-0953).
-
-* Avoid possible segfault in BZ2_bzclose. From Coverity's NetBSD
- scan.
-
-* 'const'/prototype cleanups in the C code.
-
-* Change default install location to /usr/local, and handle multiple
- 'make install's without error.
-
-* Sanitise file names more carefully in bzgrep. Fixes CAN-2005-0758
- to the extent that applies to bzgrep.
-
-* Use 'mktemp' rather than 'tempfile' in bzdiff.
-
-* Tighten up a couple of assertions in blocksort.c following automated
- analysis.
-
-* Fix minor doc/comment bugs.
-
-
-1.0.5 (10 Dec 07)
-~~~~~~~~~~~~~~~~~
-Security fix only. Fixes CERT-FI 20469 as it applies to bzip2.
-
-
-1.0.6 (6 Sept 10)
-~~~~~~~~~~~~~~~~~
-
-* Security fix for CVE-2010-0405. This was reported by Mikolaj
- Izdebski.
-
-* Make the documentation build on Ubuntu 10.04
diff --git a/sdk/lib/3rdparty/bzip2/README b/sdk/lib/3rdparty/bzip2/README
deleted file mode 100644
index 9fb0f636..00000000
--- a/sdk/lib/3rdparty/bzip2/README
+++ /dev/null
@@ -1,215 +0,0 @@
-
-This is the README for bzip2/libzip2.
-This version is fully compatible with the previous public releases.
-
-------------------------------------------------------------------
-This file is part of bzip2/libbzip2, a program and library for
-lossless, block-sorting data compression.
-
-bzip2/libbzip2 version 1.0.6 of 6 September 2010
-Copyright (C) 1996-2010 Julian Seward
-
-Please read the WARNING, DISCLAIMER and PATENTS sections in this file.
-
-This program is released under the terms of the license contained
-in the file LICENSE.
-------------------------------------------------------------------
-
-Complete documentation is available in Postscript form (manual.ps),
-PDF (manual.pdf) or html (manual.html). A plain-text version of the
-manual page is available as bzip2.txt.
-
-
-HOW TO BUILD -- UNIX
-
-Type 'make'. This builds the library libbz2.a and then the programs
-bzip2 and bzip2recover. Six self-tests are run. If the self-tests
-complete ok, carry on to installation:
-
-To install in /usr/local/bin, /usr/local/lib, /usr/local/man and
-/usr/local/include, type
-
- make install
-
-To install somewhere else, eg, /xxx/yyy/{bin,lib,man,include}, type
-
- make install PREFIX=/xxx/yyy
-
-If you are (justifiably) paranoid and want to see what 'make install'
-is going to do, you can first do
-
- make -n install or
- make -n install PREFIX=/xxx/yyy respectively.
-
-The -n instructs make to show the commands it would execute, but not
-actually execute them.
-
-
-HOW TO BUILD -- UNIX, shared library libbz2.so.
-
-Do 'make -f Makefile-libbz2_so'. This Makefile seems to work for
-Linux-ELF (RedHat 7.2 on an x86 box), with gcc. I make no claims
-that it works for any other platform, though I suspect it probably
-will work for most platforms employing both ELF and gcc.
-
-bzip2-shared, a client of the shared library, is also built, but not
-self-tested. So I suggest you also build using the normal Makefile,
-since that conducts a self-test. A second reason to prefer the
-version statically linked to the library is that, on x86 platforms,
-building shared objects makes a valuable register (%ebx) unavailable
-to gcc, resulting in a slowdown of 10%-20%, at least for bzip2.
-
-Important note for people upgrading .so's from 0.9.0/0.9.5 to version
-1.0.X. All the functions in the library have been renamed, from (eg)
-bzCompress to BZ2_bzCompress, to avoid namespace pollution.
-Unfortunately this means that the libbz2.so created by
-Makefile-libbz2_so will not work with any program which used an older
-version of the library. I do encourage library clients to make the
-effort to upgrade to use version 1.0, since it is both faster and more
-robust than previous versions.
-
-
-HOW TO BUILD -- Windows 95, NT, DOS, Mac, etc.
-
-It's difficult for me to support compilation on all these platforms.
-My approach is to collect binaries for these platforms, and put them
-on the master web site (http://www.bzip.org). Look there. However
-(FWIW), bzip2-1.0.X is very standard ANSI C and should compile
-unmodified with MS Visual C. If you have difficulties building, you
-might want to read README.COMPILATION.PROBLEMS.
-
-At least using MS Visual C++ 6, you can build from the unmodified
-sources by issuing, in a command shell:
-
- nmake -f makefile.msc
-
-(you may need to first run the MSVC-provided script VCVARS32.BAT
- so as to set up paths to the MSVC tools correctly).
-
-
-VALIDATION
-
-Correct operation, in the sense that a compressed file can always be
-decompressed to reproduce the original, is obviously of paramount
-importance. To validate bzip2, I used a modified version of Mark
-Nelson's churn program. Churn is an automated test driver which
-recursively traverses a directory structure, using bzip2 to compress
-and then decompress each file it encounters, and checking that the
-decompressed data is the same as the original.
-
-
-
-Please read and be aware of the following:
-
-WARNING:
-
- This program and library (attempts to) compress data by
- performing several non-trivial transformations on it.
- Unless you are 100% familiar with *all* the algorithms
- contained herein, and with the consequences of modifying them,
- you should NOT meddle with the compression or decompression
- machinery. Incorrect changes can and very likely *will*
- lead to disastrous loss of data.
-
-
-DISCLAIMER:
-
- I TAKE NO RESPONSIBILITY FOR ANY LOSS OF DATA ARISING FROM THE
- USE OF THIS PROGRAM/LIBRARY, HOWSOEVER CAUSED.
-
- Every compression of a file implies an assumption that the
- compressed file can be decompressed to reproduce the original.
- Great efforts in design, coding and testing have been made to
- ensure that this program works correctly. However, the complexity
- of the algorithms, and, in particular, the presence of various
- special cases in the code which occur with very low but non-zero
- probability make it impossible to rule out the possibility of bugs
- remaining in the program. DO NOT COMPRESS ANY DATA WITH THIS
- PROGRAM UNLESS YOU ARE PREPARED TO ACCEPT THE POSSIBILITY, HOWEVER
- SMALL, THAT THE DATA WILL NOT BE RECOVERABLE.
-
- That is not to say this program is inherently unreliable.
- Indeed, I very much hope the opposite is true. bzip2/libbzip2
- has been carefully constructed and extensively tested.
-
-
-PATENTS:
-
- To the best of my knowledge, bzip2/libbzip2 does not use any
- patented algorithms. However, I do not have the resources
- to carry out a patent search. Therefore I cannot give any
- guarantee of the above statement.
-
-
-
-WHAT'S NEW IN 0.9.0 (as compared to 0.1pl2) ?
-
- * Approx 10% faster compression, 30% faster decompression
- * -t (test mode) is a lot quicker
- * Can decompress concatenated compressed files
- * Programming interface, so programs can directly read/write .bz2 files
- * Less restrictive (BSD-style) licensing
- * Flag handling more compatible with GNU gzip
- * Much more documentation, i.e., a proper user manual
- * Hopefully, improved portability (at least of the library)
-
-WHAT'S NEW IN 0.9.5 ?
-
- * Compression speed is much less sensitive to the input
- data than in previous versions. Specifically, the very
- slow performance caused by repetitive data is fixed.
- * Many small improvements in file and flag handling.
- * A Y2K statement.
-
-WHAT'S NEW IN 1.0.0 ?
-
- See the CHANGES file.
-
-WHAT'S NEW IN 1.0.2 ?
-
- See the CHANGES file.
-
-WHAT'S NEW IN 1.0.3 ?
-
- See the CHANGES file.
-
-WHAT'S NEW IN 1.0.4 ?
-
- See the CHANGES file.
-
-WHAT'S NEW IN 1.0.5 ?
-
- See the CHANGES file.
-
-WHAT'S NEW IN 1.0.6 ?
-
- See the CHANGES file.
-
-
-I hope you find bzip2 useful. Feel free to contact me at
- jseward@bzip.org
-if you have any suggestions or queries. Many people mailed me with
-comments, suggestions and patches after the releases of bzip-0.15,
-bzip-0.21, and bzip2 versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1,
-1.0.2 and 1.0.3, and the changes in bzip2 are largely a result of this
-feedback. I thank you for your comments.
-
-bzip2's "home" is http://www.bzip.org/
-
-Julian Seward
-jseward@bzip.org
-Cambridge, UK.
-
-18 July 1996 (version 0.15)
-25 August 1996 (version 0.21)
- 7 August 1997 (bzip2, version 0.1)
-29 August 1997 (bzip2, version 0.1pl2)
-23 August 1998 (bzip2, version 0.9.0)
- 8 June 1999 (bzip2, version 0.9.5)
- 4 Sept 1999 (bzip2, version 0.9.5d)
- 5 May 2000 (bzip2, version 1.0pre8)
-30 December 2001 (bzip2, version 1.0.2pre1)
-15 February 2005 (bzip2, version 1.0.3)
-20 December 2006 (bzip2, version 1.0.4)
-10 December 2007 (bzip2, version 1.0.5)
- 6 Sept 2010 (bzip2, version 1.0.6)
diff --git a/sdk/lib/3rdparty/bzip2/Y2K_INFO b/sdk/lib/3rdparty/bzip2/Y2K_INFO
deleted file mode 100644
index 55fd56a2..00000000
--- a/sdk/lib/3rdparty/bzip2/Y2K_INFO
+++ /dev/null
@@ -1,34 +0,0 @@
-
-Y2K status of bzip2 and libbzip2, versions 0.1, 0.9.0 and 0.9.5
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-Informally speaking:
- bzip2 is a compression program built on top of libbzip2,
- a library which does the real work of compression and
- decompression. As far as I am aware, libbzip2 does not have
- any date-related code at all.
-
- bzip2 itself copies dates from source to destination files
- when compressing or decompressing, using the 'stat' and 'utime'
- UNIX system calls. It doesn't examine, manipulate or store the
- dates in any way. So as far as I can see, there shouldn't be any
- problem with bzip2 providing 'stat' and 'utime' work correctly
- on your system.
-
- On non-unix platforms (those for which BZ_UNIX in bzip2.c is
- not set to 1), bzip2 doesn't even do the date copying.
-
- Overall, informally speaking, I don't think bzip2 or libbzip2
- have a Y2K problem.
-
-Formally speaking:
- I am not prepared to offer you any assurance whatsoever
- regarding Y2K issues in my software. You alone assume the
- entire risk of using the software. The disclaimer of liability
- in the LICENSE file in the bzip2 source distribution continues
- to apply on this issue as with every other issue pertaining
- to the software.
-
-Julian Seward
-Cambridge, UK
-25 August 1999
diff --git a/sdk/lib/3rdparty/freetype/ChangeLog b/sdk/lib/3rdparty/freetype/ChangeLog
deleted file mode 100644
index 113dd3c9..00000000
--- a/sdk/lib/3rdparty/freetype/ChangeLog
+++ /dev/null
@@ -1,663 +0,0 @@
-2016-09-08 Werner Lemberg
-
- * Version 2.7 released.
- =======================
-
-
- Tag sources with `VER-2-7'.
-
- * docs/VERSION.TXT: Add entry for version 2.7.
-
- * README, Jamfile (RefDoc), builds/windows/vc2005/freetype.vcproj,
- builds/windows/vc2005/index.html,
- builds/windows/vc2008/freetype.vcproj,
- builds/windows/vc2008/index.html,
- builds/windows/vc2010/freetype.vcxproj,
- builds/windows/vc2010/index.html,
- builds/windows/visualc/freetype.dsp,
- builds/windows/visualc/freetype.vcproj,
- builds/windows/visualc/index.html,
- builds/windows/visualce/freetype.dsp,
- builds/windows/visualce/freetype.vcproj,
- builds/windows/visualce/index.html,
- builds/wince/vc2005-ce/freetype.vcproj,
- builds/wince/vc2005-ce/index.html,
- builds/wince/vc2008-ce/freetype.vcproj,
- builds/wince/vc2008-ce/index.html: s/2.6.5/2.7/, s/265/27/.
-
- * include/freetype/freetype.h (FREETYPE_MINOR): Set to 7.
- (FREETYPE_PATCH): Set to 0.
-
- * builds/unix/configure.raw (version_info): Set to 18:6:12.
- * CMakeLists.txt (VERSION_MINOR): Set to 7.
- (VERSION_PATCH): Set to 0.
-
- * docs/CHANGES: Updated.
-
-2016-09-08 Werner Lemberg
-
- * src/truetype/ttinterp.c: Include `ttgxvar.h'.
-
- This fixes the `multi' build.
-
-2016-09-08 Werner Lemberg
-
- [autofit] Another improvement to Armenian support.
-
- Suggested by Hrant H Papazian .
-
- * src/autofit/afscript.h: Use better suited characters to derive
- default stem widths.
-
-2016-09-07 Alexei Podtelezhnikov
-
- * src/smooth/ftgrays.c (gray_hline): Microptimize.
-
-2016-09-06 Alexei Podtelezhnikov
-
- [smooth] Operate in absolute bitmap coordinates.
-
- Simpler bitmap addressing improves performance by 1.5%.
-
- * src/smooth/ftgrays.c (gray_TWorker): Remove count fields.
- (gray_dump_cells, gray_find_cell, gray_set_cell, gray_hline,
- gray_sweep, gray_convert_glyph, gray_raster_render): Updated.
-
-2016-09-06 Alexei Podtelezhnikov
-
- [smooth] Improve contour start (take 2).
-
- * src/smooth/ftgrays.c (gray_move_to): Call `gray_set_cell' directly
- instead of...
- (gray_start_cell): ... this function, which is removed.
- (gray_convert_glyph): Make initial y-coordinate invalid.
-
-2016-09-06 Werner Lemberg
-
- [type1] MM fonts support exactly zero named instances (#48748).
-
- * src/type1/t1load.c (T1_Get_MM_Var): Set `num_namedstyles' to zero.
-
-2016-09-06 Jonathan Kew
-
- [cff] Fix uninitialized memory.
-
- Problem reported as
-
- https://bugzilla.mozilla.org/show_bug.cgi?id=1270288
-
- * src/cff/cf2interp.c (cf2_interpT2CharString): Initialize `storage'
- array to handle a `get' opcode without a previous `put'.
-
-2016-09-05 Alexei Podtelezhnikov
-
- * src/smooth/ftgrays.c (gray_move_to, gray_start_cell): Revert.
-
-2016-09-05 Alexei Podtelezhnikov
-
- [smooth] Improve contour start.
-
- * src/smooth/ftgrays.c (gray_move_to): Call `gray_set_cell' directly
- instead of...
- (gray_start_cell): ... this function, which is removed.
-
-2016-09-05 Werner Lemberg
-
- [cff] Fix memory initialization.
-
- * src/cff/cf2stack.c (cf2_stack_init): Use `FT_NEW'. The `Q'
- variants of FreeType's memory allocation macros don't do zeroing.
-
-2016-09-05 Werner Lemberg
-
- [ftrandom] Minor improvements.
-
- * src/tools/ftrandom/ftrandom.c (_XOPEN_SOURCE): New macro, set to
- 500.
-
- * src/tools/ftrandom/Makefile (CFLAGS): Split off include
- directories to ...
- (INCLUDES): ... this new variable.
- (LDFLAGS): New variable.
- (ftrandom.o, ftrandom): Updated.
-
-2016-09-05 Werner Lemberg
-
- [autofit] Improve Armenian support.
-
- Thanks to Hrant H Papazian for help.
-
- * src/autofit/afblue.dat (AF_BLUE_STRING_ARMENIAN_*): Improve
- selection of characters.
-
- * src/autofit/afblue.c, src/autofit/afblue.h: Regenerated.
-
-2016-09-04 Werner Lemberg
-
- [ftrandom] Improve Makefile.
-
- It now supports both a normal build (`./configure && make') and a
- development build (`make devel').
-
- * src/tools/ftrandom/Makefile (VPATH): Set it so that
- `libfreetype.a' gets searched in both `objs' (for the development
- build) and `objs/.libs' (for a normal build which uses libtool).
- (LIBS): Add missing libraries.
- (ftrandom.o): New rule.
- (ftrandom): Use automatic variables.
-
-2016-09-03 Werner Lemberg
-
- [truetype] More fixes for handling of GX deltas.
-
- Problems reported by Bob Taylor .
-
- * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix rough
- sanity test for glyph variation array header size.
- Always set stream position before reading packed x and y deltas.
- Fix thinko w.r.t. `localpoints' array.
-
-2016-09-03 Werner Lemberg
-
- [ftrandom] Various fixes.
-
- * src/tools/ftrandom/ftrandom.c (GOOD_FONTS_DIR): Provide better
- default.
- (error_fraction): Make it of type `double' to work as advertized –
- this was completely broken.
- Update all related code.
- (error_count, fcnt): Make it unsigned to fix compiler warnings.
- Update all related code.
- (fontlist): Change `len' member to `long' to fix compiler warnings.
- (FT_MoveTo, FT_LineTo, FT_ConicTo, FT_CubicTo, abort_test): Tag
- unused variables.
- (TestFace, FindFonts, copyfont, do_test): Fix compiler warnings.
- (ExecuteTest): Ditto.
- Call `FT_Done_FreeType'.
- (getErrorCnt): Replace `ceil' with an ordinary cast to `unsigned
- int'.
- (usage): Improve output.
- (main): Fix compiler warnings.
-
- * src/tools/ftrandom/README: Updated.
-
-2016-09-03 Werner Lemberg
-
- [base] Avoid negative bitmap stroke dimensions (#48985).
-
- * src/base/ftobjs.c (FT_Open_Face): Check whether negation was
- actually successful. For example, this can fail for value
- -32768 if the type is `signed short'. If there are problems,
- disable the stroke.
-
-2016-09-03 Werner Lemberg
-
- [cff] Avoid null pointer passed to FT_MEM_COPY (#48984).
-
- * src/cff/cffload.c (cff_index_get_name): Check `byte_len'.
-
-2016-09-02 Werner Lemberg
-
- [unix] Enable 64bit support in file system access (#48962).
-
- * builds/unix/configure.raw: Call `AC_SYS_LARGEFILE'.
-
-2016-09-02 Werner Lemberg
-
- [sfnt] Avoid left shift of negative value (#48980).
-
- * src/sfnt/ttsbit.c (tt_sbit_decoder_load_bit_aligned): Use unsigned
- constant.
-
-2016-09-02 Werner Lemberg
-
- * src/smooth/ftgrays.c (gray_hline): Fix clang compiler warnings.
-
-2016-09-02 Werner Lemberg
-
- Some preparations for the next release.
-
- * include/freetype/config/ftoption.h
- (TT_CONFIG_OPTION_SUBPIXEL_HINTING): Enable.
-
- * docs/CHANGES: Updated.
-
-2016-09-01 Alexei Podtelezhnikov
-
- [smooth] Simplify span rendering more.
-
- It turns out that there is significant cost associated with `FT_Span'
- creation and calls to `gray_render_span' because it happerns so
- frequently. This removes these steps from our internal use but leaves
- it alone for `FT_RASTER_FLAG_DIRECT" to preserve API. The speed gain
- is about 5%.
-
- * src/smooth/ftgrays.c (gray_render_span): Removed. The code is
- migrated to...
- (gray_hline): ... here.
-
-2016-08-30 Alexei Podtelezhnikov
-
- [smooth] Streamline pixmap drawing a bit more.
-
- Zero coverage is unlikely (1 out of 256) to warrant checking. This
- gives 0.5% speed improvement in rendering simple glyphs.
-
- * src/smooth/ftgrays.c (gray_hline, gray_render_span): Remove checks.
-
-2016-08-29 Alexei Podtelezhnikov
-
- [smooth] Streamline pixmap drawing.
-
- This gives 2% speed improvement in rendering simple glyphs.
-
- * src/smooth/ftgrays.c (TPixmap): Reduced pixmap descriptor with a
- pointer to its bottom-left and pitch to be used in...
- (gray_TWorker): ... here.
- (gray_render_span): Move pixmap flow check from here...
- (gray_raster_render): .. to here.
-
-2016-08-27 Alexei Podtelezhnikov
-
- [smooth] Reduce stack of band boundaries.
-
- * src/smooth/ftgrays.c (gray_TBand): Removed.
- (gray_convert_glyph): Updated to stack band boundaries concisely.
-
-2016-08-26 Werner Lemberg
-
- * src/cid/cidload.c (cid_face_open): Improve handling of `SDBytes'.
-
-2016-08-26 Werner Lemberg
-
- [cid] Fix commit from 2016-05-16.
-
- * src/cid/cidparse.c (cid_parser_new): Fix off-by-one errors.
-
-2016-08-26 Werner Lemberg
-
- [sfnt] Cache offset and size to bitmap data table.
-
- This commit avoids `EBDT' and friends being looked up again and
- again while loading a single embedded bitmap.
-
- * include/freetype/internal/tttypes.h (TT_FaceRec)
- [TT_CONFIG_OPTION_EMBEDDED_BITMAPS]: New fields `ebdt_start' and
- `ebdt_size'.
-
- * src/sfnt/ttsbit.c (tt_sbit_decoder_init): Move table lookup to ...
- (tt_face_load_sbit): ... this function; also store the table size
- and offset.
-
-2016-08-26 Alexei Podtelezhnikov
-
- * src/smooth/ftgrays.c (gray_raster_render): Minor tweaks.
-
-2016-08-26 Werner Lemberg
-
- [type1] Fix heap buffer overflow.
-
- Reported as
-
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=36
-
- * src/type1/t1load.c (parse_charstrings): Reject fonts that don't
- contain glyph names.
-
-2016-08-25 Werner Lemberg
-
- [sfnt] Fix previous commit (#48901).
-
- * src/sfnt/ttcmap.c (tt_cmap4_char_map_binary): Thinkos.
-
-2016-08-25 Werner Lemberg
-
- [sfnt] Speed up handling of invalid format 4 cmaps.
-
- * src/sfnt/ttcmap.c (tt_cmap4_next, tt_cmap4_char_map_binary): Add
- tests for `num_glyph' from `tt_cmap4_char_map_linear'.
-
-2016-08-25 Werner Lemberg
-
- * include/freetype/internal/ftdriver.h: Remove unused typedefs.
-
-2016-08-22 Alexei Podtelezhnikov
-
- [smooth] Simplify span rendering.
-
- This removes unnecessary complexity of span merging and buffering.
- Instead, the spans are rendered as they come, speeding up the
- rendering by about 5% as a result.
-
- * src/smooth/ftgrays.c [FT_MAX_GRAY_SPANS]: Macro removed.
- (gray_TWorker): Remove span buffer and related fields.
- (gray_sweep, gray_hline): Updated.
-
- * include/freetype/ftimage.h: Remove documentation note about
- `FT_MAX_GRAY_SPANS', which was never in `ftoption.h' and is now gone.
-
-2016-08-16 Werner Lemberg
-
- [truetype] Fix `MPS' instruction.
-
- According to Greg Hitchcock, MPS in DWrite really returns the point
- size.
-
- * src/truetype/ttobjs.h (TT_SizeRec): Add `point_size' member.
-
- * src/truetype/ttdriver.c (tt_size_request): Set `point_size'.
-
- * src/truetype/ttinterp.h (TT_ExecContextRec): Add `pointSize'
- member.
-
- * src/truetype/ttinterp.c (TT_Load_Context): Updated.
- (Ins_MPS): Fix instruction.
-
-2016-08-16 Werner Lemberg
-
- [lzw] Optimize last commit.
-
- * src/lzw/ftzopen.c (ft_lzwstate_get_code): Move check into
- conditional clause.
-
-2016-08-16 Werner Lemberg
-
- [lzw] Avoid invalid left shift.
-
- Reported as
-
- https://bugzilla.mozilla.org/show_bug.cgi?id=1295366
-
- * src/lzw/ftzopen.c (ft_lzwstate_get_code): Limit `num_bits'.
-
-2016-08-16 Werner Lemberg
-
- [lzw] Avoid buffer overrun.
-
- Reported as
-
- https://bugzilla.mozilla.org/show_bug.cgi?id=1273283
-
- * src/lzw/ftzopen.c (ft_lzwstate_refill): Ensure `buf_size' doesn't
- underflow.
-
-2016-08-16 Werner Lemberg
-
- [truetype] Fix compiler warning.
-
- * src/truetype/ttgload.c (load_truetype_glyph): Add cast.
-
-2016-08-13 Werner Lemberg
-
- [winfonts] Avoid zero bitmap width and height.
-
- Reported as
-
- https://bugzilla.mozilla.org/show_bug.cgi?id=1272173
-
- * src/winfonts/winfnt.c (FNT_Face_Init): Check zero pixel height.
- (FNT_Load_Glyph): Check for zero pitch.
-
-2016-08-11 Alexei Podtelezhnikov
-
- * src/truetype/ttinterp.c (Pop_Push_Count): Revert changes.
-
-2016-08-11 Alexei Podtelezhnikov
-
- * src/truetype/ttinterp.c (TT_RunIns): Minor and formatting.
-
-2016-08-11 Alexei Podtelezhnikov
-
- * src/truetype/ttinterp.c (Pop_Push_Count): Fix some entries.
-
-2016-08-10 Peter Klotz
-
- * src/smooth/ftgrays.c (gray_hline): Fix uninitialized access.
-
-2016-08-10 Werner Lemberg
-
- [sfnt] Use correct type for `italicAngle' field (#48732).
-
- * src/sfnt/ttload.c (tt_face_load_post): Fix types.
-
-2016-08-06 Jon Spencer
-
- [sfnt] Fix `FT_Get_Advance' for bitmap strikes.
-
- `FT_Get_Advance' returns 0 for bitmap fonts. It first gets the
- advance value from the font table and then scales it by the
- `font->size->metrics->x_scale' field. But `FT_Select_Size' doesn't
- set that value for bitmap fonts and the advance gets scaled to zero.
-
- Taken from
-
- https://github.com/behdad/harfbuzz/issues/252
-
- * src/sfnt/ttsbit.c (tt_face_load_strike_metrics)
- : Set scale values.
-
-2016-08-06 Behdad Esfahbod
-
- [truetype] Fix GX variation handling of composites.
-
- * src/truetype/ttgload.c (load_truetype_glyph)
- [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Check `ARGS_ARE_XY_VALUES' flag.
-
-2016-08-05 Alexei Podtelezhnikov
-
- [smooth] Minor refactoring.
-
- * src/smooth/ftgrays.c (gray_render_scanline, gray_render_line):
- Updated.
-
-2016-07-29 Werner Lemberg
-
- [sfnt, truetype] Don't abort on invalid `maxComponentDepth'.
-
- Since 2016-05-16 we detect infinite recursion directly.
-
- * src/sfnt/ttload.c (tt_face_load_maxp): Don't adjust
- `maxComponentDepth'.
- * src/truetype/ttgload.c (load_truetype_glyph): Don't abort if
- `maxComponentDepth' is not valid. Instead, simply adjust its value
- and emit a tracing message.
-
-2016-07-26 Werner Lemberg
-
- * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Minor.
-
- No functional change.
-
-2016-07-22 Hin-Tak Leung
-
- [truetype] Record the end of IDEFs.
-
- To match the logic in FDEF. The value of the end is only used for
- bound-checking in `Ins_JMPR', so it may not have been obvious that
- it was not recorded. Tested (as part of Font Validator 2.0) all the
- fonts on Fedora and did not see any change.
-
- * src/truetype/ttinterp.c (Ins_IDEF): Updated.
-
-2016-07-19 Werner Lemberg
-
- [truetype] Sanitizer fix, second try.
-
- * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Fix boundary
- tests and use only one slot more.
-
-2016-07-19 Werner Lemberg
-
- [truetype] Sanitizer fix.
-
- * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Increase array
- to fix nested loops.
-
-2016-07-18 Werner Lemberg
-
- [truetype] Make GETDATA work only for GX fonts.
-
- * src/truetype/ttinterp.c (opcode_name): Updated.
- (Ins_GETDATA): Only define for `TT_CONFIG_OPTION_GX_VAR_SUPPORT'.
- (TT_RunIns): Updated.
-
-2016-07-17 Werner Lemberg
-
- [truetype] Add support for Apple's
-
- GETDATA[], opcode 0x92
-
- bytecode instruction. It always returns 17, and we have absolutely
- no idea what it is good for...
-
- * src/truetype/ttinterp.c (Pop_Push_Count, opcode_name): Updated.
- (Ins_GETDATA): New function.
- (TT_RunIns): Add it.
-
-2016-07-16 Werner Lemberg
-
- [truetype] Add bytecode support for GX variation fonts.
-
- This commit implements undocumented (but confirmed) stuff from
- Apple's old bytecode engine.
-
- GETVARIATION[], opcode 0x91
- This opcode pushes normalized variation coordinates for all axes
- onto the stack (in 2.14 format). Coordinate of first axis gets
- pushed first.
-
- GETINFO[], selector bit 3
- If GX variation support is enabled, bit 10 of the result is set
- to 1.
-
- * src/truetype/ttinterp.c: Include FT_MULTIPLE_MASTERS_H.
- (opcode_name) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Updated.
- (Ins_GETINFO) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Handle selector
- bit 3, checking support for variation glyph hinting.
- (Ins_GETVARIATION) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: New function
- to implement opcode 0x91.
- (TT_RunIns) [TT_CONFIG_OPTION_GX_VAR_SUPPORT]: Handle opcode 0x91.
-
-2016-07-16 Werner Lemberg
-
- [truetype] Fix GETINFO bytecode instruction.
-
- * src/truetype/ttinterp.c (Ins_GETINFO): Fix return value for
- stretching information.
-
-2016-07-16 Behdad Esfahbod
-
- [truetype] Make all glyphs in `Zycon' GX font work.
-
- * src/truetype/ttgxvar.c (ft_var_readpackedpoints): Fix boundary
- tests.
-
-2016-07-16 Werner Lemberg
-
- [truetype] Fix GX delta tracing.
-
- * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Trace
- relative point movements.
-
-2016-07-16 Behdad Esfahbod
-
- [truetype] More fixes for GX.
-
- This finally fixes the rendering of the cyclist and the lizard in
- the `Zycon' font.
-
- * src/truetype/ttgxvar.c (ft_var_readpackedpoints): `first' point
- index is always cumulative.
-
- (tt_handle_deltas): Rename to...
- (tt_interpolate_deltas): ... This.
- Add new parameter for output point array.
- Update caller.
-
- (TT_Vary_Apply_Glyph_Deltas): Add `points_out' array; it now holds
- the intermediate results of `tt_interpolate_deltas' that are to be
- added to `outline->points'.
-
-2016-07-15 Werner Lemberg
-
- * src/autofit/aflatin.c (af_latin_hints_compute_segments): Thinko.
-
- `max_pos' is always larger than `min_pos' so `FT_ABS' is not needed.
-
- Reported by Alexei.
-
-2016-07-16 Nikolaus Waxweiler
-
- * src/truetype/ttinterp.c (Ins_MIRP): Fix copy-and-paste error.
-
- Problem reported by Hin-Tak Leung.
-
-2016-07-15 Werner Lemberg
-
- [autofit] Update and improve segment and edge tracing.
-
- * src/autofit/afhints.c (af_glyph_hints_dump_segments): Trace
- `delta' also.
- Don't show first point of segment as a replacement for `pos'; this
- is (a) misleading, since the difference to `pos' can be almost
- arbitrarily large in corner cases, and (b) it is better to have all
- segment data in font units instead of a single value given in output
- space coordinates.
- Improve layout.
- (af_glyph_hints_dump_edges): Show px->units and units->px conversion
- values for convenience.
- Improve layout.
-
-2016-07-15 Werner Lemberg
-
- [autofit] For edges, reject segments wider than 1px (#41334).
-
- * src/autofit/afhints.h (AF_SegmentRec): New member `delta'.
-
- * src/autofit/aflatin.c (af_latin_hints_compute_segments): Compute
- `delta'.
- (af_latin_hints_compute_edges): Reject segments with a delta larger
- than 0.5px.
-
-2016-07-14 Werner Lemberg
-
- * include/freetype/freetype.h (FT_IS_NAMED_INSTANCE): New macro.
-
-2016-07-14 Werner Lemberg
-
- [sfnt] Fix `face_index' value in `FT_Face' for named instances.
-
- * src/sfnt/sfobjc.s (sfnt_init_face): Don't strip off higher 16bits.
-
-2016-07-14 Werner Lemberg
-
- * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix tracing.
-
-2016-07-14 Behdad Esfahbod
-
- [truetype] Fix gxvar delta interpolation.
-
- The coordinates of the base font should be used for interpolation
- purposes, NOT the current points (i.e., the result of accumulation
- of previous deltas).
-
- * src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Initialize
- `points_org' before looping over all tuples.
-
-
-----------------------------------------------------------------------------
-
-Copyright 2016 by
-David Turner, Robert Wilhelm, and Werner Lemberg.
-
-This file is part of the FreeType project, and may only be used, modified,
-and distributed under the terms of the FreeType project license,
-LICENSE.TXT. By continuing to use, modify, or distribute this file you
-indicate that you have read the license and understand and accept it
-fully.
-
-
-Local Variables:
-version-control: never
-coding: utf-8
-End:
diff --git a/sdk/lib/3rdparty/freetype/src/tools/ftrandom/README b/sdk/lib/3rdparty/freetype/src/tools/ftrandom/README
index 7c610864..03d14766 100644
--- a/sdk/lib/3rdparty/freetype/src/tools/ftrandom/README
+++ b/sdk/lib/3rdparty/freetype/src/tools/ftrandom/README
@@ -65,5 +65,5 @@ Two possible solutions.
. Run ftrandom within a debugging tool like `valgrind' to catch various
memory issues.
-. Compile FreeType with sanitizer flags as provided by gcc or clang, for
+. Compile FreeType with sanitizer flags as provided by gcc, for
example, then link it with ftrandom.
diff --git a/sdk/lib/3rdparty/stlport/INSTALL b/sdk/lib/3rdparty/stlport/INSTALL
deleted file mode 100644
index 8617ef9f..00000000
--- a/sdk/lib/3rdparty/stlport/INSTALL
+++ /dev/null
@@ -1,166 +0,0 @@
-**********************************************************************
-* INSTALL file for STLport *
-* *
-**********************************************************************
-
-STLport is a full ANSI C++ Standard library.
-
-This distribution contains STLport sources only, no binaries.
-To use STLport iostreams, locale and complex numbers, you have to build STLport
-library from sources in "build/lib" directory and link your programs with it.
-
-Starting with 5.0 the 'wrapper' mode is not supported anymore. You cannot use native
-compiler iostreams implementation with STLport STL (see doc/FAQ for explanations).
-Now you have to choose between STLport iostreams or no iostreams.
-
-==== Unpacking and installing STLport ==========
-
-1) Unpack STLport archive to a directory accessible during compilation.
- NOTE: DO NOT overwrite header files coming with the compiler, even if you made
- a backup - this won't work! Most probably, you've already unpacked the archive before
- reading this file though ;)
-
-2) Make sure "stlport" directory of this distribution comes before compiler's one
- in your include paths when you compile the project.
-
- Note: for SunPro CC 5.0 and higher, there used to be special directory "stlport/SC5"
- this is now obsolete, please make sure you do not use it anymore.
-
-3) Make sure you do not rename this "stlport" subdirectory -
- that may result in compilation errors.
-
- NOTE: Your compiler should be recognized by STLport source code with no configuring.
- Please edit appropriate configuration header for your compiler
- directly if you have to make compiler-specific configuration changes
- (see stlport/stl/config).
-
-4) Run:
-
- configure --help
-
- Depending on your environment, Windows command shell or Unix like shell,
- configure.bat or configure script will be run respectively. For Windows users
- running configure script is mandatory in order to declare the compiler you are
- going to use.
-
-5) Go to "build/lib" subdirectory. It contains various makefiles for different
- compilers and 'make' utilities (GNU Make and Microsoft's nmake supported).
-
- Verify you can do command line compiles. IDE users may have to do something
- special, like add environment variables (for Microsoft) or install
- additional compiler components (for Metrowerks), before they can use their
- command line compilers (see doc/README.xxxx for additionnal information).
-
- configure script should have already created a Makefile file so that you only
- have to call 'make' or 'nmake' (for some platforms GNU make might be hidden
- behind 'gmake').
-
- IMPORTANT:
-
- If you DO NOT plan to use STLport iostreams and/or locale implementation but just
- the STL, you do not have to build the library.
-
- If you have decided to disable STLport iostreams and locale using _STLP_NO_IOSTREAMS
- configuration macro in stlport/stl/config/user_config.h, you may stop reading here.
-
-
-==== Building STLport iostreams library ==========
-
-Below are step-by-step instructions to build STLport streams library. This is a general
-build process description, for a more detailed one check README files in the doc folder:
-
-5) Using appropriate make command (make or nmake), do
-
- make clean install
-
- to build the STLport libraries. Make files are set up to build several different
- flavors - debug/nondebug, static/dynamic versions. But not all flavors will be build
- by default. See build/lib/README for other make targets.
-
- Note: 'install' target work slightly different than usual - it installs libraries into
- /lib and bin catalogs, NOT IN SYSTEM CATALOG. You can do the system
- install by just copying stlport and lib folder to the destination of your choise. For
- example on UNIX-like platforms this can be done with the following commands:
-
- su
- tar cf - stlport | (cd /usr/local/include; tar xf -)
- chmod -R a+r /usr/local/include/stlport
- chown -R root:root /usr/local/include/stlport
- (cd lib; tar cf - --exclude=CVS --exclude=.cvsignore .) | (cd /usr/local/lib; tar xf -)
- chown -R root:root /usr/local/lib/libstlport*
- exit
-
- Note: System install is optional, most of compilers/linkers support searching for includes
- and libs throught out the whole filesystem, just check your documentation on how to achieve
- this.
-
- If you use cross-compiler, you can find libraries in the /lib/
- catalog.
-
-6) If build fails, you may choose to :
- - try fixing the build ;)
- - wait until somebody else will submit corresponding changes to be incorporated in next STLport
- release/snapshot.
-
- In case you do patch STLport, please submit your patches to
- https://sourceforge.net/tracker/?atid=766246&group_id=146814&func=browse
-
-==== Linking your application with STLport library ==========
-
-7) Check the build:
-
- Example:
-
- - under Linux and other Unixes:
-
- cd build/test/unit
- make install
- ../../../bin/stl_unit_test
- ../../../bin-g/stl_unit_test
-
- - under Windows:
-
- cd build\test\unit
- nmake install
- cd ..\..\..\bin
- stl_unit_test
- stl_unit_testd
- stl_unit_teststld
-
-8) Supply the "lib" subdirectory to the library search path and add desired
- library to the list of libraries to link with.
- Examples (imagine you have mytest.cpp in the same directory as this file is):
- With GCC : g++ -pthread -I./stlport mytest.cpp -L./lib/ -lstlport
- With DEC CC : cxx -I./stlport mytest.cpp -L./lib/ -lstlport
- With SUN CC : CC -mt -I./stlport mytest.cpp -L./lib/ -lstlport
- .....
- For several compilers supporting auto linking feature (VC++, Borland, DMC),
- you do not have to specify "stlport.M.m.lib" explicitly, as it is being choosen
- and forced to link automatically by "#pragma"'s in compiler config files
- Appropriate version is being selected based on compiler options and _STLP_DEBUG
- setting. All you have to do is to set library search path for the linker.
-
- Example :
- cl.exe /I.\stlport mytest.cpp /link /libpath:.\lib /MD
-
-9) If you linked your application with shared STLport library (.so or .dll), please
- make suze that your .so or .dll can be found by the dynamic linker.
- Under Windows, the paths searched depend on the particular flavor, see the MSDN
- documentation for LoadLibrary at http://msdn.microsoft.com. The easiest ways are to
- either modify the PATH environment variable or copy all .dll's next to the
- executable like it is done per default when unit tests executable are put next
- to dlls.
- Under Linux, the environment variable LD_LIBRARY_PATH can be adjusted to point
- to the dir containing .so. See the manpage for ld.so for more info.
-
-10) STLport builds only multithreaded libraries, so your application should be compiled
- as multithreaded, too. Use -pthread (or -pthreads on Solaris) option for GCC, -mt for SunPro,
- /MT for VC, and so on. Sometimes you should define _REENTRANT or something else, depends
- upon platform/compiler. See compiler's and linker's options on command line when you build
- unit tests (build/test/unit) for reference. The last is useful for ANY platform.
-
-11) Don't hesitate to read READMEs (doc/README*, build/lib/README*, build/test/unit/README*)
- and doc/FAQ.
-
-12) Have fun!
-
diff --git a/sdk/lib/3rdparty/stlport/INSTALL.unixes b/sdk/lib/3rdparty/stlport/INSTALL.unixes
deleted file mode 100644
index f9b2e21c..00000000
--- a/sdk/lib/3rdparty/stlport/INSTALL.unixes
+++ /dev/null
@@ -1,120 +0,0 @@
-**********************************************************************
-* INSTALL file for STLport 5.2 *
-* *
-**********************************************************************
-
-STLport is a full ANSI C++ Standard library.
-
-This distribution contains STLport sources only, no binaries.
-To use STLport iostreams, locale and complex numbers, you have
-to build STLport library from sources and link your programs with it.
-
-Starting with 5.0 the 'wrapper' mode is not supported anymore.
-You cannot use native compiler iostreams implementation with STLport STL
-(see doc/FAQ for explanations).
-
-==== Installing STLport ==========
-
-0) DO NOT overwrite/move/rename header files coming with the compiler,
- even if you made a backup---STLport need this headers and don't
- override ones.
-
-1) Run
-
- ./configure --help
-
- read options description; if you use compiler
- different from gcc, pay attention to --use-compiler-family= option.
-
-2) Run
-
- ./configure
-
- Options here more-or-less traditional.
-
- Note: ./configure give hints only for library build, it dosen't
- create/edit any headers, check you system etc. This is simple way
- to store custom options, not more. If you want to change default
- behaviour of STLport, see stlport/stl/config/user_config.h and
- stlport/stl/config/host.h; read the comments in this files!
- Not all combinations of options healthy, you should understand
- what you do. If not, keep all unchanged.
-
- Note: you can find all recognised 'settings' in the file
- build/Makefiles/gmake/config.mak
-
- This is generated file, but only ./configure will rewrite one.
-
-3) Run
-
- make && make check
-
- Only GNU Make supported! Preferred verion of GNU Make >= 3.81;
- never use GNU Make before 3.79 --- build not work properly;
- GNU makes >= 3.79 and < 3.81 may fail to build library/tests
- properly, due to bugs; but the real results depends upon
- platform.
-
-4) If build fine, become superuser and run
-
- make install
-
- Note: you can use --prefix= to change installation path
- (or macro DESTDIR, as usual), or even skip installation and use
- STLport in-place.
-
-==== Usage STLport ==========
-
-1) The best way to understand how to use it, is to see on compilation,
- linking, running unit tests, i.e. see on options when you do
-
- (cd build/test/unit; make check)
-
-2) Make sure "stlport" directory of this distribution comes before
- compiler's one in your include paths (something like
- -I /stlport); never rename 'stlport' part of path!
-
- Compilation:
-
- c++ -pthread -fexceptions -O2 -I/usr/local/include/stlport -c -o test.o test.cc
-
- In case of gcc, libstlport replace libstdc++ (not in all cases!)
-
- Link, variant 1:
-
- c++ -pthread -fexceptions -O2 -I/usr/local/include/stlport -nostdlib -o mytest \
- /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/../../../crt1.o \
- /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/../../../crti.o \
- /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/crtbegin.o \
- test.o \
- -lstlport \
- -lgcc_s -lpthread -lc -lm \
- /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/crtend.o \
- /usr/lib/gcc/i686-pc-linux-gnu/4.2.4/../../../crtn.o
-
- Of cause, names of start/stop files not hardcoded, you can locate it with
-
- c++ -print-file-name=crt1.o
-
- Link, variant 2:
-
- gcc -pthread -fexceptions -O2 -I/usr/local/include/stlport -o mytest \
- test.o -lstlport
-
- If you use gcc before 3.3, you must link with libstdc++, because
- language-support library (libsupc++.a) don't contain necessary
- functions.
-
-3) STLport builds only multithreaded libraries (by default), so your
- application should be compiled as multithreaded, too. Use -pthread
- (or -pthreads on Solaris) option for GCC, -mt for SunPro and so on.
- Sometimes you should define _REENTRANT or something else, depends
- upon platform/compiler. See compiler's and linker's options
- on command line when you build unit tests (build/test/unit)
- for reference. The last is useful for ANY platform (special
- attention for Windows users).
-
-4) Don't hesitate to read READMEs (doc/README*, build/lib/README*,
- build/test/unit/README*) and doc/FAQ.
-
-5) Have fun!
diff --git a/sdk/lib/3rdparty/stlport/configure b/sdk/lib/3rdparty/stlport/configure
deleted file mode 100644
index 7ff02fad..00000000
--- a/sdk/lib/3rdparty/stlport/configure
+++ /dev/null
@@ -1,333 +0,0 @@
-#!/bin/sh
-
-# Time-stamp: <08/06/07 15:22:19 yeti>
-
-base=`cd \`dirname $0\`; echo $PWD`
-
-configmak=$base/build/Makefiles/gmake/config.mak
-
-write_option() {
- target=`echo $1 | sed -e 's/^[^=]*=//'`
- echo $2 := $3$target >> ${configmak}
-}
-
-write_over_option() {
- target=`echo $1 | sed -e 's/^[^=]*=//'`
- echo $2 ?= $target >> ${configmak}
-}
-
-print_help() {
- cat < base install path (/usr/local/)
- --bindir= install path for executables (PREFIX/bin)
- --libdir= install path for libraries (PREFIX/lib)
- --includedir= install path for headers (PREFIX/include)
-
- --target= target platform (cross-compiling)
-
- --help print this help message and exit
-
- --with-stlport= use STLport in catalog
- --without-stlport compile without STLport
- --with-boost= use boost headers in catalog
- --with-system-boost use boost installed on this system
- --with-msvc= use MS VC from this catalog
- --with-mssdk= use MS SDK from this catalog
- --with-extra-cxxflags=
- pass extra options to C++ compiler
- --with-extra-cflags=
- pass extra options to C compiler
- --with-extra-ldflags=
- pass extra options to linker (via C/C++)
- --use-static-gcc use static gcc libs instead of shared libgcc_s (useful for gcc compiler,
- that was builded with --enable-shared [default]; if compiler was builded
- with --disable-shared, static libraries will be used in any case)
- --clean remove custom settings (file ${configmak})
- and use default values
- --with-cxx= use as C++ compiler (use --target= for cross-compilation)
- --with-cc= use as C compiler (use --target= for cross-compilation)
- --use-compiler-family= use compiler family; one of:
- gcc GNU compilers (default)
- icc Intel compilers
- aCC HP's aCC compilers
- CC SunPro's CC compilers
- bcc Borland's compilers
- --without-debug don't build debug variant
- --without-stldebug don't build STLport's STLP_DEBUG mode
- --enable-static build static
- --disable-shared don't build shared
- --with-lib-motif=
- Use this option to customize the generated library name.
- The motif will be used in the last place before version information,
- separated by an underscore, ex:
- stlportd_MOTIF.5.0.lib
- stlportstld_static_MOTIF.5.1.lib
- --without-thread Per default STLport libraries are built in order to be usable
- in a multithreaded context. If you don't need this you can ask
- for a not thread safe version with this option.
- --without-rtti Disable RTTI when building libraries.
- --with-static-rtl
- --with-dynamic-rtl
- Enables usage of static (libc.lib family) or dynamic (msvcrt.lib family)
- C/C++ runtime library when linking with STLport. If you want your appli/dll
- to link statically with STLport but using the dynamic C runtime use
- --with-dynamic-rtl; if you want to link dynamicaly with STLport but using the
- static C runtime use --with-static-rtl. See README.options for details.
- Don't forget to signal the link method when building your appli or dll, in
- stlport/stl/config/host.h set the following macro depending on the configure
- option:
- --with-static-rtl -> _STLP_USE_DYNAMIC_LIB"
- --with-dynamic-rtl -> _STLP_USE_STATIC_LIB"
- --windows-platform=
- Targetted OS when building for Windows; one of:
- win95 Windows 95
- win98 Windows 98
- winxp Windows XP and later (default)
-
-Environment variables:
-
- \$CXX C++ compiler name (use --target= for cross-compilation)
- \$CC C compiler name (use --target= for cross-compilation)
- \$CXXFLAGS pass extra options to C++ compiler
- \$CFLAGS pass extra options to C compiler
- \$LDFLAGS pass extra options to linker (via C/C++)
-
- Options has preference over environment variables.
-
-EOF
-}
-
-default_settings () {
- # if [ "$boost_set" = "" ]; then
- # write_option "${PWD}/external/boost" BOOST_DIR
- # fi
-
- # if [ -z "${stlport_set}" ]; then
- # write_over_option "$base" STLPORT_DIR
- # fi
-
- # Set in Makefiles/gmake/top.mak
- if [ -z "${compiler_family_set}" ]; then
- # write_option gcc COMPILER_NAME
- echo include gcc.mak > ${base}/build/lib/Makefile
- echo include gcc.mak > ${base}/build/test/unit/Makefile
- echo include gcc.mak > ${base}/build/test/eh/Makefile
- fi
-
- # Set in Makefiles/gmake/targetdirs.mak
- # if [ -z "${prefix_set}" ]; then
- # write_option "/usr/local" BASE_INSTALL_DIR '${DESTDIR}'
- # fi
-}
-
-[ $# -eq 0 ] && { >${configmak}; default_settings; exit 0; }
-
-for a in $@ ; do
- case $a in
- --help)
- print_help
- exit 0
- ;;
- --clean)
- rm -f ${configmak}
- exit 0
- ;;
- esac
-done
-
->${configmak}
-
-while :
-do
- case $# in
- 0)
- break
- ;;
- esac
- option="$1"
- shift
- case $option in
- --target=*)
- write_option "$option" TARGET_OS
- target_set=y
- ;;
- --with-stlport=*)
- write_option "$option" STLPORT_DIR
- stlport_set=y
- ;;
- --without-stlport)
- write_option 1 WITHOUT_STLPORT
- stlport_set=y
- ;;
- --with-boost=*)
- write_option "$option" BOOST_DIR
- ;;
- --with-system-boost)
- write_option 1 USE_SYSTEM_BOOST
- ;;
- --with-msvc=*)
- write_option "$option" MSVC_DIR
- ;;
- --with-mssdk=*)
- write_option "$option" MSSDK_DIR
- ;;
- --with-extra-cxxflags=*)
- write_option "$option" EXTRA_CXXFLAGS
- cxxflags_set=y
- ;;
- --with-extra-cflags=*)
- write_option "$option" EXTRA_CFLAGS
- cflags_set=y
- ;;
- --with-extra-ldflags=*)
- write_option "$option" EXTRA_LDFLAGS
- ldflags_set=y
- ;;
- --with-lib-motif=*)
- echo "Using $option in generated library names"
- write_option "$option" LIB_MOTIF
- ;;
- --without-thread)
- write_option 1 WITHOUT_THREAD
- ;;
- --without-rtti)
- write_option 1 WITHOUT_RTTI
- ;;
- --with-dynamic-rtl)
- write_option 1 WITH_DYNAMIC_RTL
- ;;
- --with-static-rtl)
- write_option 1 WITH_STATIC_RTL
- ;;
- --use-static-gcc)
- write_option 1 USE_STATIC_LIBGCC
- ;;
- --without-debug)
- write_option 1 _NO_DBG_BUILD
- ;;
- --without-stldebug)
- write_option 1 _NO_STLDBG_BUILD
- ;;
- --enable-static)
- write_option 1 _STATIC_BUILD
- ;;
- --disable-shared)
- write_option 1 _NO_SHARED_BUILD
- ;;
- --with-cxx=*)
- write_option "$option" _FORCE_CXX
- cxx_set=y
- ;;
- --with-cc=*)
- write_option "$option" _FORCE_CC
- cc_set=y
- ;;
- --use-compiler-family=*)
- case `echo $option | sed -e 's/^[^=]*=//'` in
- gcc|icc|aCC|CC|bcc|dmc)
- target=`echo $option | sed -e 's/^[^=]*=//'`
- echo COMPILER_NAME := $target >> ${configmak}
- echo include $target.mak > ${base}/build/lib/Makefile
- echo include $target.mak > ${base}/build/test/unit/Makefile
- echo include $target.mak > ${base}/build/test/eh/Makefile
- ;;
- *)
- echo "Not supported compilers family"
- exit -1
- ;;
- esac
- compiler_family_set=y
- ;;
- --prefix=*)
- write_option "$option" BASE_INSTALL_DIR '${DESTDIR}'
- prefix_set=y
- ;;
- --bindir=*)
- write_option "$option" INSTALL_BIN_DIR '${DESTDIR}'
- ;;
- --libdir=*)
- write_option "$option" INSTALL_LIB_DIR '${DESTDIR}'
- ;;
- --includedir=*)
- write_option "$option" INSTALL_HDR_DIR '${DESTDIR}'
- ;;
- --windows-platform=*)
- case `echo $option | sed -e 's/^[^=]*=//'` in
- win95)
- write_option 0x0400 WINVER
- ;;
- win98)
- write_option 0x0410 WINVER
- ;;
- winxp)
- write_option 0x0501 WINVER
- ;;
- *)
- echo "Not supported windows platform"
- exit -1
- ;;
- esac
- ;;
- *)
- echo "Unknown configuration option '$option'"
- exit -1
- ;;
- esac
-done
-
-if [ -n "${CXX}" ]; then
- if [ -n "${cxx_set}" ]; then
- echo "Both --with-cxx and \$CXX set, using the first"
- elif [ -z "${target_set}" ]; then
- write_option "${CXX}" _FORCE_CXX
- else
- echo "For cross-compilation with gcc use --target option only"
- fi
- if [ -z "${CC}" -a -z "${cc_set}" ]; then
- echo "\$CXX set, but I don't see \$CC!"
- fi
-fi
-
-if [ -n "${CC}" ]; then
- if [ -n "${cxx_set}" ]; then
- echo "Both --with-cc and \$CC set, using the first"
- else
- write_option "${CC}" _FORCE_CC
- fi
-fi
-
-if [ -n "${CXXFLAGS}" ]; then
- if [ -z "${cxxflags_set}" ]; then
- write_option "${CXXFLAGS}" EXTRA_CXXFLAGS
- else
- echo "Both --with-extra-cxxflags and \$CXXFLAGS set, using the first"
- fi
-fi
-
-if [ -n "${CFLAGS}" ]; then
- if [ -z "${cflags_set}" ]; then
- write_option "${CFLAGS}" EXTRA_CFLAGS
- else
- echo "Both --with-extra-cflags and \$CFLAGS set, using the first"
- fi
-fi
-
-if [ -n "${LDFLAGS}" ]; then
- if [ -z "${ldflags_set}" ]; then
- write_option "${LDFLAGS}" EXTRA_LDFLAGS
- else
- echo "Both --with-extra-ldflags and \$LDFLAGS set, using the first"
- fi
-fi
-
-# default settings
-
-default_settings
\ No newline at end of file
diff --git a/sdk/lib/3rdparty/stlport/doc/README.borland b/sdk/lib/3rdparty/stlport/doc/README.borland
deleted file mode 100644
index 50f16e5a..00000000
--- a/sdk/lib/3rdparty/stlport/doc/README.borland
+++ /dev/null
@@ -1,154 +0,0 @@
-
-==================================================
-STLport README for Borland C++ compilers.
-==================================================
-
-by: Francois Dumont, dums@stlport.com, last edited 20 May 2006
-
-============
-Introduction
-============
-This document describes how STLport can be compiled and used with
-Borland compilers.
-
-For any further comments or questions visit STLport mailing lists
-http://stlport.sourceforge.net/Maillists.shtml or forums
-https://sourceforge.net/forum/?group_id=146814
-
-=============
-Prerequisites
-=============
-To build and use STLport you will need following tools and libraries:
- - Borland C++ compiler package 5.5.1 or higher version.
-
- In order to build STLport the Borland compiler and linker have to
- be correctly configurated too. That is to say:
-
- * For the Borland compiler bcc32:
-
- In Borland's 'bin' directory (same directory as bcc32.exe), create a
- bcc32.cfg file containing the compiler option giving it the path to
- native Borland headers:
-
- -I%BORLAND_PATH%\BCC55\include
-
- * For the resource compiler brcc32:
-
- Create an environment variable INCLUDE containing path to native Borland
- headers and especially the windows.h file
-
- set INCLUDE=%BORLAND_PATH%\BCC55\include
-
- * For the Borland linker ilink32:
-
- You need to give path to both the Borland libs and Borland PSDK libs.
- For that you have to create, in the same directory as ilink32.exe, a
- configuration file, ilink32.cfg, that contains:
-
- -L%BORLAND_PATH%\BCC55\lib;%BORLAND_PATH%\BCC55\lib\PSDK
-
- - A GNU make tool. You can get one from www.mingw.org or www.cygwin.com.
- See README.mingw or README.cygwin for additional informations.
-
-===================
-Configuring STLport
-===================
- This is intended to be an optional step, if you want to use default
-configuration simply jump to next chapter 'Building STLport'. Open a console
-and go to the STLport build/lib folder. Run
-
- configure --help
-
- This command will present you the different available build options. Just follow
-the instructions to set STLport configuration according your needs. For example,
-to set the typical configuration for most Borland compilers, run
-
- configure -c bcc
-
-================
-Building STLport
-================
- This is a step by step description of the actions to take in order to build
-and install the STLport libraries:
-
-1. Open a console, you can use a Msys, Cygwin or Windows console.
-
-2. Go to the STLport build/lib folder:
- cd C:\STLport\build\lib
-
-3. Run the following command:
- make -fbcc.mak install
-
- Where 'make' is the GNU make utility you have installed. The name of
-GNU make utility may differ, such as 'mingw32-make'. -f is a make option
-telling it which makefile to use. You have of course to choose the
-appropriate makefile for your compiler, 'bcc.mak' in our case.
-
- Once the command returns you will have all the necessary import libraries
-in STLport's 'lib' folder and DLLs in STLport's 'bin' folder. For a
-description of the generated libraries check the FAQ file in the 'doc' folder.
-For a quick start guide to the STLport make system, see the README file in the
-'build/lib' folder.
-
-===============
-Testing STLport
-===============
-You can use the unit tests to verify STLport behaves correctly. Change into
-STLport's 'build/test/unit' folder and type:
-
- make -fbcc.mak install
-
-This will build and install the unit tests with STLport dynamic libraries.
-Once the unit tests are built you just need to run them. They can be found
-in STLport's bin, bin-g or bin-stlg folders. To rebuild the unit tests
-with STLport static libraries, type:
-
- make -fbcc.mak clean
- make -fbcc.mak install-static
-
-=============
-Using STLport
-=============
-Adjust your include and link paths in Borland IDE or in the command line config
-files. In the include files add the path to STLport's 'stlport' folder. Make sure
-it is the first directory listed there. Add STLport's 'lib' folder for the library
-files (order of paths doesn't matter here).
-
-Now you should be ready to use STLport.
-
-============
-Known limitations
-============
-
-1. If you extend a locale facet based on a Standard facet definition you will
-have to grant your own facet id defition. Ex extracted from
-test/unit/fstream_test.cpp:
-
-#include
-
-using namespace std;
-
-struct my_state {
- char dummy;
-};
-
-struct my_traits : public char_traits {
- typedef my_state state_type;
- typedef fpos pos_type;
-};
-
-class my_codecvt : public codecvt
-{};
-
-// Mandatory locale facet id definition:
-template <>
-locale::id codecvt::id;
-
-2. If you get a linker memory error, e.g. LME351, it probably means that full
-source debugging is enabled and Borland's .TDS file has exceeded the memory
-capacity of Borland's linker (ilink32.exe). To resolve this error, check
-Borland's website for the latest patch for ilink32.exe. In the alternative,
-disable full source debugging in build\Makefiles\gmake\bcc.mak by deleting
-the -v option in the OPT settings.
-
-3. For "'uname' is not recognized . . .", see "Configuring STLport" above.
diff --git a/sdk/lib/3rdparty/stlport/doc/README.dmc b/sdk/lib/3rdparty/stlport/doc/README.dmc
deleted file mode 100644
index 83a48684..00000000
--- a/sdk/lib/3rdparty/stlport/doc/README.dmc
+++ /dev/null
@@ -1,81 +0,0 @@
-==================================================
-STLport README for Digital Mars C++ compilers.
-==================================================
-
-Build of STLport with Digital Mars C++ compiler is very similar
-to the one for Microsoft Visual Studio compiler (see README.msvc).
-
-Below are some additional hints. [DMC users are encouraged to
-contribute additional information.]
-
-=============
-Prerequisites
-=============
-
- - Digital Mars C++ 8.49 or above
-
- - A GNU environment with make tool. Prefer MinGW/MSys to Cygwin because the
- latter contains a link command that is also the name of the Digital Mars linker
- and you might experiment collision between both commands.
- See README.mingw for additional information.
-
-===================
-Installing STLport
-===================
-
- - STLport directory can be almost anywhere EXCEPT native dm\include directory.
-
-===================
-Configuring STLport
-===================
-
- - In a console window go to the STLport build\lib folder. Run
-
- configure -c dmc
-
-================
-Building STLport
-================
-
- - To build STLport libraries:
-
- cd [STLport dir]\build\lib
- [mingw32-make] -f dmc.mak install
-
- - To build STLport (dynamic) unit tests:
-
- cd [STLport dir]\build\test\unit
- [mingw32-make] -f dmc.mak install
-
-============
-Known issues
-============
-
-1. typeinfo.h
-
- DMC forces inclusion of typeinfo.h header at the begining of any
-translation unit. This breaks the STLport include schema, especially
-when building the library. As a workaround STLport typeinfo.h simply
-include native DMC header not performing any internal STLport work as
-importing things to STLport namespace. As a result typeinfo.h should
-never be reference in user code, as it is neither a C nor a C++ header
-this is not considered as a major limitation. The C++ Standard header
-is typeinfo.
-
-2. link.exe and lib.exe
-
- STLport makefiles for DMC use dm_link and dm_lib instead of link and lib to
-avoid conflicts with other vendors' linkers and archivers. To build STLport
-with DMC, please copy or rename the following files:
-
- copy dm\bin\link.exe dm\bin\dm_link.exe
- copy dm\bin\lib.exe dm\bin\dm_lib.exe
-
-3. Free online version.
-
- If DMC's free online version reports compiler or linker errors, the
-solution may be in a free online CD update. Download and unzip all free
-CD patches for versions 8.30 and above, in consecutive order, overwriting
-previous files. Then install free online version 8.49 or above, overwriting
-previous files.
-
diff --git a/sdk/lib/3rdparty/stlport/doc/README.evc3 b/sdk/lib/3rdparty/stlport/doc/README.evc3
deleted file mode 100644
index 7d2cd2bc..00000000
--- a/sdk/lib/3rdparty/stlport/doc/README.evc3
+++ /dev/null
@@ -1,157 +0,0 @@
-
-========================================
-STLport README for eMbedded Visual C++ 3
-========================================
-
-by: Michael Fink, vividos@users.sourceforge.net, last edited 2005-11-15
-
-============
-Introduction
-============
-This document describes how STLport can be compiled and used with Microsoft
-eMbedded Visual C++ 3.
-
-For any further comments or questsion visit STLport mailing lists
-http://stlport.sourceforge.net/Maillists.shtml or forums
-https://sourceforge.net/forum/?group_id=146814
-
-
-=============
-Prerequisites
-=============
-To build and use STLport you will need following tools and libraries:
- - eMbedded Visual C++ 3.0
- - latest CVS version of STLport, use info from page
- 'http://stlport.sourceforge.net/CVS.shtml' to get it.
- Note that you may have to get a different branch, please check out the
- STLport forum "Announcements" which sourcecode is being worked on.
-
-================
-Building STLport
-================
-Note: if you don't plan to use the iostreams part of STLport (via the define
-_STLP_NO_IOSTREAMS), you don't have to build the library. You can skip straight
-to the "Using STLport" section.
-
-If you want to compile for the Pocket PC 2002 SDK (which in most cases you want)
-be sure to set the PLATFORM environment variable to "Pocket PC 2002", e.g. with
-this command:
-
- set PLATFORM=Pocket PC 2002
-
-Open a command line prompt and execute the batch file that sets up compiling
-for ARM or x86 processors. These files usually are in a folder like
-'C:\Program Files\Windows CE eMbedded Tools\EVC\WCE300\BIN\' and are called
-WCEARM.bat and WCEx86.bat. Check if the environment variables are set up
-properly after that call. You can also adjust the batch files to have the
-PLATFORM variable set automatically.
-
-Go into STLport's 'build\lib' folder and type:
-
- configure.bat -c evc3
-
-The makefiles are configured with the given settings. Call configure.bat with
-the --help option to see all options. The program automatically tells you which
-command line to use. If you want to install the libraries, add the "install"
-target as follows:
-
- nmake /fmsvc.mak install
-
-All libraries (debug, stldebug, release) are now built, static and shared
-ones. Import libraries (.lib files) are put in the 'lib\evc3-arm' folder, DLLs
-are put in the 'bin\evc3-arm' folder. If you use another target platform, the
-name of the folder is changed accordingly, e.g. evc3-x86 for emulator files.
-
-Once STLport is built you can decrease the size of the STLport folder by
-removing intermediate build files. This is done with the following command:
-
- nmake /fmsvc.mak clobber
-
-Note: MIPS platform is also available for build, but it may not compile or work
- properly. Use with caution!
-
-===============
-Testing STLport
-===============
-You can use the unit tests to verify STLport behaves correctly. Change into
-STLports 'build\test\unit' folder and type:
-
- nmake /fmsvc.mak install
-
-If you want to build the unit tests for the emulator, you have to reconfigure
-STLport with the configure.bat, as described above.
-
-Once the unit tests are built, upload the binary (found in the 'bin\evc3-arm'
-folder) to your device or emulator and start it (the test runs for about 30
-seconds, depending on the speed of the device). The file 'stlp_test.txt' is
-created in the root folder of the device, which contains the unit test
-results. It should report no errors.
-
-=============
-Using STLport
-=============
-Adjust your include and link paths in eVC3 in 'Tools -> Options -> Directories'
-and add the paths for all platforms and CPUs on which you want to use STLport.
-In the include files add the path to STLport's 'stlport' folder. Make sure it
-is the first directory listed there. Add STLport's 'lib\evc3-arm' or
-'lib\evc3-x86' (depending on what target you use) folder for the library files
-(order of paths doesn't matter here).
-
-There are some preprocessor defines that control usage of the STLport in evc3
-projects:
-
-Define the symbol _STLP_USE_STATIC_LIB when you want to statically link against
-STLport. The linker will remove unused classes and methods then, saving some
-space in the executable.
-
-If you don't want to use the iostreams part of the library, you can specify the
-define _STLP_NO_IOSTREAMS. In this mode there is no need to link against the
-library.
-
-STLport uses automatic linking to find the proper .lib file. If you want to see
-what import library STLport is going to use, define _STLP_VERBOSE_AUTO_LINK.
-When not using automatic linking (by specifying _STLP_DONT_USE_AUTO_LINK), you
-have to specify the proper .lib file in the Project Settings, on the "link" tab.
-The .lib names have the following syntax:
-
- stlport(d|stld)[_static]..lib
-
-Examples:
-
- stlport_static.5.0.lib - static release version, Version 5.0.0
- stlportd_50.lib - dll debug version, Version 5.0.0
-
-Note that usage of the _STLP_DEBUG mode is currently not recommended for
-eMbedded Visual C++ builds using the ARM compiler, due to a compiler bug.
-
-When using STLport together with MFC, be sure to include the MFC headers first,
-then include STLport headers, e.g. in your Stdafx.h. This way STLport correctly
-recognizes MFC usage. You also can define the macro _STLP_USE_MFC, either in
-your project settings or in stlport/stl/config/user_config.h.
-
-Now you should be ready to use STLport.
-
-============
-Known issues
-============
- - Unit Tests in _STLP_DEBUG mode (target 'stldbg-shared') fails in
- __stl_debug_engine::_M_detach() for several tests due to unknown reasons.
- A compiler bug in the ARM compiler is suspected.
- There is currently no workaround for this bug. It is recommended to not use
- _STLP_DEBUG mode.
-
- - Resource compiler issue:
-
- The resource compiler is not a C++ compiler, it is a compiler that translates
- resource files, i.e. files that describe dialogs, strings, version information
- and other parts of the GUI on MS Windows systems.
-
- The problem is that it includes files from the C/C++ include path, and
- STLport uses mechanisms the resource compiler can't handle, e.g. using macro
- names longer than 31 characters.
-
- The workaround is to guard all affected headers (stdio.h, string.h, stdarg.h,
- stdlib.h, ctype.h) against this. The resource compiler is detected by the
- macro RC_INVOKED.
-
- - See also README.evc4 issues.
diff --git a/sdk/lib/3rdparty/stlport/doc/README.evc4 b/sdk/lib/3rdparty/stlport/doc/README.evc4
deleted file mode 100644
index 2b3d27e2..00000000
--- a/sdk/lib/3rdparty/stlport/doc/README.evc4
+++ /dev/null
@@ -1,126 +0,0 @@
-
-========================================
-STLport README for eMbedded Visual C++ 4
-========================================
-
-by: Zdenek Nemec, zero@mapfactor.com, last edited 2005-10-17
-
-============
-Introduction
-============
-This document should provide step-by-step guidance for installing, testing and using the STLport library under Windows CE .NET 4.x
-(aka Windows Mobile 2003 aka Pocket PC 2003).
-For any further comments or questions visit the STLport mailing lists
-http://stlport.sourceforge.net/Maillists.shtml or forums
-https://sourceforge.net/forum/?group_id=146814
-
-=============
-Prerequisites
-=============
-To build and use the STLport you will need following tools and libraries:
- - eMbedded Visual C++ 4.0 SP4
- - an SDK for your target platform with RTTI support
-
-================
-Building STLport
-================
-First, make sure that RTTI is available. Not all SDKs that come with eVC4 also include
-the necessary libs, but there is a patch for the PPC2003 SDK, available at
-http://support.microsoft.com/default.aspx?scid=kb;[LN];830482.
-
-Second, open command line and set proper system variables.
-This can be done by using batch files under your 'eMbedded Visual C++' directory(use either WCEemulator.BAT if you want to build STLport for the emulator or WCEARMV4.BAT if you intend to aim an ARM device).
-NOTE: If you are using Microsoft's batch files to set system variables check if both WCEROOT and SDKROOT vars are set to correct locations. example:
-WCEROOT=C:\Program Files\Microsoft eMbedded C++ 4.0
-SDKROOT=C:\Program Files\Windows CE Tools
-
-Third, when you are 100percent sure you've set correctly systems variables go to the STLport/build/lib dir and run the configure.bat with
-proper -c option (ie. "-c evc4"),
-then invoke following command: 'nmake /fmsvc.mak install' to build the library.
-
-If anything goes wrong check if you met all prerequisities and if you set system vars accordingly to the makfile you are using.
-At the end of build process you should have some libs installed in STLport/lib/evc4-arm or STLport/lib/evc4-x86 and dynamic libs in STLport/bin directory.
-
-You might want to repeat all those steps if you would like to have
-e.g. both ARM and x86 emulator binaries, just don't forget to do
-'nmake /fmsvc.mak clobber' before new build.
-
-Note: MIPS platform is also available for build, but it may not compile or work properly. Use with caution!
-
-===============
-Testing STLport
-===============
-When you successfuly build STLport libs, you should go to STLport/test/unit directory build and run the STLP test suite.
-Use 'nmake /fmsvc.mak' and keep in mind that you still have to have proper system variables set!
-Once test build has finished upload and run stlp_unit_test.exe to your emulator or device.
-Wait for a while (aprox. 2mins) until all tests are done.
-You should see two files next to your binary now.
-Check stlp_test.txt for any errors. If all tests passed you are ready to deploy STLport.
-If some test fails don't worry and check the STLport forum if it's already reported bug or you have found a new one.
-
-=============
-Using STLport
-=============
-Setting up the IDE:
-Before you start using STLport you have to set proper include and libraries search paths.
-Go to 'Tools'>'Options' menu in your eVC 4.0 and then to 'Directories' tab.
-For every platform you want to use STLport add STLport/stlport directory to the FIRST place in 'Include Files'
-and STLport/lib directory in 'Library files' section.
-
-Setting up projects:
-When using STLport together with MFC, you have to define _STLP_USE_MFC to properly include and use STLport.
-
-By default, exception support is not activated. You can detect this via _CPPUNWIND and activate this via /GX.
-Without exception support, e.g. std::bad_alloc is not available, causing compile errors for some code.
-
-Also, there is only one runtime available but the IDE doesn't add the corresponding switch to the command line.
-The right switch (selecting a dynamically linked runtime) is IMHO /MD or /MDd. This then also switches STLport to dynamic linking.
-Alternatively, you can #define _DLL for your project, which achieves the same but, again IMHO, is a less clean solution.
-
-============
-Known issues
-============
-- The compilers that come with eVC4 are almost bug-to-bug compatible with
-the one from VC6, so most workarounds for that compiler apply here, too.
-
-- There is a bug in the MIPS compiler that comes with eVC4 which only surfaces
-under certain conditions:
- * in release mode with global optimizations on (#pragma optimize("g", on))
- * a baseclass has (at least) two pointer members
- * a derived class adds no data members
- * the derived class' cctor defers to the basclass' compiler-generated cctor
- * it is passed as template parameter to a function
-The smallest testcase I could come up with is this:
- struct base {
- void* ptr1;
- void* ptr2;
- };
- struct derived: public base {
- derived() {}
- derived(const derived& __x): base(__x) {}
- };
-
- template void function( SomeType st1, SomeType st2) {}
-
- struct test {
- derived tmp;
- ~test() { function(tmp, tmp); }
- };
- test test;
-..which causes an internal compiler error. Removing the base::ptr1, adding data
-to derived, making function() a normal function, or turning off optimization
-(#pragma optimize("g", off)) all causes the code to compile. This bug affects
-iterators of deque and vector.
-
-- Because of interdependancy between STLport and native Standard library headers
-STLport headers should always be included first in your translation unit (.cpp
-file). That is to say that:
-
-//Wrong headers order:
-#include
-#include
-
-// Correct headers order
-#include
-#include
-
diff --git a/sdk/lib/3rdparty/stlport/doc/README.evc8 b/sdk/lib/3rdparty/stlport/doc/README.evc8
deleted file mode 100644
index 86481b4d..00000000
--- a/sdk/lib/3rdparty/stlport/doc/README.evc8
+++ /dev/null
@@ -1,98 +0,0 @@
-setup VC8 for CE:
-------------------
-
-- VC8 doesn't have any setup batchfiles that prepare the environment for compiling
-with CE. You can take those from eVC4 and adapt them or write your own. This snippet
-should get you going:
-
- rem you need to adapt at least these three
- set OSVERSION=WCE500
- set PLATFORM=MY_OWN_PLATFORM
- set TARGETCPU=MIPSII
-
- rem the compiler is always cl.exe, different compilers are in different paths
- set CC=cl.exe
- rem obviously, these need to be adjusted to where you installed VS2005 and the SDKs
- set VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 8
- set SDKROOT=C:\Programme\Windows CE Tools
-
- set PATH=%VSINSTALLDIR%\VC\ce\bin\x86_mips;%VSINSTALLDIR%\VC\bin;%VSINSTALLDIR%\Common7\IDE;%PATH%
- set PLATFORMROOT=%SDKROOT%\%OSVERSION%\%PLATFORM%
-
- rem add libs and includes from the SDK
- set INCLUDE=%PLATFORMROOT%\include\%TARGETCPU%;%PLATFORMROOT%\MFC\include;%PLATFORMROOT%\ATL\include
- set LIB=%PLATFORMROOT%\lib\%TARGETCPU%;%PLATFORMROOT%\MFC\lib\%TARGETCPU%;%PLATFORMROOT%\ATL\lib\%TARGETCPU%
-
- rem add libs that came with VC8
- rem Note: there are more libs and includes under ce\atlmfc, not sure if these are needed.
- set LIB=%LIB%;%VSINSTALLDIR%\VC\ce\lib\%TARGETCPU%
-
-
-- The snippet below can be used to build STLport for Pocket PC 2003 (using the
- Pocket PC 2003 SDK shipped with Visual Studio 2005, this is the SDK used when
- compiling programs from within the IDE):
-
- set OSVERSION=WCE420
- set PLATFORM=POCKET PC 2003
- set TARGETCPU=ARMV4
-
- rem the compiler is always cl.exe, different compilers are in different paths
- set CC=cl.exe
-
- rem obviously, these need to be adjusted to where you installed VS2005
- set VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 8
- set SDKROOT=%VSINSTALLDIR%\SmartDevices\SDK
-
- set PATH=%VSINSTALLDIR%\VC\ce\bin\x86_arm;%VSINSTALLDIR%\VC\bin;%VSINSTALLDIR%\Common7\IDE;%PATH%
- set PLATFORMROOT=%SDKROOT%\PocketPC2003
-
- rem add libs and includes from the SDK
- set INCLUDE=%PLATFORMROOT%\include
- set LIB=%PLATFORMROOT%\lib\%TARGETCPU%
-
- rem add libs that came with VC8
- set INCLUDE=%INCLUDE%;%VSINSTALLDIR%\VC\ce\atlmfc\include
- set LIB=%LIB%;%VSINSTALLDIR%\VC\ce\lib\%TARGETCPU%;%VSINSTALLDIR%\VC\ce\atlmfc\lib\%TARGETCPU%
-
-
-You should now be able to run cl.exe for the target you expected.
-
-- The cross compilers of VC8 are the same version as for the native target, i.e. MSC14.
-
-- The cross compiler for MIPS has the same bug as mentioned in doc/README.evc4 and
-the same workaround applies. However, using 'whole program optimization', it results
-in an error in the link phase.
-
-- In order for STLport to recognize which target you are compiling for, you need to have
-some macros defined, e.g. for the target architecture. The compilers do that partially on
-their own, but not sufficiently. Therefore, STLport requires these defines:
-
- -- These are generally set for CE:
- _UNICODE;UNICODE;_WIN32;WIN32;UNDER_CE;WINCE;
- -- This one uses an environment variable to set the CE version:
- _WIN32_WCE=$(CEVER);
- -- These are used to help STLport recognise the target architecture:
- $(ARCHFAM);$(_ARCHFAM_);$(INSTRUCTIONSET)
- Note that the instructionset is not strictly needed for x86 but definitely for ARM. It
- doesn't hurt for x86 though, so I'd always set these in any new project.
- -- For release builds:
- NDEBUG;
- -- For debug builds:
- DEBUG;_DEBUG;
- -- For debug builds with additional STLport diagnostics:
- DEBUG;_DEBUG;_STLP_DEBUG;
- -- For MFC applications:
- _AFXDLL;
-
-- Further settings:
- Code generation: Multithreaded [Debug] DLL
- Language: enable RTTI
- Optimization: maximise speed and enable whole program optimization for release builds
-
-- Linker settings:
- Ignore specific libraries: libc.lib;libcd.lib
- Commandline: /SUBSYSTEM:WINDOWSCE
- Optimisation: /LTCG for release builds
-
-- Resource compiler:
- Define: UNDER_CE;WINCE;_WIN32_WCE=$(CEVER)
diff --git a/sdk/lib/3rdparty/stlport/doc/README.evc9 b/sdk/lib/3rdparty/stlport/doc/README.evc9
deleted file mode 100644
index 2ead948b..00000000
--- a/sdk/lib/3rdparty/stlport/doc/README.evc9
+++ /dev/null
@@ -1,95 +0,0 @@
-setup VC9 for CE:
-------------------
-
-- VC9 doesn't have any setup batchfiles that prepare the environment for compiling
-with CE. You can take those from eVC4 and adapt them or write your own. This snippet
-should get you going:
-
- rem you need to adapt at least these three
- set OSVERSION=WCE500
- set PLATFORM=MY_OWN_PLATFORM
- set TARGETCPU=MIPSII
-
- rem the compiler is always cl.exe, different compilers are in different paths
- set CC=cl.exe
- rem obviously, these need to be adjusted to where you installed VS2008 and the SDKs
- set VSINSTALLDIR=C:\Programme\Microsoft Visual Studio 9.0
- set SDKROOT=C:\Programme\Windows CE Tools
-
- set PATH=%VSINSTALLDIR%\VC\ce\bin\x86_mips;%VSINSTALLDIR%\VC\bin;%VSINSTALLDIR%\Common7\IDE;%PATH%
- set PLATFORMROOT=%SDKROOT%\%OSVERSION%\%PLATFORM%
-
- rem add libs and includes from the SDK
- set INCLUDE=%PLATFORMROOT%\include\%TARGETCPU%;%PLATFORMROOT%\MFC\include;%PLATFORMROOT%\ATL\include
- set LIB=%PLATFORMROOT%\lib\%TARGETCPU%;%PLATFORMROOT%\MFC\lib\%TARGETCPU%;%PLATFORMROOT%\ATL\lib\%TARGETCPU%
-
- rem add libs that came with VC9
- rem Note: there are more libs and includes under ce\atlmfc, you need to add these
- rem instead of the ones in the SDK if you want to use the newer version of ATL/MFC.
- set LIB=%LIB%;%VSINSTALLDIR%\VC\ce\lib\%TARGETCPU%
-
-
-- The snippet below can be used to build STLport for Pocket PC 2003 (using the
- Pocket PC 2003 SDK shipped with Visual Studio 2008, this is the SDK used when
- compiling programs from within the IDE):
-
- set OSVERSION=WCE420
- set PLATFORM=POCKET PC 2003
- set TARGETCPU=ARMV4
-
- rem the compiler is always cl.exe, different compilers are in different paths
- set CC=cl.exe
-
- rem obviously, these need to be adjusted to where you installed VS2008
- set VSINSTALLDIR=C:\Program Files\Microsoft Visual Studio 9.0
- set SDKROOT=%VSINSTALLDIR%\SmartDevices\SDK
-
- set PATH=%VSINSTALLDIR%\VC\ce\bin\x86_arm;%VSINSTALLDIR%\VC\bin;%VSINSTALLDIR%\Common7\IDE;%PATH%
- set PLATFORMROOT=%SDKROOT%\PocketPC2003
-
- rem add libs and includes from the SDK
- set INCLUDE=%PLATFORMROOT%\include
- set LIB=%PLATFORMROOT%\lib\%TARGETCPU%
-
- rem add libs that came with VC9
- set INCLUDE=%INCLUDE%;%VSINSTALLDIR%\VC\ce\atlmfc\include
- set LIB=%LIB%;%VSINSTALLDIR%\VC\ce\lib\%TARGETCPU%;%VSINSTALLDIR%\VC\ce\atlmfc\lib\%TARGETCPU%
-
-
-You should now be able to run cl.exe for the target you expected.
-
-- The cross compilers of VC9 are the same version as for the native target, i.e. MSC15.
-
-- In order for STLport to recognize which target you are compiling for, you need to have
-some macros defined, e.g. for the target architecture. The compilers do that partially on
-their own, but not sufficiently. Therefore, STLport requires these defines:
-
- -- These are generally set for CE:
- _UNICODE;UNICODE;_WIN32;WIN32;UNDER_CE;WINCE;
- -- This one uses an environment variable to set the CE version:
- _WIN32_WCE=$(CEVER);
- -- These are used to help STLport recognise the target architecture:
- $(ARCHFAM);$(_ARCHFAM_);$(INSTRUCTIONSET)
- Note that the instructionset is not strictly needed for x86 but definitely for ARM. It
- doesn't hurt for x86 though, so I'd always set these in any new project.
- -- For release builds:
- NDEBUG;
- -- For debug builds:
- DEBUG;_DEBUG;
- -- For debug builds with additional STLport diagnostics:
- DEBUG;_DEBUG;_STLP_DEBUG;
- -- For MFC applications:
- _AFXDLL;
-
-- Further settings:
- Code generation: Multithreaded [Debug] DLL
- Language: enable RTTI
- Optimization: maximise speed and enable whole program optimization for release builds
-
-- Linker settings:
- Ignore specific libraries: libc.lib;libcd.lib
- Commandline: /SUBSYSTEM:WINDOWSCE
- Optimisation: /LTCG for release builds
-
-- Resource compiler:
- Define: UNDER_CE;WINCE;_WIN32_WCE=$(CEVER)
diff --git a/sdk/lib/3rdparty/stlport/doc/README.intel b/sdk/lib/3rdparty/stlport/doc/README.intel
deleted file mode 100644
index 72c64530..00000000
--- a/sdk/lib/3rdparty/stlport/doc/README.intel
+++ /dev/null
@@ -1,19 +0,0 @@
-Build of STLport with Intel C++ compiler for Windows is identical
-to the one for Microsoft Visual Studio compiler (see README.msvc).
-
-Known issues:
-
-1. If you have bind your Intel C++ compiler to the Visual Studio 6
-install and build your application without the -Qvc6 option you might
-experiement linking issue concerning 'std::unexpected' missing symbol.
-The reason of this problem is that without -Qvc6, ICL adds necessary
-code to invoke std::unexpected function when a raised exception is
-different to the one specified in a function prototype. As VC6 library
-do not contain this symbol ICL cannot find it anywhere.
-
- As a workaround, STLport has its own std::unexpected implementation
-that you will find in src/dll_main.cpp. ICL is looking for a static
-symbol so if you use STLport static lib ICL will use its std::unexpected
-implementation but if you use STLport dynamic lib then ICL won't find
-it. You only need then to copy/paste the STLport implementation somewhere
-in your implementation and ICL will be happy.
diff --git a/sdk/lib/3rdparty/stlport/doc/README.msvc b/sdk/lib/3rdparty/stlport/doc/README.msvc
deleted file mode 100644
index a47abacf..00000000
--- a/sdk/lib/3rdparty/stlport/doc/README.msvc
+++ /dev/null
@@ -1,186 +0,0 @@
-
-==================================================
-STLport README for Microsoft Visual C++ compilers.
-==================================================
-
-by: Francois Dumont, dums@stlport.com, last edited 08/02/2005
-
-============
-Introduction
-============
-This document describes how STLport can be compiled and used with Microsoft
-Visual C++ 6 SP5. It can also be used for the MSVC++ family.
-
-For any further comments or questsion visit STLport mailing lists
-http://stlport.sourceforge.net/Maillists.shtml or forums
-https://sourceforge.net/forum/?group_id=146814
-
-=============
-Prerequisites
-=============
-To build and use STLport you will need following tools and libraries:
- - Microsoft Visual C++ 6.0 with at least Service Pack 5 or any higher
- version.
-
-===================
-Configuring STLport
-===================
-In a console window go to the STLport build/lib folder. Run
-
- configure --help
-
-This command will present you the different available build options. Just follow
-the instructions to set STLport configuration according your needs. The only
-mandatory configuration is to declare what is the compiler you are going to
-use, for MSVC 6 it is:
-
- configure -c msvc6
-
-================
-Building STLport
-================
-This is a step by step description of the actions to take in order to have
-the STLport library built:
-
-1. Open a console window. You can get it executing cmd or command depending
-on your Windows OS.
-
-2. Go to MSVC++ Bin directory with a default MSVC6 install it is
- cd "C:\Program Files\Microsoft Visual Studio\VC98\Bin"
-
-3. Run the vcvars32.bat script. This sets the environment variables required
-to have the MSVC++ compiler run during the build process. The most important
-one is the PATH variable so that you can call the cl.exe command which is the
-MSVC++ command line compiler. [You may omit this step, if you chose 'Install paths
-to access command-line tools' during Microsoft Visual Studio installation procedure.]
-
-4. Go to the STLport build/lib folder:
- cd C:\STLport\build\lib
-
-5. Run the following command:
- nmake /fmsvc.mak install
-
- nmake is the make utility from Microsoft. /f is an nmake option
-telling it which make file script to use. You have of course to grant the
-closer make file to your effective compiler, msvc.mak in our case.
-
- Once the command returns, you will have all the necessary libraries within
-the STLport lib folder. For a description of the generated libraries check the README
-file within the src folder.
-
-===============
-Testing STLport
-===============
-You can use the unit tests to verify STLport behaves correctly. Change into
-STLports 'build/test/unit' folder and type:
-
- nmake /fmsvc.mak install
-
-Once the unit test is built you just need to run it. They can be found
-within the STLport bin folder.
-
-=============
-Using STLport
-=============
-Adjust your include and link paths in MSVC IDE (in 'Tools -> Options -> Directories'
-for MSVC6 IDE). In the include files add the path to STLport's 'stlport' folder.
-Make sure it is the first directory listed there. Add STLport's 'lib' folder for
-the library files (order of paths doesn't matter here).
-
-There are some preprocessor defines that control usage of the STLport in msvc
-projects:
-
-If you don't want to use the iostreams part of the library, you can specify the
-define _STLP_NO_IOSTREAMS. In this mode there is no need to link against the
-library.
-
-STLport uses automatic linking to find the proper .lib file. If you want to see
-what import library STLport is going to use, define _STLP_VERBOSE_AUTO_LINK.
-When not using automatic linking (by specifying _STLP_DONT_USE_AUTO_LINK), you
-have to specify the proper .lib file in the Project Settings, on the "link" tab.
-The .lib names have the following syntax:
-
- stlport[d|stld][_x,_static,_statix]..lib
-
- d : debug build
- stld: debug build with _STLP_DEBUG (STL safe) mode
- _x: Build of STLport as a dll but statically link to the native runtime.
- _static : build of a static library
- _statix : build of a static library link dynamically to the native runtime.
-
-Examples:
-
- stlport_static.5.0.lib - static release version, Version 5.0.0
- stlportd.5.0.lib - dll debug version, Version 5.0.0
-
-When using STLport together with MFC, be sure to include the MFC headers first,
-then include STLport headers, e.g. in your Stdafx.h. This way STLport correctly
-recognizes MFC usage. You also can define the macro _STLP_USE_MFC, either in
-your project settings or in stlport/stl/config/user_config.h.
-
-In order to enhance debugging with STLport you can optionally add the content of
-the etc/autoexp.dat file in the autoexp.dat file coming with your Visual Studio
-install.
-
-Now you should be ready to use STLport.
-
-============
-Known issues
-============
-
-1. InterlockedIncrement
-
- If you experiment trouble with the InterlockedIncrement Win32 API function
-like the following message:
-
-C:\Program Files\Microsoft SDK\Include\.\winbase.h(1392) : error C2733: second C
-linkage of overloaded function 'InterlockedIncrement' not allowed
-C:\Program Files\Microsoft SDK\Include\.\winbase.h(1390) : see declaration of
-'InterlockedIncrement'
-
- It means that you are using the new Microsoft platform SDK. There is no
-way to known it from STLport code so you have to signal it in the
-stlport/stl/config/user_config.h file (uncomment _STLP_NEW_PLATFORM_SDK in this file).
-
-2. Native C/C++ library headers location
-
- If you experiment trouble with location of ctime and other Standard headers
-while building or using STLport you might be using the compiler coming with a
-platform SDK. If so please uncomment _STLP_USING_PLATFORM_SDK_COMPILER in
-stlport/stl/config/user_config.h. If it still do not find native headers you will
-perhaps need to change native headers relative path used by STLport. In this case use
-_STLP_NATIVE_INCLUDE_PATH and associated macro in stlport/stl/config/host.h.
-
-4. C symbols in std namespace
-
-The compiler of MSVC++ 6 has a bug when dealing with symbols existant in both
-the global namespace and symbols imported by a using-directive or a
-using-declaration - it will report an ambiguous call to an overloaded
-function (error C2668). Example:
-
-void function();
-namespace ns {
- void function();
- // or:
- // using ::function;
-}
-
-using ns::function;
-// or:
-// using namespace ns;
-
-void call() {
- function();
-}
-
-Since we anticipate that using-declarations or even using-directives are common
-use, STLport by default doesn't import or wrap functions that exist in both the
-global namespace and namespace std, in particular those are functions with C
-origin like fopen() or abs(). Also, it defines additional overloads for
-functions like abs() (overloaded for int, long, float, double, long double) in
-the global namespace.
-
-In order to make STLport include them in the std namespace, you can define the
-_STLP_DO_IMPORT_CSTD_FUNCTIONS macro. Doing so, you will have to explicitely
-scope all your functions calls like std::abs() though - otherwise you only get
-the global abs(int) from the C library.
diff --git a/sdk/lib/3rdparty/stlport/doc/README.wince b/sdk/lib/3rdparty/stlport/doc/README.wince
deleted file mode 100644
index 527e5641..00000000
--- a/sdk/lib/3rdparty/stlport/doc/README.wince
+++ /dev/null
@@ -1,94 +0,0 @@
-Programming under MS Windows CE with STLport
-=============================================
-
-This is supposed to give an overview for programming on MS Windows CE, with and
-partially without STLport, what tools are available and what common pitfalls
-exist. Note that for every supported compiler there is another readme file which
-explains the specifics of that compiler.
-
-
-
-Available compilers:
----------------------
-
-- Embedded Visual C++ 3 (eVC3): this IDE/compiler is for the CE3 target platforms.
-The included compiler is MSC12, the same as for VC6, so many workarounds for its
-'features' apply here, too. STLport works out of the box with this.
-
-- Embedded Visual C++ 4 (eVC4): basically the same as eVC3, but it can compile for
-CE4.x and 5. Note that currently (2007-03-06) I haven't tested this with CE5,
-because you can use a better compiler using VC8/VS2005. This compiler can be
-downloaded for free from the MS website, including a product activation key.
-STLport works out of the box with this.
-
-- Visual C++ 8 (VC8) aka Visual Studio 2005 (VS2005): with this version (and
-partially already version 7) the embedded and desktop IDEs have been merged again,
-so it supports compiling for MS Windows CE, versions 5 and later. Note that the
-freely downloadable express edition does not(!) allow compiling for CE. This IDE
-uses MSC14 as compiler. STLport works out of the box with CE5.
-
-- Platform Builders (PB): this tool is used to create a CE image. You can select the
-modules (e.g. Explorer, but also C++ RTTI) you include in the image. These IDEs use
-several different compilers (MSC12-14). STLport hasn't been tested with this
-IDE, AFAIK.
-
-- There used to be an addon for VC6(?) that allowed compiling for CE. This plugin
-has been superceeded by eVC3/4 and support for it has been removed from STLport in
-version 5.
-
-- Others: some vendors (e.g. Intel) provide compilers that are able to generate
-CE executables. I'm not aware of an attempt to compile STLport with them.
-
-
-
-Environment specialties:
--------------------------
-
-- In order to develop for a platform, the first thing you need is a so-called SDK.
-This package includes headers and libraries that (more or less) resemble the APIs
-available on the device. The IDEs come with a basic selection of SDKs, but in
-general you need to retrieve an according SDK from the vendor. If you are the
-vendor, you can generate an SDK for a platform with Platform Builder.
-
-- The provided API is typically a subset of the 'normal' win32 API. Often, some
-features are simply not supported, like security descriptors when opening files.
-Also, these APIs are only supported for wchar_t strings, e.g. only CreateFileW()
-and not CreateFileA().
-
-- CE doesn't have a current directory, hence no relative paths to that dir. You can
-have relative parts in global paths though.
-
-- CE doesn't have environment variables, thus STLport can't support e.g.
-setenv/getenv. It also doesn't attempt to provide workarounds.
-
-- Since many features are optional (see the description of Platform Builder), it
-is possible that you don't have e.g. a console that std::cout could write to. The
-same applies to exceptions (see e.g. the add-on lib for RTTI for eVC4). Other
-features might go amiss, too. This makes it hard for STLport to adapt to, in
-particular because this information is not available outside PB, a header might
-declare a function that in fact is not present. Keep this in mind when you get
-linker errors.
-
-- The supplied C++ standard library is extremely cut down, e.g. iostreams and
-locales are missing completely.
-
-- The supplied standard C API is at best rudimentary. Functions like e.g. time() or
-clock() are declared but not defined. STLport doesn't include any workarounds for
-these missing functions at present.
-
-- All compilers are cross-compilers, i.e. you run them on a win32 host and they
-produce executable code for the target platform. The same applies to the debugger,
-which is connected via serial, USB or ethernet. Alternatively, there are emulators
-that run on the host machine and simulate the target platform.
-
-- The entrypoint for executables is generally WinMain. Normally, you would have
-switched to a normal main() using /SUBSYSTEM:CONSOLE on the linker commandline.
-The linkers for at least CE4 and 5 don't understand this switch, they claim it
-conflicts with CE targets. Instead, set the entrypoint directly to
-mainACRTStartup.
-
-- The name of a DLL loaded via an import library can't be longer than 32 chars. If
-this is not the case, the application will behave as if the DLL was not present or
-couldn't be loaded for whatever other reason. This limitation applies to at least
-CE 4 and 5.
-
diff --git a/sdk/lib/3rdparty/stlport/doc/build_system.txt b/sdk/lib/3rdparty/stlport/doc/build_system.txt
deleted file mode 100644
index 8d39b0db..00000000
--- a/sdk/lib/3rdparty/stlport/doc/build_system.txt
+++ /dev/null
@@ -1,82 +0,0 @@
-The STLport build system
-========================
-
-This is a basic overview of the STLport build system. At the moment, I'm only familiar
-with the working of the nmake variant, i.e. for MSVC, eVC and ICC/win32, other variants
-may differ.
-
-Overview:
-----------
-
-
-There are three basic classes to consider while building:
-1. The used make tool (currently that is make (GNU make) an nmake (Microsoft)).
-2. The used compiler
-3. The target type, either application or library
-
-Other than that, there are three different settings corresponding to the three different
-STLport modes, 'release', 'debug' and 'STLdebug' and each one has two modes for either
-static or dynamic linking.
-
-The whole build system lies under the build/ dir of the source tree. There, it first
-branches to Makefiles/ (which contains the base of the build system) and to lib/ (which
-contains files to build the STLport library) and test/ (which contains files to build
-tests) (TODO: what is the misc/ folder for?).
-
-Under Makefiles/, you see the initially mentioned branching according to the build tool.
-Here is also where the configure.bat file puts the generated config.mak file. (TODO:
-what are the other files in that folder?)
-
-nmake:
--------
-
-Under nmake/, you then find the common support files for the different compilers and
-files that define generic rules. Here, it then splits into app/ and lib/, which are
-structured similar to each other and to the common nmake/ dir. In each dir you have
-files for the different compilers that are used to make application specific or library
-specific settings.
-
-The branching in the three STLport modes and the static/dynamic linking is not visible
-in the file structure but only in the used nmake variables.
-
-In order to make clear which file includes which other file, here an example when
-compiling the STLport library for eVC4. The call issued is 'nmake /f evc4.mak' in the
-build/lib folder. From there, the following include tree is created:
-
-build/lib/evc.mak
- build/Makefiles/config.mak ; generated by configure.bat
- build/Makefiles/nmake/top.mak
- build/Makefiles/config.mak
- build/Makefiles/nmake/sysid.mak
- build/Makefiles/nmake/sys.mak
- build/Makefiles/nmake/evc4.mak ; evc4 from config
- build/Makefiles/nmake/evc-common.mak
- build/Makefiles/nmake/targetdirs.mak
- build/Makefiles/nmake/extern.mak
- build/Makefiles/nmake/targets.mak
- build/Makefiles/nmake/rules-o.mak
- build/Makefiles/nmake/clean.mak
- build/Makefiles/nmake/lib/top.mak ; would be app/top.mak when building an application
- build/Makefiles/nmake/lib/macro.mak
- build/Makefiles/nmake/lib/evc4.mak ; evc4 from config
- build/Makefiles/nmake/lib/evc-common.mak
- build/Makefiles/nmake/lib/rules-so.mak
- build/Makefiles/nmake/lib/rules-a.mak
- build/Makefiles/nmake/lib/rules-install-so.mak
- build/Makefiles/nmake/lib/rules-install-a.mak
- build/Makefiles/nmake/lib/clean.mak
-
-TODO: build/Makefiles/config.mak is included both by build/lib/evc.mak and by
-build/Makefiles/nmake/top.mak.
-
-Known issues:
---------------
-
-- nmake: MSC doesn't support generating dependency information for makefiles. So, unless
-you modify the direct source file for an object file, no recompilation is triggered! You
-need to either delete all object files that need to be recompiled or 'make clean'
-
-- There are targets to only install e.g. the shared STLdebug version but there is no
-such thing for making clean. This would be useful in the context of above issue for
-making a selective clean only.
-
diff --git a/sdk/lib/3rdparty/zlib/ChangeLog b/sdk/lib/3rdparty/zlib/ChangeLog
deleted file mode 100644
index f22aabae..00000000
--- a/sdk/lib/3rdparty/zlib/ChangeLog
+++ /dev/null
@@ -1,1472 +0,0 @@
-
- ChangeLog file for zlib
-
-Changes in 1.2.8 (28 Apr 2013)
-- Update contrib/minizip/iowin32.c for Windows RT [Vollant]
-- Do not force Z_CONST for C++
-- Clean up contrib/vstudio [Ro§]
-- Correct spelling error in zlib.h
-- Fix mixed line endings in contrib/vstudio
-
-Changes in 1.2.7.3 (13 Apr 2013)
-- Fix version numbers and DLL names in contrib/vstudio/*/zlib.rc
-
-Changes in 1.2.7.2 (13 Apr 2013)
-- Change check for a four-byte type back to hexadecimal
-- Fix typo in win32/Makefile.msc
-- Add casts in gzwrite.c for pointer differences
-
-Changes in 1.2.7.1 (24 Mar 2013)
-- Replace use of unsafe string functions with snprintf if available
-- Avoid including stddef.h on Windows for Z_SOLO compile [Niessink]
-- Fix gzgetc undefine when Z_PREFIX set [Turk]
-- Eliminate use of mktemp in Makefile (not always available)
-- Fix bug in 'F' mode for gzopen()
-- Add inflateGetDictionary() function
-- Correct comment in deflate.h
-- Use _snprintf for snprintf in Microsoft C
-- On Darwin, only use /usr/bin/libtool if libtool is not Apple
-- Delete "--version" file if created by "ar --version" [Richard G.]
-- Fix configure check for veracity of compiler error return codes
-- Fix CMake compilation of static lib for MSVC2010 x64
-- Remove unused variable in infback9.c
-- Fix argument checks in gzlog_compress() and gzlog_write()
-- Clean up the usage of z_const and respect const usage within zlib
-- Clean up examples/gzlog.[ch] comparisons of different types
-- Avoid shift equal to bits in type (caused endless loop)
-- Fix unintialized value bug in gzputc() introduced by const patches
-- Fix memory allocation error in examples/zran.c [Nor]
-- Fix bug where gzopen(), gzclose() would write an empty file
-- Fix bug in gzclose() when gzwrite() runs out of memory
-- Check for input buffer malloc failure in examples/gzappend.c
-- Add note to contrib/blast to use binary mode in stdio
-- Fix comparisons of differently signed integers in contrib/blast
-- Check for invalid code length codes in contrib/puff
-- Fix serious but very rare decompression bug in inftrees.c
-- Update inflateBack() comments, since inflate() can be faster
-- Use underscored I/O function names for WINAPI_FAMILY
-- Add _tr_flush_bits to the external symbols prefixed by --zprefix
-- Add contrib/vstudio/vc10 pre-build step for static only
-- Quote --version-script argument in CMakeLists.txt
-- Don't specify --version-script on Apple platforms in CMakeLists.txt
-- Fix casting error in contrib/testzlib/testzlib.c
-- Fix types in contrib/minizip to match result of get_crc_table()
-- Simplify contrib/vstudio/vc10 with 'd' suffix
-- Add TOP support to win32/Makefile.msc
-- Suport i686 and amd64 assembler builds in CMakeLists.txt
-- Fix typos in the use of _LARGEFILE64_SOURCE in zconf.h
-- Add vc11 and vc12 build files to contrib/vstudio
-- Add gzvprintf() as an undocumented function in zlib
-- Fix configure for Sun shell
-- Remove runtime check in configure for four-byte integer type
-- Add casts and consts to ease user conversion to C++
-- Add man pages for minizip and miniunzip
-- In Makefile uninstall, don't rm if preceding cd fails
-- Do not return Z_BUF_ERROR if deflateParam() has nothing to write
-
-Changes in 1.2.7 (2 May 2012)
-- Replace use of memmove() with a simple copy for portability
-- Test for existence of strerror
-- Restore gzgetc_ for backward compatibility with 1.2.6
-- Fix build with non-GNU make on Solaris
-- Require gcc 4.0 or later on Mac OS X to use the hidden attribute
-- Include unistd.h for Watcom C
-- Use __WATCOMC__ instead of __WATCOM__
-- Do not use the visibility attribute if NO_VIZ defined
-- Improve the detection of no hidden visibility attribute
-- Avoid using __int64 for gcc or solo compilation
-- Cast to char * in gzprintf to avoid warnings [Zinser]
-- Fix make_vms.com for VAX [Zinser]
-- Don't use library or built-in byte swaps
-- Simplify test and use of gcc hidden attribute
-- Fix bug in gzclose_w() when gzwrite() fails to allocate memory
-- Add "x" (O_EXCL) and "e" (O_CLOEXEC) modes support to gzopen()
-- Fix bug in test/minigzip.c for configure --solo
-- Fix contrib/vstudio project link errors [Mohanathas]
-- Add ability to choose the builder in make_vms.com [Schweda]
-- Add DESTDIR support to mingw32 win32/Makefile.gcc
-- Fix comments in win32/Makefile.gcc for proper usage
-- Allow overriding the default install locations for cmake
-- Generate and install the pkg-config file with cmake
-- Build both a static and a shared version of zlib with cmake
-- Include version symbols for cmake builds
-- If using cmake with MSVC, add the source directory to the includes
-- Remove unneeded EXTRA_CFLAGS from win32/Makefile.gcc [Truta]
-- Move obsolete emx makefile to old [Truta]
-- Allow the use of -Wundef when compiling or using zlib
-- Avoid the use of the -u option with mktemp
-- Improve inflate() documentation on the use of Z_FINISH
-- Recognize clang as gcc
-- Add gzopen_w() in Windows for wide character path names
-- Rename zconf.h in CMakeLists.txt to move it out of the way
-- Add source directory in CMakeLists.txt for building examples
-- Look in build directory for zlib.pc in CMakeLists.txt
-- Remove gzflags from zlibvc.def in vc9 and vc10
-- Fix contrib/minizip compilation in the MinGW environment
-- Update ./configure for Solaris, support --64 [Mooney]
-- Remove -R. from Solaris shared build (possible security issue)
-- Avoid race condition for parallel make (-j) running example
-- Fix type mismatch between get_crc_table() and crc_table
-- Fix parsing of version with "-" in CMakeLists.txt [Snider, Ziegler]
-- Fix the path to zlib.map in CMakeLists.txt
-- Force the native libtool in Mac OS X to avoid GNU libtool [Beebe]
-- Add instructions to win32/Makefile.gcc for shared install [Torri]
-
-Changes in 1.2.6.1 (12 Feb 2012)
-- Avoid the use of the Objective-C reserved name "id"
-- Include io.h in gzguts.h for Microsoft compilers
-- Fix problem with ./configure --prefix and gzgetc macro
-- Include gz_header definition when compiling zlib solo
-- Put gzflags() functionality back in zutil.c
-- Avoid library header include in crc32.c for Z_SOLO
-- Use name in GCC_CLASSIC as C compiler for coverage testing, if set
-- Minor cleanup in contrib/minizip/zip.c [Vollant]
-- Update make_vms.com [Zinser]
-- Remove unnecessary gzgetc_ function
-- Use optimized byte swap operations for Microsoft and GNU [Snyder]
-- Fix minor typo in zlib.h comments [Rzesniowiecki]
-
-Changes in 1.2.6 (29 Jan 2012)
-- Update the Pascal interface in contrib/pascal
-- Fix function numbers for gzgetc_ in zlibvc.def files
-- Fix configure.ac for contrib/minizip [Schiffer]
-- Fix large-entry detection in minizip on 64-bit systems [Schiffer]
-- Have ./configure use the compiler return code for error indication
-- Fix CMakeLists.txt for cross compilation [McClure]
-- Fix contrib/minizip/zip.c for 64-bit architectures [Dalsnes]
-- Fix compilation of contrib/minizip on FreeBSD [Marquez]
-- Correct suggested usages in win32/Makefile.msc [Shachar, Horvath]
-- Include io.h for Turbo C / Borland C on all platforms [Truta]
-- Make version explicit in contrib/minizip/configure.ac [Bosmans]
-- Avoid warning for no encryption in contrib/minizip/zip.c [Vollant]
-- Minor cleanup up contrib/minizip/unzip.c [Vollant]
-- Fix bug when compiling minizip with C++ [Vollant]
-- Protect for long name and extra fields in contrib/minizip [Vollant]
-- Avoid some warnings in contrib/minizip [Vollant]
-- Add -I../.. -L../.. to CFLAGS for minizip and miniunzip
-- Add missing libs to minizip linker command
-- Add support for VPATH builds in contrib/minizip
-- Add an --enable-demos option to contrib/minizip/configure
-- Add the generation of configure.log by ./configure
-- Exit when required parameters not provided to win32/Makefile.gcc
-- Have gzputc return the character written instead of the argument
-- Use the -m option on ldconfig for BSD systems [Tobias]
-- Correct in zlib.map when deflateResetKeep was added
-
-Changes in 1.2.5.3 (15 Jan 2012)
-- Restore gzgetc function for binary compatibility
-- Do not use _lseeki64 under Borland C++ [Truta]
-- Update win32/Makefile.msc to build test/*.c [Truta]
-- Remove old/visualc6 given CMakefile and other alternatives
-- Update AS400 build files and documentation [Monnerat]
-- Update win32/Makefile.gcc to build test/*.c [Truta]
-- Permit stronger flushes after Z_BLOCK flushes
-- Avoid extraneous empty blocks when doing empty flushes
-- Permit Z_NULL arguments to deflatePending
-- Allow deflatePrime() to insert bits in the middle of a stream
-- Remove second empty static block for Z_PARTIAL_FLUSH
-- Write out all of the available bits when using Z_BLOCK
-- Insert the first two strings in the hash table after a flush
-
-Changes in 1.2.5.2 (17 Dec 2011)
-- fix ld error: unable to find version dependency 'ZLIB_1.2.5'
-- use relative symlinks for shared libs
-- Avoid searching past window for Z_RLE strategy
-- Assure that high-water mark initialization is always applied in deflate
-- Add assertions to fill_window() in deflate.c to match comments
-- Update python link in README
-- Correct spelling error in gzread.c
-- Fix bug in gzgets() for a concatenated empty gzip stream
-- Correct error in comment for gz_make()
-- Change gzread() and related to ignore junk after gzip streams
-- Allow gzread() and related to continue after gzclearerr()
-- Allow gzrewind() and gzseek() after a premature end-of-file
-- Simplify gzseek() now that raw after gzip is ignored
-- Change gzgetc() to a macro for speed (~40% speedup in testing)
-- Fix gzclose() to return the actual error last encountered
-- Always add large file support for windows
-- Include zconf.h for windows large file support
-- Include zconf.h.cmakein for windows large file support
-- Update zconf.h.cmakein on make distclean
-- Merge vestigial vsnprintf determination from zutil.h to gzguts.h
-- Clarify how gzopen() appends in zlib.h comments
-- Correct documentation of gzdirect() since junk at end now ignored
-- Add a transparent write mode to gzopen() when 'T' is in the mode
-- Update python link in zlib man page
-- Get inffixed.h and MAKEFIXED result to match
-- Add a ./config --solo option to make zlib subset with no libary use
-- Add undocumented inflateResetKeep() function for CAB file decoding
-- Add --cover option to ./configure for gcc coverage testing
-- Add #define ZLIB_CONST option to use const in the z_stream interface
-- Add comment to gzdopen() in zlib.h to use dup() when using fileno()
-- Note behavior of uncompress() to provide as much data as it can
-- Add files in contrib/minizip to aid in building libminizip
-- Split off AR options in Makefile.in and configure
-- Change ON macro to Z_ARG to avoid application conflicts
-- Facilitate compilation with Borland C++ for pragmas and vsnprintf
-- Include io.h for Turbo C / Borland C++
-- Move example.c and minigzip.c to test/
-- Simplify incomplete code table filling in inflate_table()
-- Remove code from inflate.c and infback.c that is impossible to execute
-- Test the inflate code with full coverage
-- Allow deflateSetDictionary, inflateSetDictionary at any time (in raw)
-- Add deflateResetKeep and fix inflateResetKeep to retain dictionary
-- Fix gzwrite.c to accommodate reduced memory zlib compilation
-- Have inflate() with Z_FINISH avoid the allocation of a window
-- Do not set strm->adler when doing raw inflate
-- Fix gzeof() to behave just like feof() when read is not past end of file
-- Fix bug in gzread.c when end-of-file is reached
-- Avoid use of Z_BUF_ERROR in gz* functions except for premature EOF
-- Document gzread() capability to read concurrently written files
-- Remove hard-coding of resource compiler in CMakeLists.txt [Blammo]
-
-Changes in 1.2.5.1 (10 Sep 2011)
-- Update FAQ entry on shared builds (#13)
-- Avoid symbolic argument to chmod in Makefile.in
-- Fix bug and add consts in contrib/puff [Oberhumer]
-- Update contrib/puff/zeros.raw test file to have all block types
-- Add full coverage test for puff in contrib/puff/Makefile
-- Fix static-only-build install in Makefile.in
-- Fix bug in unzGetCurrentFileInfo() in contrib/minizip [Kuno]
-- Add libz.a dependency to shared in Makefile.in for parallel builds
-- Spell out "number" (instead of "nb") in zlib.h for total_in, total_out
-- Replace $(...) with `...` in configure for non-bash sh [Bowler]
-- Add darwin* to Darwin* and solaris* to SunOS\ 5* in configure [Groffen]
-- Add solaris* to Linux* in configure to allow gcc use [Groffen]
-- Add *bsd* to Linux* case in configure [Bar-Lev]
-- Add inffast.obj to dependencies in win32/Makefile.msc
-- Correct spelling error in deflate.h [Kohler]
-- Change libzdll.a again to libz.dll.a (!) in win32/Makefile.gcc
-- Add test to configure for GNU C looking for gcc in output of $cc -v
-- Add zlib.pc generation to win32/Makefile.gcc [Weigelt]
-- Fix bug in zlib.h for _FILE_OFFSET_BITS set and _LARGEFILE64_SOURCE not
-- Add comment in zlib.h that adler32_combine with len2 < 0 makes no sense
-- Make NO_DIVIDE option in adler32.c much faster (thanks to John Reiser)
-- Make stronger test in zconf.h to include unistd.h for LFS
-- Apply Darwin patches for 64-bit file offsets to contrib/minizip [Slack]
-- Fix zlib.h LFS support when Z_PREFIX used
-- Add updated as400 support (removed from old) [Monnerat]
-- Avoid deflate sensitivity to volatile input data
-- Avoid division in adler32_combine for NO_DIVIDE
-- Clarify the use of Z_FINISH with deflateBound() amount of space
-- Set binary for output file in puff.c
-- Use u4 type for crc_table to avoid conversion warnings
-- Apply casts in zlib.h to avoid conversion warnings
-- Add OF to prototypes for adler32_combine_ and crc32_combine_ [Miller]
-- Improve inflateSync() documentation to note indeterminancy
-- Add deflatePending() function to return the amount of pending output
-- Correct the spelling of "specification" in FAQ [Randers-Pehrson]
-- Add a check in configure for stdarg.h, use for gzprintf()
-- Check that pointers fit in ints when gzprint() compiled old style
-- Add dummy name before $(SHAREDLIBV) in Makefile [Bar-Lev, Bowler]
-- Delete line in configure that adds -L. libz.a to LDFLAGS [Weigelt]
-- Add debug records in assmebler code [Londer]
-- Update RFC references to use http://tools.ietf.org/html/... [Li]
-- Add --archs option, use of libtool to configure for Mac OS X [Borstel]
-
-Changes in 1.2.5 (19 Apr 2010)
-- Disable visibility attribute in win32/Makefile.gcc [Bar-Lev]
-- Default to libdir as sharedlibdir in configure [Nieder]
-- Update copyright dates on modified source files
-- Update trees.c to be able to generate modified trees.h
-- Exit configure for MinGW, suggesting win32/Makefile.gcc
-- Check for NULL path in gz_open [Homurlu]
-
-Changes in 1.2.4.5 (18 Apr 2010)
-- Set sharedlibdir in configure [Torok]
-- Set LDFLAGS in Makefile.in [Bar-Lev]
-- Avoid mkdir objs race condition in Makefile.in [Bowler]
-- Add ZLIB_INTERNAL in front of internal inter-module functions and arrays
-- Define ZLIB_INTERNAL to hide internal functions and arrays for GNU C
-- Don't use hidden attribute when it is a warning generator (e.g. Solaris)
-
-Changes in 1.2.4.4 (18 Apr 2010)
-- Fix CROSS_PREFIX executable testing, CHOST extract, mingw* [Torok]
-- Undefine _LARGEFILE64_SOURCE in zconf.h if it is zero, but not if empty
-- Try to use bash or ksh regardless of functionality of /bin/sh
-- Fix configure incompatibility with NetBSD sh
-- Remove attempt to run under bash or ksh since have better NetBSD fix
-- Fix win32/Makefile.gcc for MinGW [Bar-Lev]
-- Add diagnostic messages when using CROSS_PREFIX in configure
-- Added --sharedlibdir option to configure [Weigelt]
-- Use hidden visibility attribute when available [Frysinger]
-
-Changes in 1.2.4.3 (10 Apr 2010)
-- Only use CROSS_PREFIX in configure for ar and ranlib if they exist
-- Use CROSS_PREFIX for nm [Bar-Lev]
-- Assume _LARGEFILE64_SOURCE defined is equivalent to true
-- Avoid use of undefined symbols in #if with && and ||
-- Make *64 prototypes in gzguts.h consistent with functions
-- Add -shared load option for MinGW in configure [Bowler]
-- Move z_off64_t to public interface, use instead of off64_t
-- Remove ! from shell test in configure (not portable to Solaris)
-- Change +0 macro tests to -0 for possibly increased portability
-
-Changes in 1.2.4.2 (9 Apr 2010)
-- Add consistent carriage returns to readme.txt's in masmx86 and masmx64
-- Really provide prototypes for *64 functions when building without LFS
-- Only define unlink() in minigzip.c if unistd.h not included
-- Update README to point to contrib/vstudio project files
-- Move projects/vc6 to old/ and remove projects/
-- Include stdlib.h in minigzip.c for setmode() definition under WinCE
-- Clean up assembler builds in win32/Makefile.msc [Rowe]
-- Include sys/types.h for Microsoft for off_t definition
-- Fix memory leak on error in gz_open()
-- Symbolize nm as $NM in configure [Weigelt]
-- Use TEST_LDSHARED instead of LDSHARED to link test programs [Weigelt]
-- Add +0 to _FILE_OFFSET_BITS and _LFS64_LARGEFILE in case not defined
-- Fix bug in gzeof() to take into account unused input data
-- Avoid initialization of structures with variables in puff.c
-- Updated win32/README-WIN32.txt [Rowe]
-
-Changes in 1.2.4.1 (28 Mar 2010)
-- Remove the use of [a-z] constructs for sed in configure [gentoo 310225]
-- Remove $(SHAREDLIB) from LIBS in Makefile.in [Creech]
-- Restore "for debugging" comment on sprintf() in gzlib.c
-- Remove fdopen for MVS from gzguts.h
-- Put new README-WIN32.txt in win32 [Rowe]
-- Add check for shell to configure and invoke another shell if needed
-- Fix big fat stinking bug in gzseek() on uncompressed files
-- Remove vestigial F_OPEN64 define in zutil.h
-- Set and check the value of _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE
-- Avoid errors on non-LFS systems when applications define LFS macros
-- Set EXE to ".exe" in configure for MINGW [Kahle]
-- Match crc32() in crc32.c exactly to the prototype in zlib.h [Sherrill]
-- Add prefix for cross-compilation in win32/makefile.gcc [Bar-Lev]
-- Add DLL install in win32/makefile.gcc [Bar-Lev]
-- Allow Linux* or linux* from uname in configure [Bar-Lev]
-- Allow ldconfig to be redefined in configure and Makefile.in [Bar-Lev]
-- Add cross-compilation prefixes to configure [Bar-Lev]
-- Match type exactly in gz_load() invocation in gzread.c
-- Match type exactly of zcalloc() in zutil.c to zlib.h alloc_func
-- Provide prototypes for *64 functions when building zlib without LFS
-- Don't use -lc when linking shared library on MinGW
-- Remove errno.h check in configure and vestigial errno code in zutil.h
-
-Changes in 1.2.4 (14 Mar 2010)
-- Fix VER3 extraction in configure for no fourth subversion
-- Update zlib.3, add docs to Makefile.in to make .pdf out of it
-- Add zlib.3.pdf to distribution
-- Don't set error code in gzerror() if passed pointer is NULL
-- Apply destination directory fixes to CMakeLists.txt [Lowman]
-- Move #cmakedefine's to a new zconf.in.cmakein
-- Restore zconf.h for builds that don't use configure or cmake
-- Add distclean to dummy Makefile for convenience
-- Update and improve INDEX, README, and FAQ
-- Update CMakeLists.txt for the return of zconf.h [Lowman]
-- Update contrib/vstudio/vc9 and vc10 [Vollant]
-- Change libz.dll.a back to libzdll.a in win32/Makefile.gcc
-- Apply license and readme changes to contrib/asm686 [Raiter]
-- Check file name lengths and add -c option in minigzip.c [Li]
-- Update contrib/amd64 and contrib/masmx86/ [Vollant]
-- Avoid use of "eof" parameter in trees.c to not shadow library variable
-- Update make_vms.com for removal of zlibdefs.h [Zinser]
-- Update assembler code and vstudio projects in contrib [Vollant]
-- Remove outdated assembler code contrib/masm686 and contrib/asm586
-- Remove old vc7 and vc8 from contrib/vstudio
-- Update win32/Makefile.msc, add ZLIB_VER_SUBREVISION [Rowe]
-- Fix memory leaks in gzclose_r() and gzclose_w(), file leak in gz_open()
-- Add contrib/gcc_gvmat64 for longest_match and inflate_fast [Vollant]
-- Remove *64 functions from win32/zlib.def (they're not 64-bit yet)
-- Fix bug in void-returning vsprintf() case in gzwrite.c
-- Fix name change from inflate.h in contrib/inflate86/inffas86.c
-- Check if temporary file exists before removing in make_vms.com [Zinser]
-- Fix make install and uninstall for --static option
-- Fix usage of _MSC_VER in gzguts.h and zutil.h [Truta]
-- Update readme.txt in contrib/masmx64 and masmx86 to assemble
-
-Changes in 1.2.3.9 (21 Feb 2010)
-- Expunge gzio.c
-- Move as400 build information to old
-- Fix updates in contrib/minizip and contrib/vstudio
-- Add const to vsnprintf test in configure to avoid warnings [Weigelt]
-- Delete zconf.h (made by configure) [Weigelt]
-- Change zconf.in.h to zconf.h.in per convention [Weigelt]
-- Check for NULL buf in gzgets()
-- Return empty string for gzgets() with len == 1 (like fgets())
-- Fix description of gzgets() in zlib.h for end-of-file, NULL return
-- Update minizip to 1.1 [Vollant]
-- Avoid MSVC loss of data warnings in gzread.c, gzwrite.c
-- Note in zlib.h that gzerror() should be used to distinguish from EOF
-- Remove use of snprintf() from gzlib.c
-- Fix bug in gzseek()
-- Update contrib/vstudio, adding vc9 and vc10 [Kuno, Vollant]
-- Fix zconf.h generation in CMakeLists.txt [Lowman]
-- Improve comments in zconf.h where modified by configure
-
-Changes in 1.2.3.8 (13 Feb 2010)
-- Clean up text files (tabs, trailing whitespace, etc.) [Oberhumer]
-- Use z_off64_t in gz_zero() and gz_skip() to match state->skip
-- Avoid comparison problem when sizeof(int) == sizeof(z_off64_t)
-- Revert to Makefile.in from 1.2.3.6 (live with the clutter)
-- Fix missing error return in gzflush(), add zlib.h note
-- Add *64 functions to zlib.map [Levin]
-- Fix signed/unsigned comparison in gz_comp()
-- Use SFLAGS when testing shared linking in configure
-- Add --64 option to ./configure to use -m64 with gcc
-- Fix ./configure --help to correctly name options
-- Have make fail if a test fails [Levin]
-- Avoid buffer overrun in contrib/masmx64/gvmat64.asm [Simpson]
-- Remove assembler object files from contrib
-
-Changes in 1.2.3.7 (24 Jan 2010)
-- Always gzopen() with O_LARGEFILE if available
-- Fix gzdirect() to work immediately after gzopen() or gzdopen()
-- Make gzdirect() more precise when the state changes while reading
-- Improve zlib.h documentation in many places
-- Catch memory allocation failure in gz_open()
-- Complete close operation if seek forward in gzclose_w() fails
-- Return Z_ERRNO from gzclose_r() if close() fails
-- Return Z_STREAM_ERROR instead of EOF for gzclose() being passed NULL
-- Return zero for gzwrite() errors to match zlib.h description
-- Return -1 on gzputs() error to match zlib.h description
-- Add zconf.in.h to allow recovery from configure modification [Weigelt]
-- Fix static library permissions in Makefile.in [Weigelt]
-- Avoid warnings in configure tests that hide functionality [Weigelt]
-- Add *BSD and DragonFly to Linux case in configure [gentoo 123571]
-- Change libzdll.a to libz.dll.a in win32/Makefile.gcc [gentoo 288212]
-- Avoid access of uninitialized data for first inflateReset2 call [Gomes]
-- Keep object files in subdirectories to reduce the clutter somewhat
-- Remove default Makefile and zlibdefs.h, add dummy Makefile
-- Add new external functions to Z_PREFIX, remove duplicates, z_z_ -> z_
-- Remove zlibdefs.h completely -- modify zconf.h instead
-
-Changes in 1.2.3.6 (17 Jan 2010)
-- Avoid void * arithmetic in gzread.c and gzwrite.c
-- Make compilers happier with const char * for gz_error message
-- Avoid unused parameter warning in inflate.c
-- Avoid signed-unsigned comparison warning in inflate.c
-- Indent #pragma's for traditional C
-- Fix usage of strwinerror() in glib.c, change to gz_strwinerror()
-- Correct email address in configure for system options
-- Update make_vms.com and add make_vms.com to contrib/minizip [Zinser]
-- Update zlib.map [Brown]
-- Fix Makefile.in for Solaris 10 make of example64 and minizip64 [Torok]
-- Apply various fixes to CMakeLists.txt [Lowman]
-- Add checks on len in gzread() and gzwrite()
-- Add error message for no more room for gzungetc()
-- Remove zlib version check in gzwrite()
-- Defer compression of gzprintf() result until need to
-- Use snprintf() in gzdopen() if available
-- Remove USE_MMAP configuration determination (only used by minigzip)
-- Remove examples/pigz.c (available separately)
-- Update examples/gun.c to 1.6
-
-Changes in 1.2.3.5 (8 Jan 2010)
-- Add space after #if in zutil.h for some compilers
-- Fix relatively harmless bug in deflate_fast() [Exarevsky]
-- Fix same problem in deflate_slow()
-- Add $(SHAREDLIBV) to LIBS in Makefile.in [Brown]
-- Add deflate_rle() for faster Z_RLE strategy run-length encoding
-- Add deflate_huff() for faster Z_HUFFMAN_ONLY encoding
-- Change name of "write" variable in inffast.c to avoid library collisions
-- Fix premature EOF from gzread() in gzio.c [Brown]
-- Use zlib header window size if windowBits is 0 in inflateInit2()
-- Remove compressBound() call in deflate.c to avoid linking compress.o
-- Replace use of errno in gz* with functions, support WinCE [Alves]
-- Provide alternative to perror() in minigzip.c for WinCE [Alves]
-- Don't use _vsnprintf on later versions of MSVC [Lowman]
-- Add CMake build script and input file [Lowman]
-- Update contrib/minizip to 1.1 [Svensson, Vollant]
-- Moved nintendods directory from contrib to .
-- Replace gzio.c with a new set of routines with the same functionality
-- Add gzbuffer(), gzoffset(), gzclose_r(), gzclose_w() as part of above
-- Update contrib/minizip to 1.1b
-- Change gzeof() to return 0 on error instead of -1 to agree with zlib.h
-
-Changes in 1.2.3.4 (21 Dec 2009)
-- Use old school .SUFFIXES in Makefile.in for FreeBSD compatibility
-- Update comments in configure and Makefile.in for default --shared
-- Fix test -z's in configure [Marquess]
-- Build examplesh and minigzipsh when not testing
-- Change NULL's to Z_NULL's in deflate.c and in comments in zlib.h
-- Import LDFLAGS from the environment in configure
-- Fix configure to populate SFLAGS with discovered CFLAGS options
-- Adapt make_vms.com to the new Makefile.in [Zinser]
-- Add zlib2ansi script for C++ compilation [Marquess]
-- Add _FILE_OFFSET_BITS=64 test to make test (when applicable)
-- Add AMD64 assembler code for longest match to contrib [Teterin]
-- Include options from $SFLAGS when doing $LDSHARED
-- Simplify 64-bit file support by introducing z_off64_t type
-- Make shared object files in objs directory to work around old Sun cc
-- Use only three-part version number for Darwin shared compiles
-- Add rc option to ar in Makefile.in for when ./configure not run
-- Add -WI,-rpath,. to LDFLAGS for OSF 1 V4*
-- Set LD_LIBRARYN32_PATH for SGI IRIX shared compile
-- Protect against _FILE_OFFSET_BITS being defined when compiling zlib
-- Rename Makefile.in targets allstatic to static and allshared to shared
-- Fix static and shared Makefile.in targets to be independent
-- Correct error return bug in gz_open() by setting state [Brown]
-- Put spaces before ;;'s in configure for better sh compatibility
-- Add pigz.c (parallel implementation of gzip) to examples/
-- Correct constant in crc32.c to UL [Leventhal]
-- Reject negative lengths in crc32_combine()
-- Add inflateReset2() function to work like inflateEnd()/inflateInit2()
-- Include sys/types.h for _LARGEFILE64_SOURCE [Brown]
-- Correct typo in doc/algorithm.txt [Janik]
-- Fix bug in adler32_combine() [Zhu]
-- Catch missing-end-of-block-code error in all inflates and in puff
- Assures that random input to inflate eventually results in an error
-- Added enough.c (calculation of ENOUGH for inftrees.h) to examples/
-- Update ENOUGH and its usage to reflect discovered bounds
-- Fix gzerror() error report on empty input file [Brown]
-- Add ush casts in trees.c to avoid pedantic runtime errors
-- Fix typo in zlib.h uncompress() description [Reiss]
-- Correct inflate() comments with regard to automatic header detection
-- Remove deprecation comment on Z_PARTIAL_FLUSH (it stays)
-- Put new version of gzlog (2.0) in examples with interruption recovery
-- Add puff compile option to permit invalid distance-too-far streams
-- Add puff TEST command options, ability to read piped input
-- Prototype the *64 functions in zlib.h when _FILE_OFFSET_BITS == 64, but
- _LARGEFILE64_SOURCE not defined
-- Fix Z_FULL_FLUSH to truly erase the past by resetting s->strstart
-- Fix deflateSetDictionary() to use all 32K for output consistency
-- Remove extraneous #define MIN_LOOKAHEAD in deflate.c (in deflate.h)
-- Clear bytes after deflate lookahead to avoid use of uninitialized data
-- Change a limit in inftrees.c to be more transparent to Coverity Prevent
-- Update win32/zlib.def with exported symbols from zlib.h
-- Correct spelling errors in zlib.h [Willem, Sobrado]
-- Allow Z_BLOCK for deflate() to force a new block
-- Allow negative bits in inflatePrime() to delete existing bit buffer
-- Add Z_TREES flush option to inflate() to return at end of trees
-- Add inflateMark() to return current state information for random access
-- Add Makefile for NintendoDS to contrib [Costa]
-- Add -w in configure compile tests to avoid spurious warnings [Beucler]
-- Fix typos in zlib.h comments for deflateSetDictionary()
-- Fix EOF detection in transparent gzread() [Maier]
-
-Changes in 1.2.3.3 (2 October 2006)
-- Make --shared the default for configure, add a --static option
-- Add compile option to permit invalid distance-too-far streams
-- Add inflateUndermine() function which is required to enable above
-- Remove use of "this" variable name for C++ compatibility [Marquess]
-- Add testing of shared library in make test, if shared library built
-- Use ftello() and fseeko() if available instead of ftell() and fseek()
-- Provide two versions of all functions that use the z_off_t type for
- binary compatibility -- a normal version and a 64-bit offset version,
- per the Large File Support Extension when _LARGEFILE64_SOURCE is
- defined; use the 64-bit versions by default when _FILE_OFFSET_BITS
- is defined to be 64
-- Add a --uname= option to configure to perhaps help with cross-compiling
-
-Changes in 1.2.3.2 (3 September 2006)
-- Turn off silly Borland warnings [Hay]
-- Use off64_t and define _LARGEFILE64_SOURCE when present
-- Fix missing dependency on inffixed.h in Makefile.in
-- Rig configure --shared to build both shared and static [Teredesai, Truta]
-- Remove zconf.in.h and instead create a new zlibdefs.h file
-- Fix contrib/minizip/unzip.c non-encrypted after encrypted [Vollant]
-- Add treebuild.xml (see http://treebuild.metux.de/) [Weigelt]
-
-Changes in 1.2.3.1 (16 August 2006)
-- Add watcom directory with OpenWatcom make files [Daniel]
-- Remove #undef of FAR in zconf.in.h for MVS [Fedtke]
-- Update make_vms.com [Zinser]
-- Use -fPIC for shared build in configure [Teredesai, Nicholson]
-- Use only major version number for libz.so on IRIX and OSF1 [Reinholdtsen]
-- Use fdopen() (not _fdopen()) for Interix in zutil.h [BŠck]
-- Add some FAQ entries about the contrib directory
-- Update the MVS question in the FAQ
-- Avoid extraneous reads after EOF in gzio.c [Brown]
-- Correct spelling of "successfully" in gzio.c [Randers-Pehrson]
-- Add comments to zlib.h about gzerror() usage [Brown]
-- Set extra flags in gzip header in gzopen() like deflate() does
-- Make configure options more compatible with double-dash conventions
- [Weigelt]
-- Clean up compilation under Solaris SunStudio cc [Rowe, Reinholdtsen]
-- Fix uninstall target in Makefile.in [Truta]
-- Add pkgconfig support [Weigelt]
-- Use $(DESTDIR) macro in Makefile.in [Reinholdtsen, Weigelt]
-- Replace set_data_type() with a more accurate detect_data_type() in
- trees.c, according to the txtvsbin.txt document [Truta]
-- Swap the order of #include and #include "zlib.h" in
- gzio.c, example.c and minigzip.c [Truta]
-- Shut up annoying VS2005 warnings about standard C deprecation [Rowe,
- Truta] (where?)
-- Fix target "clean" from win32/Makefile.bor [Truta]
-- Create .pdb and .manifest files in win32/makefile.msc [Ziegler, Rowe]
-- Update zlib www home address in win32/DLL_FAQ.txt [Truta]
-- Update contrib/masmx86/inffas32.asm for VS2005 [Vollant, Van Wassenhove]
-- Enable browse info in the "Debug" and "ASM Debug" configurations in
- the Visual C++ 6 project, and set (non-ASM) "Debug" as default [Truta]
-- Add pkgconfig support [Weigelt]
-- Add ZLIB_VER_MAJOR, ZLIB_VER_MINOR and ZLIB_VER_REVISION in zlib.h,
- for use in win32/zlib1.rc [Polushin, Rowe, Truta]
-- Add a document that explains the new text detection scheme to
- doc/txtvsbin.txt [Truta]
-- Add rfc1950.txt, rfc1951.txt and rfc1952.txt to doc/ [Truta]
-- Move algorithm.txt into doc/ [Truta]
-- Synchronize FAQ with website
-- Fix compressBound(), was low for some pathological cases [Fearnley]
-- Take into account wrapper variations in deflateBound()
-- Set examples/zpipe.c input and output to binary mode for Windows
-- Update examples/zlib_how.html with new zpipe.c (also web site)
-- Fix some warnings in examples/gzlog.c and examples/zran.c (it seems
- that gcc became pickier in 4.0)
-- Add zlib.map for Linux: "All symbols from zlib-1.1.4 remain
- un-versioned, the patch adds versioning only for symbols introduced in
- zlib-1.2.0 or later. It also declares as local those symbols which are
- not designed to be exported." [Levin]
-- Update Z_PREFIX list in zconf.in.h, add --zprefix option to configure
-- Do not initialize global static by default in trees.c, add a response
- NO_INIT_GLOBAL_POINTERS to initialize them if needed [Marquess]
-- Don't use strerror() in gzio.c under WinCE [Yakimov]
-- Don't use errno.h in zutil.h under WinCE [Yakimov]
-- Move arguments for AR to its usage to allow replacing ar [Marot]
-- Add HAVE_VISIBILITY_PRAGMA in zconf.in.h for Mozilla [Randers-Pehrson]
-- Improve inflateInit() and inflateInit2() documentation
-- Fix structure size comment in inflate.h
-- Change configure help option from --h* to --help [Santos]
-
-Changes in 1.2.3 (18 July 2005)
-- Apply security vulnerability fixes to contrib/infback9 as well
-- Clean up some text files (carriage returns, trailing space)
-- Update testzlib, vstudio, masmx64, and masmx86 in contrib [Vollant]
-
-Changes in 1.2.2.4 (11 July 2005)
-- Add inflatePrime() function for starting inflation at bit boundary
-- Avoid some Visual C warnings in deflate.c
-- Avoid more silly Visual C warnings in inflate.c and inftrees.c for 64-bit
- compile
-- Fix some spelling errors in comments [Betts]
-- Correct inflateInit2() error return documentation in zlib.h
-- Add zran.c example of compressed data random access to examples
- directory, shows use of inflatePrime()
-- Fix cast for assignments to strm->state in inflate.c and infback.c
-- Fix zlibCompileFlags() in zutil.c to use 1L for long shifts [Oberhumer]
-- Move declarations of gf2 functions to right place in crc32.c [Oberhumer]
-- Add cast in trees.c t avoid a warning [Oberhumer]
-- Avoid some warnings in fitblk.c, gun.c, gzjoin.c in examples [Oberhumer]
-- Update make_vms.com [Zinser]
-- Initialize state->write in inflateReset() since copied in inflate_fast()
-- Be more strict on incomplete code sets in inflate_table() and increase
- ENOUGH and MAXD -- this repairs a possible security vulnerability for
- invalid inflate input. Thanks to Tavis Ormandy and Markus Oberhumer for
- discovering the vulnerability and providing test cases.
-- Add ia64 support to configure for HP-UX [Smith]
-- Add error return to gzread() for format or i/o error [Levin]
-- Use malloc.h for OS/2 [Necasek]
-
-Changes in 1.2.2.3 (27 May 2005)
-- Replace 1U constants in inflate.c and inftrees.c for 64-bit compile
-- Typecast fread() return values in gzio.c [Vollant]
-- Remove trailing space in minigzip.c outmode (VC++ can't deal with it)
-- Fix crc check bug in gzread() after gzungetc() [Heiner]
-- Add the deflateTune() function to adjust internal compression parameters
-- Add a fast gzip decompressor, gun.c, to examples (use of inflateBack)
-- Remove an incorrect assertion in examples/zpipe.c
-- Add C++ wrapper in infback9.h [Donais]
-- Fix bug in inflateCopy() when decoding fixed codes
-- Note in zlib.h how much deflateSetDictionary() actually uses
-- Remove USE_DICT_HEAD in deflate.c (would mess up inflate if used)
-- Add _WIN32_WCE to define WIN32 in zconf.in.h [Spencer]
-- Don't include stderr.h or errno.h for _WIN32_WCE in zutil.h [Spencer]
-- Add gzdirect() function to indicate transparent reads
-- Update contrib/minizip [Vollant]
-- Fix compilation of deflate.c when both ASMV and FASTEST [Oberhumer]
-- Add casts in crc32.c to avoid warnings [Oberhumer]
-- Add contrib/masmx64 [Vollant]
-- Update contrib/asm586, asm686, masmx86, testzlib, vstudio [Vollant]
-
-Changes in 1.2.2.2 (30 December 2004)
-- Replace structure assignments in deflate.c and inflate.c with zmemcpy to
- avoid implicit memcpy calls (portability for no-library compilation)
-- Increase sprintf() buffer size in gzdopen() to allow for large numbers
-- Add INFLATE_STRICT to check distances against zlib header
-- Improve WinCE errno handling and comments [Chang]
-- Remove comment about no gzip header processing in FAQ
-- Add Z_FIXED strategy option to deflateInit2() to force fixed trees
-- Add updated make_vms.com [Coghlan], update README
-- Create a new "examples" directory, move gzappend.c there, add zpipe.c,
- fitblk.c, gzlog.[ch], gzjoin.c, and zlib_how.html.
-- Add FAQ entry and comments in deflate.c on uninitialized memory access
-- Add Solaris 9 make options in configure [Gilbert]
-- Allow strerror() usage in gzio.c for STDC
-- Fix DecompressBuf in contrib/delphi/ZLib.pas [ManChesTer]
-- Update contrib/masmx86/inffas32.asm and gvmat32.asm [Vollant]
-- Use z_off_t for adler32_combine() and crc32_combine() lengths
-- Make adler32() much faster for small len
-- Use OS_CODE in deflate() default gzip header
-
-Changes in 1.2.2.1 (31 October 2004)
-- Allow inflateSetDictionary() call for raw inflate
-- Fix inflate header crc check bug for file names and comments
-- Add deflateSetHeader() and gz_header structure for custom gzip headers
-- Add inflateGetheader() to retrieve gzip headers
-- Add crc32_combine() and adler32_combine() functions
-- Add alloc_func, free_func, in_func, out_func to Z_PREFIX list
-- Use zstreamp consistently in zlib.h (inflate_back functions)
-- Remove GUNZIP condition from definition of inflate_mode in inflate.h
- and in contrib/inflate86/inffast.S [Truta, Anderson]
-- Add support for AMD64 in contrib/inflate86/inffas86.c [Anderson]
-- Update projects/README.projects and projects/visualc6 [Truta]
-- Update win32/DLL_FAQ.txt [Truta]
-- Avoid warning under NO_GZCOMPRESS in gzio.c; fix typo [Truta]
-- Deprecate Z_ASCII; use Z_TEXT instead [Truta]
-- Use a new algorithm for setting strm->data_type in trees.c [Truta]
-- Do not define an exit() prototype in zutil.c unless DEBUG defined
-- Remove prototype of exit() from zutil.c, example.c, minigzip.c [Truta]
-- Add comment in zlib.h for Z_NO_FLUSH parameter to deflate()
-- Fix Darwin build version identification [Peterson]
-
-Changes in 1.2.2 (3 October 2004)
-- Update zlib.h comments on gzip in-memory processing
-- Set adler to 1 in inflateReset() to support Java test suite [Walles]
-- Add contrib/dotzlib [Ravn]
-- Update win32/DLL_FAQ.txt [Truta]
-- Update contrib/minizip [Vollant]
-- Move contrib/visual-basic.txt to old/ [Truta]
-- Fix assembler builds in projects/visualc6/ [Truta]
-
-Changes in 1.2.1.2 (9 September 2004)
-- Update INDEX file
-- Fix trees.c to update strm->data_type (no one ever noticed!)
-- Fix bug in error case in inflate.c, infback.c, and infback9.c [Brown]
-- Add "volatile" to crc table flag declaration (for DYNAMIC_CRC_TABLE)
-- Add limited multitasking protection to DYNAMIC_CRC_TABLE
-- Add NO_vsnprintf for VMS in zutil.h [Mozilla]
-- Don't declare strerror() under VMS [Mozilla]
-- Add comment to DYNAMIC_CRC_TABLE to use get_crc_table() to initialize
-- Update contrib/ada [Anisimkov]
-- Update contrib/minizip [Vollant]
-- Fix configure to not hardcode directories for Darwin [Peterson]
-- Fix gzio.c to not return error on empty files [Brown]
-- Fix indentation; update version in contrib/delphi/ZLib.pas and
- contrib/pascal/zlibpas.pas [Truta]
-- Update mkasm.bat in contrib/masmx86 [Truta]
-- Update contrib/untgz [Truta]
-- Add projects/README.projects [Truta]
-- Add project for MS Visual C++ 6.0 in projects/visualc6 [Cadieux, Truta]
-- Update win32/DLL_FAQ.txt [Truta]
-- Update list of Z_PREFIX symbols in zconf.h [Randers-Pehrson, Truta]
-- Remove an unnecessary assignment to curr in inftrees.c [Truta]
-- Add OS/2 to exe builds in configure [Poltorak]
-- Remove err dummy parameter in zlib.h [Kientzle]
-
-Changes in 1.2.1.1 (9 January 2004)
-- Update email address in README
-- Several FAQ updates
-- Fix a big fat bug in inftrees.c that prevented decoding valid
- dynamic blocks with only literals and no distance codes --
- Thanks to "Hot Emu" for the bug report and sample file
-- Add a note to puff.c on no distance codes case.
-
-Changes in 1.2.1 (17 November 2003)
-- Remove a tab in contrib/gzappend/gzappend.c
-- Update some interfaces in contrib for new zlib functions
-- Update zlib version number in some contrib entries
-- Add Windows CE definition for ptrdiff_t in zutil.h [Mai, Truta]
-- Support shared libraries on Hurd and KFreeBSD [Brown]
-- Fix error in NO_DIVIDE option of adler32.c
-
-Changes in 1.2.0.8 (4 November 2003)
-- Update version in contrib/delphi/ZLib.pas and contrib/pascal/zlibpas.pas
-- Add experimental NO_DIVIDE #define in adler32.c
- - Possibly faster on some processors (let me know if it is)
-- Correct Z_BLOCK to not return on first inflate call if no wrap
-- Fix strm->data_type on inflate() return to correctly indicate EOB
-- Add deflatePrime() function for appending in the middle of a byte
-- Add contrib/gzappend for an example of appending to a stream
-- Update win32/DLL_FAQ.txt [Truta]
-- Delete Turbo C comment in README [Truta]
-- Improve some indentation in zconf.h [Truta]
-- Fix infinite loop on bad input in configure script [Church]
-- Fix gzeof() for concatenated gzip files [Johnson]
-- Add example to contrib/visual-basic.txt [Michael B.]
-- Add -p to mkdir's in Makefile.in [vda]
-- Fix configure to properly detect presence or lack of printf functions
-- Add AS400 support [Monnerat]
-- Add a little Cygwin support [Wilson]
-
-Changes in 1.2.0.7 (21 September 2003)
-- Correct some debug formats in contrib/infback9
-- Cast a type in a debug statement in trees.c
-- Change search and replace delimiter in configure from % to # [Beebe]
-- Update contrib/untgz to 0.2 with various fixes [Truta]
-- Add build support for Amiga [Nikl]
-- Remove some directories in old that have been updated to 1.2
-- Add dylib building for Mac OS X in configure and Makefile.in
-- Remove old distribution stuff from Makefile
-- Update README to point to DLL_FAQ.txt, and add comment on Mac OS X
-- Update links in README
-
-Changes in 1.2.0.6 (13 September 2003)
-- Minor FAQ updates
-- Update contrib/minizip to 1.00 [Vollant]
-- Remove test of gz functions in example.c when GZ_COMPRESS defined [Truta]
-- Update POSTINC comment for 68060 [Nikl]
-- Add contrib/infback9 with deflate64 decoding (unsupported)
-- For MVS define NO_vsnprintf and undefine FAR [van Burik]
-- Add pragma for fdopen on MVS [van Burik]
-
-Changes in 1.2.0.5 (8 September 2003)
-- Add OF to inflateBackEnd() declaration in zlib.h
-- Remember start when using gzdopen in the middle of a file
-- Use internal off_t counters in gz* functions to properly handle seeks
-- Perform more rigorous check for distance-too-far in inffast.c
-- Add Z_BLOCK flush option to return from inflate at block boundary
-- Set strm->data_type on return from inflate
- - Indicate bits unused, if at block boundary, and if in last block
-- Replace size_t with ptrdiff_t in crc32.c, and check for correct size
-- Add condition so old NO_DEFLATE define still works for compatibility
-- FAQ update regarding the Windows DLL [Truta]
-- INDEX update: add qnx entry, remove aix entry [Truta]
-- Install zlib.3 into mandir [Wilson]
-- Move contrib/zlib_dll_FAQ.txt to win32/DLL_FAQ.txt; update [Truta]
-- Adapt the zlib interface to the new DLL convention guidelines [Truta]
-- Introduce ZLIB_WINAPI macro to allow the export of functions using
- the WINAPI calling convention, for Visual Basic [Vollant, Truta]
-- Update msdos and win32 scripts and makefiles [Truta]
-- Export symbols by name, not by ordinal, in win32/zlib.def [Truta]
-- Add contrib/ada [Anisimkov]
-- Move asm files from contrib/vstudio/vc70_32 to contrib/asm386 [Truta]
-- Rename contrib/asm386 to contrib/masmx86 [Truta, Vollant]
-- Add contrib/masm686 [Truta]
-- Fix offsets in contrib/inflate86 and contrib/masmx86/inffas32.asm
- [Truta, Vollant]
-- Update contrib/delphi; rename to contrib/pascal; add example [Truta]
-- Remove contrib/delphi2; add a new contrib/delphi [Truta]
-- Avoid inclusion of the nonstandard in contrib/iostream,
- and fix some method prototypes [Truta]
-- Fix the ZCR_SEED2 constant to avoid warnings in contrib/minizip
- [Truta]
-- Avoid the use of backslash (\) in contrib/minizip [Vollant]
-- Fix file time handling in contrib/untgz; update makefiles [Truta]
-- Update contrib/vstudio/vc70_32 to comply with the new DLL guidelines
- [Vollant]
-- Remove contrib/vstudio/vc15_16 [Vollant]
-- Rename contrib/vstudio/vc70_32 to contrib/vstudio/vc7 [Truta]
-- Update README.contrib [Truta]
-- Invert the assignment order of match_head and s->prev[...] in
- INSERT_STRING [Truta]
-- Compare TOO_FAR with 32767 instead of 32768, to avoid 16-bit warnings
- [Truta]
-- Compare function pointers with 0, not with NULL or Z_NULL [Truta]
-- Fix prototype of syncsearch in inflate.c [Truta]
-- Introduce ASMINF macro to be enabled when using an ASM implementation
- of inflate_fast [Truta]
-- Change NO_DEFLATE to NO_GZCOMPRESS [Truta]
-- Modify test_gzio in example.c to take a single file name as a
- parameter [Truta]
-- Exit the example.c program if gzopen fails [Truta]
-- Add type casts around strlen in example.c [Truta]
-- Remove casting to sizeof in minigzip.c; give a proper type
- to the variable compared with SUFFIX_LEN [Truta]
-- Update definitions of STDC and STDC99 in zconf.h [Truta]
-- Synchronize zconf.h with the new Windows DLL interface [Truta]
-- Use SYS16BIT instead of __32BIT__ to distinguish between
- 16- and 32-bit platforms [Truta]
-- Use far memory allocators in small 16-bit memory models for
- Turbo C [Truta]
-- Add info about the use of ASMV, ASMINF and ZLIB_WINAPI in
- zlibCompileFlags [Truta]
-- Cygwin has vsnprintf [Wilson]
-- In Windows16, OS_CODE is 0, as in MSDOS [Truta]
-- In Cygwin, OS_CODE is 3 (Unix), not 11 (Windows32) [Wilson]
-
-Changes in 1.2.0.4 (10 August 2003)
-- Minor FAQ updates
-- Be more strict when checking inflateInit2's windowBits parameter
-- Change NO_GUNZIP compile option to NO_GZIP to cover deflate as well
-- Add gzip wrapper option to deflateInit2 using windowBits
-- Add updated QNX rule in configure and qnx directory [Bonnefoy]
-- Make inflate distance-too-far checks more rigorous
-- Clean up FAR usage in inflate
-- Add casting to sizeof() in gzio.c and minigzip.c
-
-Changes in 1.2.0.3 (19 July 2003)
-- Fix silly error in gzungetc() implementation [Vollant]
-- Update contrib/minizip and contrib/vstudio [Vollant]
-- Fix printf format in example.c
-- Correct cdecl support in zconf.in.h [Anisimkov]
-- Minor FAQ updates
-
-Changes in 1.2.0.2 (13 July 2003)
-- Add ZLIB_VERNUM in zlib.h for numerical preprocessor comparisons
-- Attempt to avoid warnings in crc32.c for pointer-int conversion
-- Add AIX to configure, remove aix directory [Bakker]
-- Add some casts to minigzip.c
-- Improve checking after insecure sprintf() or vsprintf() calls
-- Remove #elif's from crc32.c
-- Change leave label to inf_leave in inflate.c and infback.c to avoid
- library conflicts
-- Remove inflate gzip decoding by default--only enable gzip decoding by
- special request for stricter backward compatibility
-- Add zlibCompileFlags() function to return compilation information
-- More typecasting in deflate.c to avoid warnings
-- Remove leading underscore from _Capital #defines [Truta]
-- Fix configure to link shared library when testing
-- Add some Windows CE target adjustments [Mai]
-- Remove #define ZLIB_DLL in zconf.h [Vollant]
-- Add zlib.3 [Rodgers]
-- Update RFC URL in deflate.c and algorithm.txt [Mai]
-- Add zlib_dll_FAQ.txt to contrib [Truta]
-- Add UL to some constants [Truta]
-- Update minizip and vstudio [Vollant]
-- Remove vestigial NEED_DUMMY_RETURN from zconf.in.h
-- Expand use of NO_DUMMY_DECL to avoid all dummy structures
-- Added iostream3 to contrib [Schwardt]
-- Replace rewind() with fseek() for WinCE [Truta]
-- Improve setting of zlib format compression level flags
- - Report 0 for huffman and rle strategies and for level == 0 or 1
- - Report 2 only for level == 6
-- Only deal with 64K limit when necessary at compile time [Truta]
-- Allow TOO_FAR check to be turned off at compile time [Truta]
-- Add gzclearerr() function [Souza]
-- Add gzungetc() function
-
-Changes in 1.2.0.1 (17 March 2003)
-- Add Z_RLE strategy for run-length encoding [Truta]
- - When Z_RLE requested, restrict matches to distance one
- - Update zlib.h, minigzip.c, gzopen(), gzdopen() for Z_RLE
-- Correct FASTEST compilation to allow level == 0
-- Clean up what gets compiled for FASTEST
-- Incorporate changes to zconf.in.h [Vollant]
- - Refine detection of Turbo C need for dummy returns
- - Refine ZLIB_DLL compilation
- - Include additional header file on VMS for off_t typedef
-- Try to use _vsnprintf where it supplants vsprintf [Vollant]
-- Add some casts in inffast.c
-- Enchance comments in zlib.h on what happens if gzprintf() tries to
- write more than 4095 bytes before compression
-- Remove unused state from inflateBackEnd()
-- Remove exit(0) from minigzip.c, example.c
-- Get rid of all those darn tabs
-- Add "check" target to Makefile.in that does the same thing as "test"
-- Add "mostlyclean" and "maintainer-clean" targets to Makefile.in
-- Update contrib/inflate86 [Anderson]
-- Update contrib/testzlib, contrib/vstudio, contrib/minizip [Vollant]
-- Add msdos and win32 directories with makefiles [Truta]
-- More additions and improvements to the FAQ
-
-Changes in 1.2.0 (9 March 2003)
-- New and improved inflate code
- - About 20% faster
- - Does not allocate 32K window unless and until needed
- - Automatically detects and decompresses gzip streams
- - Raw inflate no longer needs an extra dummy byte at end
- - Added inflateBack functions using a callback interface--even faster
- than inflate, useful for file utilities (gzip, zip)
- - Added inflateCopy() function to record state for random access on
- externally generated deflate streams (e.g. in gzip files)
- - More readable code (I hope)
-- New and improved crc32()
- - About 50% faster, thanks to suggestions from Rodney Brown
-- Add deflateBound() and compressBound() functions
-- Fix memory leak in deflateInit2()
-- Permit setting dictionary for raw deflate (for parallel deflate)
-- Fix const declaration for gzwrite()
-- Check for some malloc() failures in gzio.c
-- Fix bug in gzopen() on single-byte file 0x1f
-- Fix bug in gzread() on concatenated file with 0x1f at end of buffer
- and next buffer doesn't start with 0x8b
-- Fix uncompress() to return Z_DATA_ERROR on truncated input
-- Free memory at end of example.c
-- Remove MAX #define in trees.c (conflicted with some libraries)
-- Fix static const's in deflate.c, gzio.c, and zutil.[ch]
-- Declare malloc() and free() in gzio.c if STDC not defined
-- Use malloc() instead of calloc() in zutil.c if int big enough
-- Define STDC for AIX
-- Add aix/ with approach for compiling shared library on AIX
-- Add HP-UX support for shared libraries in configure
-- Add OpenUNIX support for shared libraries in configure
-- Use $cc instead of gcc to build shared library
-- Make prefix directory if needed when installing
-- Correct Macintosh avoidance of typedef Byte in zconf.h
-- Correct Turbo C memory allocation when under Linux
-- Use libz.a instead of -lz in Makefile (assure use of compiled library)
-- Update configure to check for snprintf or vsnprintf functions and their
- return value, warn during make if using an insecure function
-- Fix configure problem with compile-time knowledge of HAVE_UNISTD_H that
- is lost when library is used--resolution is to build new zconf.h
-- Documentation improvements (in zlib.h):
- - Document raw deflate and inflate
- - Update RFCs URL
- - Point out that zlib and gzip formats are different
- - Note that Z_BUF_ERROR is not fatal
- - Document string limit for gzprintf() and possible buffer overflow
- - Note requirement on avail_out when flushing
- - Note permitted values of flush parameter of inflate()
-- Add some FAQs (and even answers) to the FAQ
-- Add contrib/inflate86/ for x86 faster inflate
-- Add contrib/blast/ for PKWare Data Compression Library decompression
-- Add contrib/puff/ simple inflate for deflate format description
-
-Changes in 1.1.4 (11 March 2002)
-- ZFREE was repeated on same allocation on some error conditions.
- This creates a security problem described in
- http://www.zlib.org/advisory-2002-03-11.txt
-- Returned incorrect error (Z_MEM_ERROR) on some invalid data
-- Avoid accesses before window for invalid distances with inflate window
- less than 32K.
-- force windowBits > 8 to avoid a bug in the encoder for a window size
- of 256 bytes. (A complete fix will be available in 1.1.5).
-
-Changes in 1.1.3 (9 July 1998)
-- fix "an inflate input buffer bug that shows up on rare but persistent
- occasions" (Mark)
-- fix gzread and gztell for concatenated .gz files (Didier Le Botlan)
-- fix gzseek(..., SEEK_SET) in write mode
-- fix crc check after a gzeek (Frank Faubert)
-- fix miniunzip when the last entry in a zip file is itself a zip file
- (J Lillge)
-- add contrib/asm586 and contrib/asm686 (Brian Raiter)
- See http://www.muppetlabs.com/~breadbox/software/assembly.html
-- add support for Delphi 3 in contrib/delphi (Bob Dellaca)
-- add support for C++Builder 3 and Delphi 3 in contrib/delphi2 (Davide Moretti)
-- do not exit prematurely in untgz if 0 at start of block (Magnus Holmgren)
-- use macro EXTERN instead of extern to support DLL for BeOS (Sander Stoks)
-- added a FAQ file
-
-- Support gzdopen on Mac with Metrowerks (Jason Linhart)
-- Do not redefine Byte on Mac (Brad Pettit & Jason Linhart)
-- define SEEK_END too if SEEK_SET is not defined (Albert Chin-A-Young)
-- avoid some warnings with Borland C (Tom Tanner)
-- fix a problem in contrib/minizip/zip.c for 16-bit MSDOS (Gilles Vollant)
-- emulate utime() for WIN32 in contrib/untgz (Gilles Vollant)
-- allow several arguments to configure (Tim Mooney, Frodo Looijaard)
-- use libdir and includedir in Makefile.in (Tim Mooney)
-- support shared libraries on OSF1 V4 (Tim Mooney)
-- remove so_locations in "make clean" (Tim Mooney)
-- fix maketree.c compilation error (Glenn, Mark)
-- Python interface to zlib now in Python 1.5 (Jeremy Hylton)
-- new Makefile.riscos (Rich Walker)
-- initialize static descriptors in trees.c for embedded targets (Nick Smith)
-- use "foo-gz" in example.c for RISCOS and VMS (Nick Smith)
-- add the OS/2 files in Makefile.in too (Andrew Zabolotny)
-- fix fdopen and halloc macros for Microsoft C 6.0 (Tom Lane)
-- fix maketree.c to allow clean compilation of inffixed.h (Mark)
-- fix parameter check in deflateCopy (Gunther Nikl)
-- cleanup trees.c, use compressed_len only in debug mode (Christian Spieler)
-- Many portability patches by Christian Spieler:
- . zutil.c, zutil.h: added "const" for zmem*
- . Make_vms.com: fixed some typos
- . Make_vms.com: msdos/Makefile.*: removed zutil.h from some dependency lists
- . msdos/Makefile.msc: remove "default rtl link library" info from obj files
- . msdos/Makefile.*: use model-dependent name for the built zlib library
- . msdos/Makefile.emx, nt/Makefile.emx, nt/Makefile.gcc:
- new makefiles, for emx (DOS/OS2), emx&rsxnt and mingw32 (Windows 9x / NT)
-- use define instead of typedef for Bytef also for MSC small/medium (Tom Lane)
-- replace __far with _far for better portability (Christian Spieler, Tom Lane)
-- fix test for errno.h in configure (Tim Newsham)
-
-Changes in 1.1.2 (19 March 98)
-- added contrib/minzip, mini zip and unzip based on zlib (Gilles Vollant)
- See http://www.winimage.com/zLibDll/unzip.html
-- preinitialize the inflate tables for fixed codes, to make the code
- completely thread safe (Mark)
-- some simplifications and slight speed-up to the inflate code (Mark)
-- fix gzeof on non-compressed files (Allan Schrum)
-- add -std1 option in configure for OSF1 to fix gzprintf (Martin Mokrejs)
-- use default value of 4K for Z_BUFSIZE for 16-bit MSDOS (Tim Wegner + Glenn)
-- added os2/Makefile.def and os2/zlib.def (Andrew Zabolotny)
-- add shared lib support for UNIX_SV4.2MP (MATSUURA Takanori)
-- do not wrap extern "C" around system includes (Tom Lane)
-- mention zlib binding for TCL in README (Andreas Kupries)
-- added amiga/Makefile.pup for Amiga powerUP SAS/C PPC (Andreas Kleinert)
-- allow "make install prefix=..." even after configure (Glenn Randers-Pehrson)
-- allow "configure --prefix $HOME" (Tim Mooney)
-- remove warnings in example.c and gzio.c (Glenn Randers-Pehrson)
-- move Makefile.sas to amiga/Makefile.sas
-
-Changes in 1.1.1 (27 Feb 98)
-- fix macros _tr_tally_* in deflate.h for debug mode (Glenn Randers-Pehrson)
-- remove block truncation heuristic which had very marginal effect for zlib
- (smaller lit_bufsize than in gzip 1.2.4) and degraded a little the
- compression ratio on some files. This also allows inlining _tr_tally for
- matches in deflate_slow.
-- added msdos/Makefile.w32 for WIN32 Microsoft Visual C++ (Bob Frazier)
-
-Changes in 1.1.0 (24 Feb 98)
-- do not return STREAM_END prematurely in inflate (John Bowler)
-- revert to the zlib 1.0.8 inflate to avoid the gcc 2.8.0 bug (Jeremy Buhler)
-- compile with -DFASTEST to get compression code optimized for speed only
-- in minigzip, try mmap'ing the input file first (Miguel Albrecht)
-- increase size of I/O buffers in minigzip.c and gzio.c (not a big gain
- on Sun but significant on HP)
-
-- add a pointer to experimental unzip library in README (Gilles Vollant)
-- initialize variable gcc in configure (Chris Herborth)
-
-Changes in 1.0.9 (17 Feb 1998)
-- added gzputs and gzgets functions
-- do not clear eof flag in gzseek (Mark Diekhans)
-- fix gzseek for files in transparent mode (Mark Diekhans)
-- do not assume that vsprintf returns the number of bytes written (Jens Krinke)
-- replace EXPORT with ZEXPORT to avoid conflict with other programs
-- added compress2 in zconf.h, zlib.def, zlib.dnt
-- new asm code from Gilles Vollant in contrib/asm386
-- simplify the inflate code (Mark):
- . Replace ZALLOC's in huft_build() with single ZALLOC in inflate_blocks_new()
- . ZALLOC the length list in inflate_trees_fixed() instead of using stack
- . ZALLOC the value area for huft_build() instead of using stack
- . Simplify Z_FINISH check in inflate()
-
-- Avoid gcc 2.8.0 comparison bug a little differently than zlib 1.0.8
-- in inftrees.c, avoid cc -O bug on HP (Farshid Elahi)
-- in zconf.h move the ZLIB_DLL stuff earlier to avoid problems with
- the declaration of FAR (Gilles VOllant)
-- install libz.so* with mode 755 (executable) instead of 644 (Marc Lehmann)
-- read_buf buf parameter of type Bytef* instead of charf*
-- zmemcpy parameters are of type Bytef*, not charf* (Joseph Strout)
-- do not redeclare unlink in minigzip.c for WIN32 (John Bowler)
-- fix check for presence of directories in "make install" (Ian Willis)
-
-Changes in 1.0.8 (27 Jan 1998)
-- fixed offsets in contrib/asm386/gvmat32.asm (Gilles Vollant)
-- fix gzgetc and gzputc for big endian systems (Markus Oberhumer)
-- added compress2() to allow setting the compression level
-- include sys/types.h to get off_t on some systems (Marc Lehmann & QingLong)
-- use constant arrays for the static trees in trees.c instead of computing
- them at run time (thanks to Ken Raeburn for this suggestion). To create
- trees.h, compile with GEN_TREES_H and run "make test".
-- check return code of example in "make test" and display result
-- pass minigzip command line options to file_compress
-- simplifying code of inflateSync to avoid gcc 2.8 bug
-
-- support CC="gcc -Wall" in configure -s (QingLong)
-- avoid a flush caused by ftell in gzopen for write mode (Ken Raeburn)
-- fix test for shared library support to avoid compiler warnings
-- zlib.lib -> zlib.dll in msdos/zlib.rc (Gilles Vollant)
-- check for TARGET_OS_MAC in addition to MACOS (Brad Pettit)
-- do not use fdopen for Metrowerks on Mac (Brad Pettit))
-- add checks for gzputc and gzputc in example.c
-- avoid warnings in gzio.c and deflate.c (Andreas Kleinert)
-- use const for the CRC table (Ken Raeburn)
-- fixed "make uninstall" for shared libraries
-- use Tracev instead of Trace in infblock.c
-- in example.c use correct compressed length for test_sync
-- suppress +vnocompatwarnings in configure for HPUX (not always supported)
-
-Changes in 1.0.7 (20 Jan 1998)
-- fix gzseek which was broken in write mode
-- return error for gzseek to negative absolute position
-- fix configure for Linux (Chun-Chung Chen)
-- increase stack space for MSC (Tim Wegner)
-- get_crc_table and inflateSyncPoint are EXPORTed (Gilles Vollant)
-- define EXPORTVA for gzprintf (Gilles Vollant)
-- added man page zlib.3 (Rick Rodgers)
-- for contrib/untgz, fix makedir() and improve Makefile
-
-- check gzseek in write mode in example.c
-- allocate extra buffer for seeks only if gzseek is actually called
-- avoid signed/unsigned comparisons (Tim Wegner, Gilles Vollant)
-- add inflateSyncPoint in zconf.h
-- fix list of exported functions in nt/zlib.dnt and mdsos/zlib.def
-
-Changes in 1.0.6 (19 Jan 1998)
-- add functions gzprintf, gzputc, gzgetc, gztell, gzeof, gzseek, gzrewind and
- gzsetparams (thanks to Roland Giersig and Kevin Ruland for some of this code)
-- Fix a deflate bug occurring only with compression level 0 (thanks to
- Andy Buckler for finding this one).
-- In minigzip, pass transparently also the first byte for .Z files.
-- return Z_BUF_ERROR instead of Z_OK if output buffer full in uncompress()
-- check Z_FINISH in inflate (thanks to Marc Schluper)
-- Implement deflateCopy (thanks to Adam Costello)
-- make static libraries by default in configure, add --shared option.
-- move MSDOS or Windows specific files to directory msdos
-- suppress the notion of partial flush to simplify the interface
- (but the symbol Z_PARTIAL_FLUSH is kept for compatibility with 1.0.4)
-- suppress history buffer provided by application to simplify the interface
- (this feature was not implemented anyway in 1.0.4)
-- next_in and avail_in must be initialized before calling inflateInit or
- inflateInit2
-- add EXPORT in all exported functions (for Windows DLL)
-- added Makefile.nt (thanks to Stephen Williams)
-- added the unsupported "contrib" directory:
- contrib/asm386/ by Gilles Vollant
- 386 asm code replacing longest_match().
- contrib/iostream/ by Kevin Ruland
- A C++ I/O streams interface to the zlib gz* functions
- contrib/iostream2/ by Tyge Løvset
- Another C++ I/O streams interface
- contrib/untgz/ by "Pedro A. Aranda Guti\irrez"
- A very simple tar.gz file extractor using zlib
- contrib/visual-basic.txt by Carlos Rios
- How to use compress(), uncompress() and the gz* functions from VB.
-- pass params -f (filtered data), -h (huffman only), -1 to -9 (compression
- level) in minigzip (thanks to Tom Lane)
-
-- use const for rommable constants in deflate
-- added test for gzseek and gztell in example.c
-- add undocumented function inflateSyncPoint() (hack for Paul Mackerras)
-- add undocumented function zError to convert error code to string
- (for Tim Smithers)
-- Allow compilation of gzio with -DNO_DEFLATE to avoid the compression code.
-- Use default memcpy for Symantec MSDOS compiler.
-- Add EXPORT keyword for check_func (needed for Windows DLL)
-- add current directory to LD_LIBRARY_PATH for "make test"
-- create also a link for libz.so.1
-- added support for FUJITSU UXP/DS (thanks to Toshiaki Nomura)
-- use $(SHAREDLIB) instead of libz.so in Makefile.in (for HPUX)
-- added -soname for Linux in configure (Chun-Chung Chen,
-- assign numbers to the exported functions in zlib.def (for Windows DLL)
-- add advice in zlib.h for best usage of deflateSetDictionary
-- work around compiler bug on Atari (cast Z_NULL in call of s->checkfn)
-- allow compilation with ANSI keywords only enabled for TurboC in large model
-- avoid "versionString"[0] (Borland bug)
-- add NEED_DUMMY_RETURN for Borland
-- use variable z_verbose for tracing in debug mode (L. Peter Deutsch).
-- allow compilation with CC
-- defined STDC for OS/2 (David Charlap)
-- limit external names to 8 chars for MVS (Thomas Lund)
-- in minigzip.c, use static buffers only for 16-bit systems
-- fix suffix check for "minigzip -d foo.gz"
-- do not return an error for the 2nd of two consecutive gzflush() (Felix Lee)
-- use _fdopen instead of fdopen for MSC >= 6.0 (Thomas Fanslau)
-- added makelcc.bat for lcc-win32 (Tom St Denis)
-- in Makefile.dj2, use copy and del instead of install and rm (Frank Donahoe)
-- Avoid expanded $Id$. Use "rcs -kb" or "cvs admin -kb" to avoid Id expansion.
-- check for unistd.h in configure (for off_t)
-- remove useless check parameter in inflate_blocks_free
-- avoid useless assignment of s->check to itself in inflate_blocks_new
-- do not flush twice in gzclose (thanks to Ken Raeburn)
-- rename FOPEN as F_OPEN to avoid clash with /usr/include/sys/file.h
-- use NO_ERRNO_H instead of enumeration of operating systems with errno.h
-- work around buggy fclose on pipes for HP/UX
-- support zlib DLL with BORLAND C++ 5.0 (thanks to Glenn Randers-Pehrson)
-- fix configure if CC is already equal to gcc
-
-Changes in 1.0.5 (3 Jan 98)
-- Fix inflate to terminate gracefully when fed corrupted or invalid data
-- Use const for rommable constants in inflate
-- Eliminate memory leaks on error conditions in inflate
-- Removed some vestigial code in inflate
-- Update web address in README
-
-Changes in 1.0.4 (24 Jul 96)
-- In very rare conditions, deflate(s, Z_FINISH) could fail to produce an EOF
- bit, so the decompressor could decompress all the correct data but went
- on to attempt decompressing extra garbage data. This affected minigzip too.
-- zlibVersion and gzerror return const char* (needed for DLL)
-- port to RISCOS (no fdopen, no multiple dots, no unlink, no fileno)
-- use z_error only for DEBUG (avoid problem with DLLs)
-
-Changes in 1.0.3 (2 Jul 96)
-- use z_streamp instead of z_stream *, which is now a far pointer in MSDOS
- small and medium models; this makes the library incompatible with previous
- versions for these models. (No effect in large model or on other systems.)
-- return OK instead of BUF_ERROR if previous deflate call returned with
- avail_out as zero but there is nothing to do
-- added memcmp for non STDC compilers
-- define NO_DUMMY_DECL for more Mac compilers (.h files merged incorrectly)
-- define __32BIT__ if __386__ or i386 is defined (pb. with Watcom and SCO)
-- better check for 16-bit mode MSC (avoids problem with Symantec)
-
-Changes in 1.0.2 (23 May 96)
-- added Windows DLL support
-- added a function zlibVersion (for the DLL support)
-- fixed declarations using Bytef in infutil.c (pb with MSDOS medium model)
-- Bytef is define's instead of typedef'd only for Borland C
-- avoid reading uninitialized memory in example.c
-- mention in README that the zlib format is now RFC1950
-- updated Makefile.dj2
-- added algorithm.doc
-
-Changes in 1.0.1 (20 May 96) [1.0 skipped to avoid confusion]
-- fix array overlay in deflate.c which sometimes caused bad compressed data
-- fix inflate bug with empty stored block
-- fix MSDOS medium model which was broken in 0.99
-- fix deflateParams() which could generated bad compressed data.
-- Bytef is define'd instead of typedef'ed (work around Borland bug)
-- added an INDEX file
-- new makefiles for DJGPP (Makefile.dj2), 32-bit Borland (Makefile.b32),
- Watcom (Makefile.wat), Amiga SAS/C (Makefile.sas)
-- speed up adler32 for modern machines without auto-increment
-- added -ansi for IRIX in configure
-- static_init_done in trees.c is an int
-- define unlink as delete for VMS
-- fix configure for QNX
-- add configure branch for SCO and HPUX
-- avoid many warnings (unused variables, dead assignments, etc...)
-- no fdopen for BeOS
-- fix the Watcom fix for 32 bit mode (define FAR as empty)
-- removed redefinition of Byte for MKWERKS
-- work around an MWKERKS bug (incorrect merge of all .h files)
-
-Changes in 0.99 (27 Jan 96)
-- allow preset dictionary shared between compressor and decompressor
-- allow compression level 0 (no compression)
-- add deflateParams in zlib.h: allow dynamic change of compression level
- and compression strategy.
-- test large buffers and deflateParams in example.c
-- add optional "configure" to build zlib as a shared library
-- suppress Makefile.qnx, use configure instead
-- fixed deflate for 64-bit systems (detected on Cray)
-- fixed inflate_blocks for 64-bit systems (detected on Alpha)
-- declare Z_DEFLATED in zlib.h (possible parameter for deflateInit2)
-- always return Z_BUF_ERROR when deflate() has nothing to do
-- deflateInit and inflateInit are now macros to allow version checking
-- prefix all global functions and types with z_ with -DZ_PREFIX
-- make falloc completely reentrant (inftrees.c)
-- fixed very unlikely race condition in ct_static_init
-- free in reverse order of allocation to help memory manager
-- use zlib-1.0/* instead of zlib/* inside the tar.gz
-- make zlib warning-free with "gcc -O3 -Wall -Wwrite-strings -Wpointer-arith
- -Wconversion -Wstrict-prototypes -Wmissing-prototypes"
-- allow gzread on concatenated .gz files
-- deflateEnd now returns Z_DATA_ERROR if it was premature
-- deflate is finally (?) fully deterministic (no matches beyond end of input)
-- Document Z_SYNC_FLUSH
-- add uninstall in Makefile
-- Check for __cpluplus in zlib.h
-- Better test in ct_align for partial flush
-- avoid harmless warnings for Borland C++
-- initialize hash_head in deflate.c
-- avoid warning on fdopen (gzio.c) for HP cc -Aa
-- include stdlib.h for STDC compilers
-- include errno.h for Cray
-- ignore error if ranlib doesn't exist
-- call ranlib twice for NeXTSTEP
-- use exec_prefix instead of prefix for libz.a
-- renamed ct_* as _tr_* to avoid conflict with applications
-- clear z->msg in inflateInit2 before any error return
-- initialize opaque in example.c, gzio.c, deflate.c and inflate.c
-- fixed typo in zconf.h (_GNUC__ => __GNUC__)
-- check for WIN32 in zconf.h and zutil.c (avoid farmalloc in 32-bit mode)
-- fix typo in Make_vms.com (f$trnlnm -> f$getsyi)
-- in fcalloc, normalize pointer if size > 65520 bytes
-- don't use special fcalloc for 32 bit Borland C++
-- use STDC instead of __GO32__ to avoid redeclaring exit, calloc, etc...
-- use Z_BINARY instead of BINARY
-- document that gzclose after gzdopen will close the file
-- allow "a" as mode in gzopen.
-- fix error checking in gzread
-- allow skipping .gz extra-field on pipes
-- added reference to Perl interface in README
-- put the crc table in FAR data (I dislike more and more the medium model :)
-- added get_crc_table
-- added a dimension to all arrays (Borland C can't count).
-- workaround Borland C bug in declaration of inflate_codes_new & inflate_fast
-- guard against multiple inclusion of *.h (for precompiled header on Mac)
-- Watcom C pretends to be Microsoft C small model even in 32 bit mode.
-- don't use unsized arrays to avoid silly warnings by Visual C++:
- warning C4746: 'inflate_mask' : unsized array treated as '__far'
- (what's wrong with far data in far model?).
-- define enum out of inflate_blocks_state to allow compilation with C++
-
-Changes in 0.95 (16 Aug 95)
-- fix MSDOS small and medium model (now easier to adapt to any compiler)
-- inlined send_bits
-- fix the final (:-) bug for deflate with flush (output was correct but
- not completely flushed in rare occasions).
-- default window size is same for compression and decompression
- (it's now sufficient to set MAX_WBITS in zconf.h).
-- voidp -> voidpf and voidnp -> voidp (for consistency with other
- typedefs and because voidnp was not near in large model).
-
-Changes in 0.94 (13 Aug 95)
-- support MSDOS medium model
-- fix deflate with flush (could sometimes generate bad output)
-- fix deflateReset (zlib header was incorrectly suppressed)
-- added support for VMS
-- allow a compression level in gzopen()
-- gzflush now calls fflush
-- For deflate with flush, flush even if no more input is provided.
-- rename libgz.a as libz.a
-- avoid complex expression in infcodes.c triggering Turbo C bug
-- work around a problem with gcc on Alpha (in INSERT_STRING)
-- don't use inline functions (problem with some gcc versions)
-- allow renaming of Byte, uInt, etc... with #define.
-- avoid warning about (unused) pointer before start of array in deflate.c
-- avoid various warnings in gzio.c, example.c, infblock.c, adler32.c, zutil.c
-- avoid reserved word 'new' in trees.c
-
-Changes in 0.93 (25 June 95)
-- temporarily disable inline functions
-- make deflate deterministic
-- give enough lookahead for PARTIAL_FLUSH
-- Set binary mode for stdin/stdout in minigzip.c for OS/2
-- don't even use signed char in inflate (not portable enough)
-- fix inflate memory leak for segmented architectures
-
-Changes in 0.92 (3 May 95)
-- don't assume that char is signed (problem on SGI)
-- Clear bit buffer when starting a stored block
-- no memcpy on Pyramid
-- suppressed inftest.c
-- optimized fill_window, put longest_match inline for gcc
-- optimized inflate on stored blocks.
-- untabify all sources to simplify patches
-
-Changes in 0.91 (2 May 95)
-- Default MEM_LEVEL is 8 (not 9 for Unix) as documented in zlib.h
-- Document the memory requirements in zconf.h
-- added "make install"
-- fix sync search logic in inflateSync
-- deflate(Z_FULL_FLUSH) now works even if output buffer too short
-- after inflateSync, don't scare people with just "lo world"
-- added support for DJGPP
-
-Changes in 0.9 (1 May 95)
-- don't assume that zalloc clears the allocated memory (the TurboC bug
- was Mark's bug after all :)
-- let again gzread copy uncompressed data unchanged (was working in 0.71)
-- deflate(Z_FULL_FLUSH), inflateReset and inflateSync are now fully implemented
-- added a test of inflateSync in example.c
-- moved MAX_WBITS to zconf.h because users might want to change that.
-- document explicitly that zalloc(64K) on MSDOS must return a normalized
- pointer (zero offset)
-- added Makefiles for Microsoft C, Turbo C, Borland C++
-- faster crc32()
-
-Changes in 0.8 (29 April 95)
-- added fast inflate (inffast.c)
-- deflate(Z_FINISH) now returns Z_STREAM_END when done. Warning: this
- is incompatible with previous versions of zlib which returned Z_OK.
-- work around a TurboC compiler bug (bad code for b << 0, see infutil.h)
- (actually that was not a compiler bug, see 0.81 above)
-- gzread no longer reads one extra byte in certain cases
-- In gzio destroy(), don't reference a freed structure
-- avoid many warnings for MSDOS
-- avoid the ERROR symbol which is used by MS Windows
-
-Changes in 0.71 (14 April 95)
-- Fixed more MSDOS compilation problems :( There is still a bug with
- TurboC large model.
-
-Changes in 0.7 (14 April 95)
-- Added full inflate support.
-- Simplified the crc32() interface. The pre- and post-conditioning
- (one's complement) is now done inside crc32(). WARNING: this is
- incompatible with previous versions; see zlib.h for the new usage.
-
-Changes in 0.61 (12 April 95)
-- workaround for a bug in TurboC. example and minigzip now work on MSDOS.
-
-Changes in 0.6 (11 April 95)
-- added minigzip.c
-- added gzdopen to reopen a file descriptor as gzFile
-- added transparent reading of non-gziped files in gzread.
-- fixed bug in gzread (don't read crc as data)
-- fixed bug in destroy (gzio.c) (don't return Z_STREAM_END for gzclose).
-- don't allocate big arrays in the stack (for MSDOS)
-- fix some MSDOS compilation problems
-
-Changes in 0.5:
-- do real compression in deflate.c. Z_PARTIAL_FLUSH is supported but
- not yet Z_FULL_FLUSH.
-- support decompression but only in a single step (forced Z_FINISH)
-- added opaque object for zalloc and zfree.
-- added deflateReset and inflateReset
-- added a variable zlib_version for consistency checking.
-- renamed the 'filter' parameter of deflateInit2 as 'strategy'.
- Added Z_FILTERED and Z_HUFFMAN_ONLY constants.
-
-Changes in 0.4:
-- avoid "zip" everywhere, use zlib instead of ziplib.
-- suppress Z_BLOCK_FLUSH, interpret Z_PARTIAL_FLUSH as block flush
- if compression method == 8.
-- added adler32 and crc32
-- renamed deflateOptions as deflateInit2, call one or the other but not both
-- added the method parameter for deflateInit2.
-- added inflateInit2
-- simplied considerably deflateInit and inflateInit by not supporting
- user-provided history buffer. This is supported only in deflateInit2
- and inflateInit2.
-
-Changes in 0.3:
-- prefix all macro names with Z_
-- use Z_FINISH instead of deflateEnd to finish compression.
-- added Z_HUFFMAN_ONLY
-- added gzerror()
diff --git a/sdk/lib/3rdparty/zlib/FAQ b/sdk/lib/3rdparty/zlib/FAQ
deleted file mode 100644
index 99b7cf92..00000000
--- a/sdk/lib/3rdparty/zlib/FAQ
+++ /dev/null
@@ -1,368 +0,0 @@
-
- Frequently Asked Questions about zlib
-
-
-If your question is not there, please check the zlib home page
-http://zlib.net/ which may have more recent information.
-The lastest zlib FAQ is at http://zlib.net/zlib_faq.html
-
-
- 1. Is zlib Y2K-compliant?
-
- Yes. zlib doesn't handle dates.
-
- 2. Where can I get a Windows DLL version?
-
- The zlib sources can be compiled without change to produce a DLL. See the
- file win32/DLL_FAQ.txt in the zlib distribution. Pointers to the
- precompiled DLL are found in the zlib web site at http://zlib.net/ .
-
- 3. Where can I get a Visual Basic interface to zlib?
-
- See
- * http://marknelson.us/1997/01/01/zlib-engine/
- * win32/DLL_FAQ.txt in the zlib distribution
-
- 4. compress() returns Z_BUF_ERROR.
-
- Make sure that before the call of compress(), the length of the compressed
- buffer is equal to the available size of the compressed buffer and not
- zero. For Visual Basic, check that this parameter is passed by reference
- ("as any"), not by value ("as long").
-
- 5. deflate() or inflate() returns Z_BUF_ERROR.
-
- Before making the call, make sure that avail_in and avail_out are not zero.
- When setting the parameter flush equal to Z_FINISH, also make sure that
- avail_out is big enough to allow processing all pending input. Note that a
- Z_BUF_ERROR is not fatal--another call to deflate() or inflate() can be
- made with more input or output space. A Z_BUF_ERROR may in fact be
- unavoidable depending on how the functions are used, since it is not
- possible to tell whether or not there is more output pending when
- strm.avail_out returns with zero. See http://zlib.net/zlib_how.html for a
- heavily annotated example.
-
- 6. Where's the zlib documentation (man pages, etc.)?
-
- It's in zlib.h . Examples of zlib usage are in the files test/example.c
- and test/minigzip.c, with more in examples/ .
-
- 7. Why don't you use GNU autoconf or libtool or ...?
-
- Because we would like to keep zlib as a very small and simple package.
- zlib is rather portable and doesn't need much configuration.
-
- 8. I found a bug in zlib.
-
- Most of the time, such problems are due to an incorrect usage of zlib.
- Please try to reproduce the problem with a small program and send the
- corresponding source to us at zlib@gzip.org . Do not send multi-megabyte
- data files without prior agreement.
-
- 9. Why do I get "undefined reference to gzputc"?
-
- If "make test" produces something like
-
- example.o(.text+0x154): undefined reference to `gzputc'
-
- check that you don't have old files libz.* in /usr/lib, /usr/local/lib or
- /usr/X11R6/lib. Remove any old versions, then do "make install".
-
-10. I need a Delphi interface to zlib.
-
- See the contrib/delphi directory in the zlib distribution.
-
-11. Can zlib handle .zip archives?
-
- Not by itself, no. See the directory contrib/minizip in the zlib
- distribution.
-
-12. Can zlib handle .Z files?
-
- No, sorry. You have to spawn an uncompress or gunzip subprocess, or adapt
- the code of uncompress on your own.
-
-13. How can I make a Unix shared library?
-
- By default a shared (and a static) library is built for Unix. So:
-
- make distclean
- ./configure
- make
-
-14. How do I install a shared zlib library on Unix?
-
- After the above, then:
-
- make install
-
- However, many flavors of Unix come with a shared zlib already installed.
- Before going to the trouble of compiling a shared version of zlib and
- trying to install it, you may want to check if it's already there! If you
- can #include , it's there. The -lz option will probably link to
- it. You can check the version at the top of zlib.h or with the
- ZLIB_VERSION symbol defined in zlib.h .
-
-15. I have a question about OttoPDF.
-
- We are not the authors of OttoPDF. The real author is on the OttoPDF web
- site: Joel Hainley, jhainley@myndkryme.com.
-
-16. Can zlib decode Flate data in an Adobe PDF file?
-
- Yes. See http://www.pdflib.com/ . To modify PDF forms, see
- http://sourceforge.net/projects/acroformtool/ .
-
-17. Why am I getting this "register_frame_info not found" error on Solaris?
-
- After installing zlib 1.1.4 on Solaris 2.6, running applications using zlib
- generates an error such as:
-
- ld.so.1: rpm: fatal: relocation error: file /usr/local/lib/libz.so:
- symbol __register_frame_info: referenced symbol not found
-
- The symbol __register_frame_info is not part of zlib, it is generated by
- the C compiler (cc or gcc). You must recompile applications using zlib
- which have this problem. This problem is specific to Solaris. See
- http://www.sunfreeware.com for Solaris versions of zlib and applications
- using zlib.
-
-18. Why does gzip give an error on a file I make with compress/deflate?
-
- The compress and deflate functions produce data in the zlib format, which
- is different and incompatible with the gzip format. The gz* functions in
- zlib on the other hand use the gzip format. Both the zlib and gzip formats
- use the same compressed data format internally, but have different headers
- and trailers around the compressed data.
-
-19. Ok, so why are there two different formats?
-
- The gzip format was designed to retain the directory information about a
- single file, such as the name and last modification date. The zlib format
- on the other hand was designed for in-memory and communication channel
- applications, and has a much more compact header and trailer and uses a
- faster integrity check than gzip.
-
-20. Well that's nice, but how do I make a gzip file in memory?
-
- You can request that deflate write the gzip format instead of the zlib
- format using deflateInit2(). You can also request that inflate decode the
- gzip format using inflateInit2(). Read zlib.h for more details.
-
-21. Is zlib thread-safe?
-
- Yes. However any library routines that zlib uses and any application-
- provided memory allocation routines must also be thread-safe. zlib's gz*
- functions use stdio library routines, and most of zlib's functions use the
- library memory allocation routines by default. zlib's *Init* functions
- allow for the application to provide custom memory allocation routines.
-
- Of course, you should only operate on any given zlib or gzip stream from a
- single thread at a time.
-
-22. Can I use zlib in my commercial application?
-
- Yes. Please read the license in zlib.h.
-
-23. Is zlib under the GNU license?
-
- No. Please read the license in zlib.h.
-
-24. The license says that altered source versions must be "plainly marked". So
- what exactly do I need to do to meet that requirement?
-
- You need to change the ZLIB_VERSION and ZLIB_VERNUM #defines in zlib.h. In
- particular, the final version number needs to be changed to "f", and an
- identification string should be appended to ZLIB_VERSION. Version numbers
- x.x.x.f are reserved for modifications to zlib by others than the zlib
- maintainers. For example, if the version of the base zlib you are altering
- is "1.2.3.4", then in zlib.h you should change ZLIB_VERNUM to 0x123f, and
- ZLIB_VERSION to something like "1.2.3.f-zachary-mods-v3". You can also
- update the version strings in deflate.c and inftrees.c.
-
- For altered source distributions, you should also note the origin and
- nature of the changes in zlib.h, as well as in ChangeLog and README, along
- with the dates of the alterations. The origin should include at least your
- name (or your company's name), and an email address to contact for help or
- issues with the library.
-
- Note that distributing a compiled zlib library along with zlib.h and
- zconf.h is also a source distribution, and so you should change
- ZLIB_VERSION and ZLIB_VERNUM and note the origin and nature of the changes
- in zlib.h as you would for a full source distribution.
-
-25. Will zlib work on a big-endian or little-endian architecture, and can I
- exchange compressed data between them?
-
- Yes and yes.
-
-26. Will zlib work on a 64-bit machine?
-
- Yes. It has been tested on 64-bit machines, and has no dependence on any
- data types being limited to 32-bits in length. If you have any
- difficulties, please provide a complete problem report to zlib@gzip.org
-
-27. Will zlib decompress data from the PKWare Data Compression Library?
-
- No. The PKWare DCL uses a completely different compressed data format than
- does PKZIP and zlib. However, you can look in zlib's contrib/blast
- directory for a possible solution to your problem.
-
-28. Can I access data randomly in a compressed stream?
-
- No, not without some preparation. If when compressing you periodically use
- Z_FULL_FLUSH, carefully write all the pending data at those points, and
- keep an index of those locations, then you can start decompression at those
- points. You have to be careful to not use Z_FULL_FLUSH too often, since it
- can significantly degrade compression. Alternatively, you can scan a
- deflate stream once to generate an index, and then use that index for
- random access. See examples/zran.c .
-
-29. Does zlib work on MVS, OS/390, CICS, etc.?
-
- It has in the past, but we have not heard of any recent evidence. There
- were working ports of zlib 1.1.4 to MVS, but those links no longer work.
- If you know of recent, successful applications of zlib on these operating
- systems, please let us know. Thanks.
-
-30. Is there some simpler, easier to read version of inflate I can look at to
- understand the deflate format?
-
- First off, you should read RFC 1951. Second, yes. Look in zlib's
- contrib/puff directory.
-
-31. Does zlib infringe on any patents?
-
- As far as we know, no. In fact, that was originally the whole point behind
- zlib. Look here for some more information:
-
- http://www.gzip.org/#faq11
-
-32. Can zlib work with greater than 4 GB of data?
-
- Yes. inflate() and deflate() will process any amount of data correctly.
- Each call of inflate() or deflate() is limited to input and output chunks
- of the maximum value that can be stored in the compiler's "unsigned int"
- type, but there is no limit to the number of chunks. Note however that the
- strm.total_in and strm_total_out counters may be limited to 4 GB. These
- counters are provided as a convenience and are not used internally by
- inflate() or deflate(). The application can easily set up its own counters
- updated after each call of inflate() or deflate() to count beyond 4 GB.
- compress() and uncompress() may be limited to 4 GB, since they operate in a
- single call. gzseek() and gztell() may be limited to 4 GB depending on how
- zlib is compiled. See the zlibCompileFlags() function in zlib.h.
-
- The word "may" appears several times above since there is a 4 GB limit only
- if the compiler's "long" type is 32 bits. If the compiler's "long" type is
- 64 bits, then the limit is 16 exabytes.
-
-33. Does zlib have any security vulnerabilities?
-
- The only one that we are aware of is potentially in gzprintf(). If zlib is
- compiled to use sprintf() or vsprintf(), then there is no protection
- against a buffer overflow of an 8K string space (or other value as set by
- gzbuffer()), other than the caller of gzprintf() assuring that the output
- will not exceed 8K. On the other hand, if zlib is compiled to use
- snprintf() or vsnprintf(), which should normally be the case, then there is
- no vulnerability. The ./configure script will display warnings if an
- insecure variation of sprintf() will be used by gzprintf(). Also the
- zlibCompileFlags() function will return information on what variant of
- sprintf() is used by gzprintf().
-
- If you don't have snprintf() or vsnprintf() and would like one, you can
- find a portable implementation here:
-
- http://www.ijs.si/software/snprintf/
-
- Note that you should be using the most recent version of zlib. Versions
- 1.1.3 and before were subject to a double-free vulnerability, and versions
- 1.2.1 and 1.2.2 were subject to an access exception when decompressing
- invalid compressed data.
-
-34. Is there a Java version of zlib?
-
- Probably what you want is to use zlib in Java. zlib is already included
- as part of the Java SDK in the java.util.zip package. If you really want
- a version of zlib written in the Java language, look on the zlib home
- page for links: http://zlib.net/ .
-
-35. I get this or that compiler or source-code scanner warning when I crank it
- up to maximally-pedantic. Can't you guys write proper code?
-
- Many years ago, we gave up attempting to avoid warnings on every compiler
- in the universe. It just got to be a waste of time, and some compilers
- were downright silly as well as contradicted each other. So now, we simply
- make sure that the code always works.
-
-36. Valgrind (or some similar memory access checker) says that deflate is
- performing a conditional jump that depends on an uninitialized value.
- Isn't that a bug?
-
- No. That is intentional for performance reasons, and the output of deflate
- is not affected. This only started showing up recently since zlib 1.2.x
- uses malloc() by default for allocations, whereas earlier versions used
- calloc(), which zeros out the allocated memory. Even though the code was
- correct, versions 1.2.4 and later was changed to not stimulate these
- checkers.
-
-37. Will zlib read the (insert any ancient or arcane format here) compressed
- data format?
-
- Probably not. Look in the comp.compression FAQ for pointers to various
- formats and associated software.
-
-38. How can I encrypt/decrypt zip files with zlib?
-
- zlib doesn't support encryption. The original PKZIP encryption is very
- weak and can be broken with freely available programs. To get strong
- encryption, use GnuPG, http://www.gnupg.org/ , which already includes zlib
- compression. For PKZIP compatible "encryption", look at
- http://www.info-zip.org/
-
-39. What's the difference between the "gzip" and "deflate" HTTP 1.1 encodings?
-
- "gzip" is the gzip format, and "deflate" is the zlib format. They should
- probably have called the second one "zlib" instead to avoid confusion with
- the raw deflate compressed data format. While the HTTP 1.1 RFC 2616
- correctly points to the zlib specification in RFC 1950 for the "deflate"
- transfer encoding, there have been reports of servers and browsers that
- incorrectly produce or expect raw deflate data per the deflate
- specification in RFC 1951, most notably Microsoft. So even though the
- "deflate" transfer encoding using the zlib format would be the more
- efficient approach (and in fact exactly what the zlib format was designed
- for), using the "gzip" transfer encoding is probably more reliable due to
- an unfortunate choice of name on the part of the HTTP 1.1 authors.
-
- Bottom line: use the gzip format for HTTP 1.1 encoding.
-
-40. Does zlib support the new "Deflate64" format introduced by PKWare?
-
- No. PKWare has apparently decided to keep that format proprietary, since
- they have not documented it as they have previous compression formats. In
- any case, the compression improvements are so modest compared to other more
- modern approaches, that it's not worth the effort to implement.
-
-41. I'm having a problem with the zip functions in zlib, can you help?
-
- There are no zip functions in zlib. You are probably using minizip by
- Giles Vollant, which is found in the contrib directory of zlib. It is not
- part of zlib. In fact none of the stuff in contrib is part of zlib. The
- files in there are not supported by the zlib authors. You need to contact
- the authors of the respective contribution for help.
-
-42. The match.asm code in contrib is under the GNU General Public License.
- Since it's part of zlib, doesn't that mean that all of zlib falls under the
- GNU GPL?
-
- No. The files in contrib are not part of zlib. They were contributed by
- other authors and are provided as a convenience to the user within the zlib
- distribution. Each item in contrib has its own license.
-
-43. Is zlib subject to export controls? What is its ECCN?
-
- zlib is not subject to export controls, and so is classified as EAR99.
-
-44. Can you please sign these lengthy legal documents and fax them back to us
- so that we can use your software in our product?
-
- No. Go away. Shoo.
diff --git a/sdk/lib/3rdparty/zlib/INDEX b/sdk/lib/3rdparty/zlib/INDEX
deleted file mode 100644
index 2ba06412..00000000
--- a/sdk/lib/3rdparty/zlib/INDEX
+++ /dev/null
@@ -1,68 +0,0 @@
-CMakeLists.txt cmake build file
-ChangeLog history of changes
-FAQ Frequently Asked Questions about zlib
-INDEX this file
-Makefile dummy Makefile that tells you to ./configure
-Makefile.in template for Unix Makefile
-README guess what
-configure configure script for Unix
-make_vms.com makefile for VMS
-test/example.c zlib usages examples for build testing
-test/minigzip.c minimal gzip-like functionality for build testing
-test/infcover.c inf*.c code coverage for build coverage testing
-treebuild.xml XML description of source file dependencies
-zconf.h.cmakein zconf.h template for cmake
-zconf.h.in zconf.h template for configure
-zlib.3 Man page for zlib
-zlib.3.pdf Man page in PDF format
-zlib.map Linux symbol information
-zlib.pc.in Template for pkg-config descriptor
-zlib.pc.cmakein zlib.pc template for cmake
-zlib2ansi perl script to convert source files for C++ compilation
-
-amiga/ makefiles for Amiga SAS C
-as400/ makefiles for AS/400
-doc/ documentation for formats and algorithms
-msdos/ makefiles for MSDOS
-nintendods/ makefile for Nintendo DS
-old/ makefiles for various architectures and zlib documentation
- files that have not yet been updated for zlib 1.2.x
-qnx/ makefiles for QNX
-watcom/ makefiles for OpenWatcom
-win32/ makefiles for Windows
-
- zlib public header files (required for library use):
-zconf.h
-zlib.h
-
- private source files used to build the zlib library:
-adler32.c
-compress.c
-crc32.c
-crc32.h
-deflate.c
-deflate.h
-gzclose.c
-gzguts.h
-gzlib.c
-gzread.c
-gzwrite.c
-infback.c
-inffast.c
-inffast.h
-inffixed.h
-inflate.c
-inflate.h
-inftrees.c
-inftrees.h
-trees.c
-trees.h
-uncompr.c
-zutil.c
-zutil.h
-
- source files for sample programs
-See examples/README.examples
-
- unsupported contributions by third parties
-See contrib/README.contrib
diff --git a/sdk/lib/3rdparty/zlib/configure b/sdk/lib/3rdparty/zlib/configure
index b77a8a8c..28a8e676 100644
--- a/sdk/lib/3rdparty/zlib/configure
+++ b/sdk/lib/3rdparty/zlib/configure
@@ -155,7 +155,6 @@ cflags=${CFLAGS-"-O3"}
# to force the asm version use: CFLAGS="-O3 -DASMV" ./configure
case "$cc" in
*gcc*) gcc=1 ;;
- *clang*) gcc=1 ;;
esac
case `$cc -v 2>&1` in
*gcc*) gcc=1 ;;
diff --git a/sdk/lib/atl/atlbase.cpp b/sdk/lib/atl/atlbase.cpp
index b9d16e89..018fd6af 100644
--- a/sdk/lib/atl/atlbase.cpp
+++ b/sdk/lib/atl/atlbase.cpp
@@ -1,5 +1,5 @@
/*
- * ReactOS ATL
+* ATL
*
* Copyright 2009 Andrew Hill
*
diff --git a/sdk/lib/atl/atlcore.cpp b/sdk/lib/atl/atlcore.cpp
index 1b3c73de..153062c0 100644
--- a/sdk/lib/atl/atlcore.cpp
+++ b/sdk/lib/atl/atlcore.cpp
@@ -1,5 +1,5 @@
/*
- * ReactOS ATL
+* ATL
*
* Copyright 2009 Andrew Hill
*
diff --git a/sdk/lib/comsupp/comsupp.cpp b/sdk/lib/comsupp/comsupp.cpp
index 05152224..b90604bb 100644
--- a/sdk/lib/comsupp/comsupp.cpp
+++ b/sdk/lib/comsupp/comsupp.cpp
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS crt library
+ * PROJECT: crt library
* LICENSE: GPLv2+ - See COPYING in the top level directory
* PURPOSE: Compiler support for COM
* PROGRAMMER: Thomas Faber (thomas.faber@reactos.org)
diff --git a/sdk/lib/cpprt/ehvec.cpp b/sdk/lib/cpprt/ehvec.cpp
index a667860f..7cc5f274 100644
--- a/sdk/lib/cpprt/ehvec.cpp
+++ b/sdk/lib/cpprt/ehvec.cpp
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS c++ runtime library
+ * PROJECT: c++ runtime library
* LICENSE: GPLv2+ - See COPYING in the top level directory
* PURPOSE: Exception-handling vector ctor/dtor iterator implementation
* PROGRAMMER: Thomas Faber (thomas.faber@reactos.org)
diff --git a/sdk/lib/cpprt/new_nothrow.cpp b/sdk/lib/cpprt/new_nothrow.cpp
index 2ba640f0..b8486400 100644
--- a/sdk/lib/cpprt/new_nothrow.cpp
+++ b/sdk/lib/cpprt/new_nothrow.cpp
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS C++ runtime library
+ * PROJECT: C++ runtime library
* LICENSE: LGPLv2.1+ - See COPYING.LIB in the top level directory
* PURPOSE: nothrow version of the new operators
* PROGRAMMER: Thomas Faber (thomas.faber@reactos.org)
diff --git a/sdk/lib/cpprt/typeinfo.cpp b/sdk/lib/cpprt/typeinfo.cpp
index 09a18fcb..c3e2be95 100644
--- a/sdk/lib/cpprt/typeinfo.cpp
+++ b/sdk/lib/cpprt/typeinfo.cpp
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS c++ runtime library
+ * PROJECT: c++ runtime library
* LICENSE: GPLv2+ - See COPYING in the top level directory
* PURPOSE: Type info stub implementation
* PROGRAMMER: Thomas Faber (thomas.faber@reactos.org)
diff --git a/sdk/lib/crt/mem/i386/memchr_asm.s b/sdk/lib/crt/mem/i386/memchr_asm.s
index 75680677..3797b583 100644
--- a/sdk/lib/crt/mem/i386/memchr_asm.s
+++ b/sdk/lib/crt/mem/i386/memchr_asm.s
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS kernel
+ * PROJECT: kernel
* FILE: lib/sdk/crt/mem/i386/memchr_asm.s
*/
diff --git a/sdk/lib/crt/misc/__crt_MessageBoxA.c b/sdk/lib/crt/misc/__crt_MessageBoxA.c
index f550ae0c..9c8eb8c9 100644
--- a/sdk/lib/crt/misc/__crt_MessageBoxA.c
+++ b/sdk/lib/crt/misc/__crt_MessageBoxA.c
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS C runtime library
+ * PROJECT: C runtime library
* LICENSE: BSD - See COPYING.ARM in the top level directory
* FILE: lib/sdk/crt/misc/__crt_MessageBoxA.c
* PURPOSE: __crt_MessageBoxA implementation
diff --git a/sdk/lib/crt/setjmp/amd64/setjmp.s b/sdk/lib/crt/setjmp/amd64/setjmp.s
index 6aee6dbe..b9fb1178 100644
--- a/sdk/lib/crt/setjmp/amd64/setjmp.s
+++ b/sdk/lib/crt/setjmp/amd64/setjmp.s
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS system libraries
+ * PROJECT: system libraries
* PURPOSE: Implementation of _setjmp/longjmp
* FILE: lib/sdk/crt/setjmp/amd64/setjmp.s
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
diff --git a/sdk/lib/crt/setjmp/arm/setjmp.s b/sdk/lib/crt/setjmp/arm/setjmp.s
index 47155afe..a5766798 100644
--- a/sdk/lib/crt/setjmp/arm/setjmp.s
+++ b/sdk/lib/crt/setjmp/arm/setjmp.s
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: BSD - See COPYING.ARM in the top level directory
- * PROJECT: ReactOS CRT library
+ * PROJECT: CRT library
* PURPOSE: Implementation of _setjmp / longjmp
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
*/
diff --git a/sdk/lib/crt/setjmp/i386/setjmp.s b/sdk/lib/crt/setjmp/i386/setjmp.s
index 84bdb669..7b489d60 100644
--- a/sdk/lib/crt/setjmp/i386/setjmp.s
+++ b/sdk/lib/crt/setjmp/i386/setjmp.s
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS system libraries
+ * PROJECT: system libraries
* PURPOSE: Implementation of _setjmp/longjmp
* FILE: lib/sdk/crt/setjmp/i386/setjmp.s
* PROGRAMMER: Ge van Geldorp (ge@gse.nl)
diff --git a/sdk/lib/drivers/libusb/hcd_controller.cpp b/sdk/lib/drivers/libusb/hcd_controller.cpp
index 9efac909..aa9b3e6d 100644
--- a/sdk/lib/drivers/libusb/hcd_controller.cpp
+++ b/sdk/lib/drivers/libusb/hcd_controller.cpp
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS Universal Serial Bus Bulk Driver Library
+ * PROJECT: Universal Serial Bus Bulk Driver Library
* LICENSE: GPL - See COPYING in the top level directory
* FILE: lib/drivers/libusb/hcd_controller.cpp
* PURPOSE: USB Common Driver Library.
diff --git a/sdk/lib/drivers/libusb/hub_controller.cpp b/sdk/lib/drivers/libusb/hub_controller.cpp
index d3a90a3e..13174cab 100644
--- a/sdk/lib/drivers/libusb/hub_controller.cpp
+++ b/sdk/lib/drivers/libusb/hub_controller.cpp
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS Universal Serial Bus Bulk Driver Library
+ * PROJECT: Universal Serial Bus Bulk Driver Library
* LICENSE: GPL - See COPYING in the top level directory
* FILE: lib/drivers/libusb/hub_controller.cpp
* PURPOSE: USB Common Driver Library.
diff --git a/sdk/lib/drivers/libusb/libusb.cpp b/sdk/lib/drivers/libusb/libusb.cpp
index f5dc0f17..17718dac 100644
--- a/sdk/lib/drivers/libusb/libusb.cpp
+++ b/sdk/lib/drivers/libusb/libusb.cpp
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS Universal Serial Bus Bulk Driver Library
+ * PROJECT: Universal Serial Bus Bulk Driver Library
* LICENSE: GPL - See COPYING in the top level directory
* FILE: lib/drivers/libusb/libusb.cpp
* PURPOSE: USB Common Driver Library.
diff --git a/sdk/lib/drivers/libusb/memory_manager.cpp b/sdk/lib/drivers/libusb/memory_manager.cpp
index 14521599..4679834a 100644
--- a/sdk/lib/drivers/libusb/memory_manager.cpp
+++ b/sdk/lib/drivers/libusb/memory_manager.cpp
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS Universal Serial Bus Bulk Driver Library
+ * PROJECT: Universal Serial Bus Bulk Driver Library
* LICENSE: GPL - See COPYING in the top level directory
* FILE: lib/drivers/libusb/memory_manager.cpp
* PURPOSE: USB Common Driver Library.
diff --git a/sdk/lib/drivers/libusb/misc.cpp b/sdk/lib/drivers/libusb/misc.cpp
index d1622f6b..8b7303bb 100644
--- a/sdk/lib/drivers/libusb/misc.cpp
+++ b/sdk/lib/drivers/libusb/misc.cpp
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS Universal Serial Bus Bulk Driver Library
+ * PROJECT: Universal Serial Bus Bulk Driver Library
* LICENSE: GPL - See COPYING in the top level directory
* FILE: lib/drivers/libusb/misc.cpp
* PURPOSE: USB Common Driver Library.
diff --git a/sdk/lib/drivers/libusb/purecall.cpp b/sdk/lib/drivers/libusb/purecall.cpp
index 9fa4eb8b..016d1b74 100644
--- a/sdk/lib/drivers/libusb/purecall.cpp
+++ b/sdk/lib/drivers/libusb/purecall.cpp
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS Universal Serial Bus Bulk Driver Library
+ * PROJECT: Universal Serial Bus Bulk Driver Library
* LICENSE: GPL - See COPYING in the top level directory
* FILE: lib/drivers/libusb/purecall.cpp
* PURPOSE: USB Common Driver Library.
diff --git a/sdk/lib/drivers/libusb/usb_device.cpp b/sdk/lib/drivers/libusb/usb_device.cpp
index ddb612c8..a187be55 100644
--- a/sdk/lib/drivers/libusb/usb_device.cpp
+++ b/sdk/lib/drivers/libusb/usb_device.cpp
@@ -1,5 +1,5 @@
/*
- * PROJECT: ReactOS Universal Serial Bus Bulk Driver Library
+ * PROJECT: Universal Serial Bus Bulk Driver Library
* LICENSE: GPL - See COPYING in the top level directory
* FILE: lib/drivers/libusb/usb_device.cpp
* PURPOSE: USB Common Driver Library.
diff --git a/sdk/lib/drivers/sound/stdunk/cunknown.cpp b/sdk/lib/drivers/sound/stdunk/cunknown.cpp
index d97e6405..573ada90 100644
--- a/sdk/lib/drivers/sound/stdunk/cunknown.cpp
+++ b/sdk/lib/drivers/sound/stdunk/cunknown.cpp
@@ -1,5 +1,5 @@
/*
- ReactOS Kernel-Mode COM
+ Kernel-Mode COM
IUnknown implementations
LICENSE
diff --git a/sdk/lib/fslib/greenteafslib/greenteafslib.c b/sdk/lib/fslib/greenteafslib/greenteafslib.c
index 3dc0751d..7a8f5c37 100644
--- a/sdk/lib/fslib/greenteafslib/greenteafslib.c
+++ b/sdk/lib/fslib/greenteafslib/greenteafslib.c
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS VFAT filesystem library
+ * PROJECT: VFAT filesystem library
* FILE: lib\fslib\vfatlib\vfatlib.c
* PURPOSE: Main API
* PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
diff --git a/sdk/lib/fslib/greenteafslib/greenteafslib.h b/sdk/lib/fslib/greenteafslib/greenteafslib.h
index e660324e..9351bd59 100644
--- a/sdk/lib/fslib/greenteafslib/greenteafslib.h
+++ b/sdk/lib/fslib/greenteafslib/greenteafslib.h
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS VFAT filesystem library
+ * PROJECT: VFAT filesystem library
* FILE: vfatlib.h
*/
diff --git a/sdk/lib/pseh/CMakeLists.txt b/sdk/lib/pseh/CMakeLists.txt
index 16c0c8d4..52ceab8f 100644
--- a/sdk/lib/pseh/CMakeLists.txt
+++ b/sdk/lib/pseh/CMakeLists.txt
@@ -1,45 +1,19 @@
-
-if(NOT MSVC)
-
- if(USE_PSEH3)
- include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/pseh)
- list(APPEND SOURCE
- i386/pseh3.c
- i386/pseh3_i386.S)
- elseif(USE_DUMMY_PSEH)
- list(APPEND SOURCE dummy.c)
- elseif(ARCH STREQUAL "i386")
- list(APPEND SOURCE
- i386/framebased.S
- i386/framebased-gcchack.c
- i386/framebased-gcchack-asm.S)
- elseif(ARCH STREQUAL "amd64")
- list(APPEND SOURCE amd64/framebased.S)
- endif()
-
- add_library(pseh ${SOURCE})
- target_link_libraries(pseh chkstk)
- add_dependencies(pseh psdk)
-
-else()
-
- if(ARCH STREQUAL "i386")
- list(APPEND ASM_SOURCE
- i386/seh.s
- i386/seh_prolog.s)
- elseif(ARCH STREQUAL "amd64")
- list(APPEND ASM_SOURCE
- amd64/seh.s
- amd64/seh_prolog.s)
- elseif(ARCH STREQUAL "arm")
- list(APPEND ASM_SOURCE
- arm/seh_prolog.s)
- list(APPEND SOURCE dummy.c)
- endif()
-
+if(USE_PSEH3)
+ include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/libs/pseh)
+ list(APPEND SOURCE
+ i386/pseh3.c
+ i386/pseh3_i386.S)
+elseif(USE_DUMMY_PSEH)
list(APPEND SOURCE dummy.c)
- add_asm_files(pseh_asm ${ASM_SOURCE})
- add_library(pseh ${SOURCE} ${pseh_asm})
- add_dependencies(pseh asm)
-
+elseif(ARCH STREQUAL "i386")
+ list(APPEND SOURCE
+ i386/framebased.S
+ i386/framebased-gcchack.c
+ i386/framebased-gcchack-asm.S)
+elseif(ARCH STREQUAL "amd64")
+ list(APPEND SOURCE amd64/framebased.S)
endif()
+
+add_library(pseh ${SOURCE})
+target_link_libraries(pseh chkstk)
+add_dependencies(pseh psdk)
diff --git a/sdk/lib/pseh/powerpc/framebased.S b/sdk/lib/pseh/powerpc/framebased.S
deleted file mode 100644
index a00052e9..00000000
--- a/sdk/lib/pseh/powerpc/framebased.S
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright (c) 2004/2005 KJK::Hyperion
-
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to dos so, subject to the following conditions:
-
-// The above copyright notice and this permission notice shall be included in all
-// copies or substantial portions of the Software.
-
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-// SOFTWARE.
-
-.text
-
-.globl _SEHCleanHandlerEnvironment
-_SEHCleanHandlerEnvironment:
- blr
-
-.globl _SEHCurrentRegistration
-_SEHCurrentRegistration:
- lwz 3,0(13)
- blr
-
- // R3: Frame to store in
-.globl _SEHRegisterFrame
-_SEHRegisterFrame:
- lwz 4,0(13)
- stw 3,0(13)
- stw 4,0(3)
- blr
-
-.globl _SEHUnregisterFrame
-_SEHUnregisterFrame:
- lwz 3,0(13)
- lwz 3,0(3)
- stw 3,0(13)
- blr
-
-.globl _SEHGlobalUnwind
-_SEHGlobalUnwind:
-
-.extern _SEHRtlUnwind
-
-// RtlUnwind clobbers all the "don't clobber" registers, so we save them
- lwz 3,4(1)
- stwu 1,-132(1)
- stmw 2,-128(1)
-
- xor 6,6,6
- xor 5,5,5
- lis 4,.RestoreRegisters@ha
- addi 4,4,.RestoreRegisters@l # Where to jump back to
- # We already have r3
- bl _SEHRtlUnwind
-
-.RestoreRegisters:
- lmw 2,-128(1)
- addi 1,1,132
- blr
-
-// EOF
diff --git a/sdk/lib/rtl/powerpc/rtlswap.s b/sdk/lib/rtl/powerpc/rtlswap.s
index 424bc0d4..c60394f5 100644
--- a/sdk/lib/rtl/powerpc/rtlswap.s
+++ b/sdk/lib/rtl/powerpc/rtlswap.s
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS Run-Time Library
+ * PROJECT: Run-Time Library
* PURPOSE: Byte swap functions
* FILE: lib/rtl/powerpc/rtlswap.s
* PROGRAMER: Alex Ionescu (alex.ionescu@reactos.org)
diff --git a/sdk/tools/cabman/cabinet.cxx b/sdk/tools/cabman/cabinet.cxx
index d2222f9d..da501971 100644
--- a/sdk/tools/cabman/cabinet.cxx
+++ b/sdk/tools/cabman/cabinet.cxx
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS cabinet manager
+ * PROJECT: cabinet manager
* FILE: tools/cabman/cabinet.cxx
* PURPOSE: Cabinet routines
* PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
diff --git a/sdk/tools/cabman/dff.txt b/sdk/tools/cabman/dff.txt
index 776c0431..74a86bf9 100644
--- a/sdk/tools/cabman/dff.txt
+++ b/sdk/tools/cabman/dff.txt
@@ -1,4 +1,4 @@
-Directive File Format for ReactOS Cabinet Manager
+Directive File Format for Cabinet Manager
-------------------------------------------------
Directives begin with a period ("."), and are followed by a command
diff --git a/sdk/tools/cabman/dfp.cxx b/sdk/tools/cabman/dfp.cxx
index ba710b64..39fd5db5 100644
--- a/sdk/tools/cabman/dfp.cxx
+++ b/sdk/tools/cabman/dfp.cxx
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS cabinet manager
+ * PROJECT: cabinet manager
* FILE: tools/cabman/dfp.cxx
* PURPOSE: Directive file parser
* PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
diff --git a/sdk/tools/cabman/main.cxx b/sdk/tools/cabman/main.cxx
index ab7b7c77..c7f3bf92 100644
--- a/sdk/tools/cabman/main.cxx
+++ b/sdk/tools/cabman/main.cxx
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS cabinet manager
+ * PROJECT: cabinet manager
* FILE: tools/cabman/main.cxx
* PURPOSE: Main program
* PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
diff --git a/sdk/tools/cabman/mszip.cxx b/sdk/tools/cabman/mszip.cxx
index 159dee22..66239aef 100644
--- a/sdk/tools/cabman/mszip.cxx
+++ b/sdk/tools/cabman/mszip.cxx
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS cabinet manager
+ * PROJECT: cabinet manager
* FILE: tools/cabman/mszip.cxx
* PURPOSE: CAB codec for MSZIP compressed data
* PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
diff --git a/sdk/tools/cabman/raw.cxx b/sdk/tools/cabman/raw.cxx
index 455f04cc..b96e3faf 100644
--- a/sdk/tools/cabman/raw.cxx
+++ b/sdk/tools/cabman/raw.cxx
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS cabinet manager
+ * PROJECT: cabinet manager
* FILE: tools/cabman/raw.cxx
* PURPOSE: CAB codec for uncompressed "raw" data
* PROGRAMMERS: Casper S. Hornstrup (chorns@users.sourceforge.net)
diff --git a/sdk/tools/ms2ps/ms2ps.cpp b/sdk/tools/ms2ps/ms2ps.cpp
index b5a0475b..30a34498 100644
--- a/sdk/tools/ms2ps/ms2ps.cpp
+++ b/sdk/tools/ms2ps/ms2ps.cpp
@@ -1,5 +1,5 @@
/*
- * ReactOS kernel
+ * kernel
* Copyright (C) 2004 ReactOS Team
*
* This program is free software; you can redistribute it and/or modify
@@ -18,7 +18,7 @@
*/
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS seh conversion tool
+ * PROJECT: seh conversion tool
* FILE: tools/ms2ps/ms2ps.cpp
* PURPOSE: Conversion tool from msvc to pseh style seh
* PROGRAMMER: Art Yerkes
diff --git a/sdk/tools/rgenstat/web/rapistatus.xsl b/sdk/tools/rgenstat/web/rapistatus.xsl
index 4eb01432..f6419700 100644
--- a/sdk/tools/rgenstat/web/rapistatus.xsl
+++ b/sdk/tools/rgenstat/web/rapistatus.xsl
@@ -9,14 +9,14 @@
- ReactOS API Status
+ API Status
-
ReactOS API Status
+ API Status
diff --git a/sdk/tools/xml2sdb/main.cpp b/sdk/tools/xml2sdb/main.cpp
index 4c3ebe99..aec933f7 100644
--- a/sdk/tools/xml2sdb/main.cpp
+++ b/sdk/tools/xml2sdb/main.cpp
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS xml to sdb converter
+ * PROJECT: xml to sdb converter
* FILE: sdk/tools/xml2sdb/main.cpp
* PURPOSE: Implement platform agnostic read / write / allocation functions, parse commandline
* PROGRAMMERS: Mark Jansen
diff --git a/sdk/tools/xml2sdb/tinyxml2.cpp b/sdk/tools/xml2sdb/tinyxml2.cpp
index 7ab0c9a5..f9a80579 100644
--- a/sdk/tools/xml2sdb/tinyxml2.cpp
+++ b/sdk/tools/xml2sdb/tinyxml2.cpp
@@ -1918,7 +1918,7 @@ XMLError XMLDocument::LoadFile( const char* filename )
// This is likely overengineered template art to have a check that unsigned long value incremented
// by one still fits into size_t. If size_t type is larger than unsigned long type
-// (x86_64-w64-mingw32 target) then the check is redundant and gcc and clang emit
+// (x86_64-w64-mingw32 target) then the check is redundant and gcc emit
// -Wtype-limits warning. This piece makes the compiler select code with a check when a check
// is useful and code with no check when a check is redundant depending on how size_t and unsigned long
// types sizes relate to each other.
@@ -2081,7 +2081,7 @@ void XMLDocument::PrintError() const
}
// Should check INT_MIN <= _errorID && _errorId <= INT_MAX, but that
- // causes a clang "always true" -Wtautological-constant-out-of-range-compare warning
+ // causes "always true" -Wtautological-constant-out-of-range-compare warning
TIXMLASSERT( 0 <= _errorID && XML_ERROR_COUNT - 1 <= INT_MAX );
printf( "XMLDocument error id=%d '%s' str1=%s str2=%s\n",
static_cast( _errorID ), ErrorName(), buf1, buf2 );
diff --git a/sdk/tools/xml2sdb/xml2sdb.cpp b/sdk/tools/xml2sdb/xml2sdb.cpp
index d5663ac3..92dede5a 100644
--- a/sdk/tools/xml2sdb/xml2sdb.cpp
+++ b/sdk/tools/xml2sdb/xml2sdb.cpp
@@ -1,6 +1,6 @@
/*
* COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS xml to sdb converter
+ * PROJECT: xml to sdb converter
* FILE: sdk/tools/xml2sdb/xml2sdb.cpp
* PURPOSE: Main conversion functions from xml -> db
* PROGRAMMERS: Mark Jansen