1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00

Remove local copy of expat

Hasn't been used since 2008.  The wxexpat library is used instead.
This commit is contained in:
lllucius
2013-11-06 08:41:57 +00:00
parent 98db19cc89
commit 496aa450df
36 changed files with 24 additions and 11709 deletions

View File

@@ -8,7 +8,7 @@
**********************************************************************/
#include "../Audacity.h" // to pull in USE_SYSTEM_EXPAT define
#include "../Audacity.h"
#include "expat.h"

View File

@@ -35,8 +35,8 @@ the general functionality for creating XML in UTF8 encoding.
#include "XMLTagHandler.h"
//table for xml encoding compatibility with expat decoding
//see ../../lib-src/expat/xmltok/xmltok_impl.h
//and ../../lib-src/expat/xmltok/ asciitab.h
//see wxWidgets-2.8.12/src/expat/lib/xmltok_impl.h
//and wxWidgets-2.8.12/src/expat/lib/asciitab.h
static int charXMLCompatiblity[] =
{
@@ -293,8 +293,8 @@ wxString XMLWriter::XMLEsc(const wxString & s)
if (!wxIsprint(c)) {
//ignore several characters such ase eot (0x04) and stx (0x02) because it makes expat parser bail
//see xmltok.c in expat checkCharRefNumber() to see how expat bails on these chars.
//also see lib-src/expat/xmltok/asciitab.h to see which characters are nonxml compatible post decode
//(we can still encode '&' and '<' with this table, but it prevents us from encoding eot)
//also see wxWidgets-2.8.12/src/expat/lib/asciitab.h to see which characters are nonxml compatible
//post decode (we can still encode '&' and '<' with this table, but it prevents us from encoding eot)
//everything is compatible past ascii 0x20, so we don't check higher than this.
if(c> 0x1F || charXMLCompatiblity[c]!=0)
result += wxString::Format(wxT("&#x%04x;"), c);