From kwaclaw at users.sourceforge.net Fri Jun 2 14:17:40 2006 From: kwaclaw at users.sourceforge.net (Karl Waclawek) Date: Fri, 02 Jun 2006 05:17:40 -0700 Subject: [Expat-checkins] expat/lib expat_external.h,1.7,1.8 Message-ID: <20060602121742.50CDB1E400B@bag.python.org> Update of /cvsroot/expat/expat/lib In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv19552 Modified Files: expat_external.h Log Message: __cdecl should be used for MS compilers even if MS extensions are turned off. Index: expat_external.h =================================================================== RCS file: /cvsroot/expat/expat/lib/expat_external.h,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- expat_external.h 6 Mar 2006 14:24:36 -0000 1.7 +++ expat_external.h 2 Jun 2006 12:17:36 -0000 1.8 @@ -34,7 +34,7 @@ system headers may assume the cdecl convention. */ #ifndef XMLCALL -#if defined(XML_USE_MSC_EXTENSIONS) +#if defined(_MSC_VER) #define XMLCALL __cdecl #elif defined(__GNUC__) && defined(__i386) && !defined(__INTEL_COMPILER) #define XMLCALL __attribute__((cdecl)) From kwaclaw at users.sourceforge.net Tue Jun 6 01:15:07 2006 From: kwaclaw at users.sourceforge.net (Karl Waclawek) Date: Mon, 05 Jun 2006 16:15:07 -0700 Subject: [Expat-checkins] htdocs index.html,1.60,1.61 oldnews.html,1.2,1.3 Message-ID: <20060606022418.CB9641E4002@bag.python.org> Update of /cvsroot/expat/htdocs In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv13153 Modified Files: index.html oldnews.html Log Message: Adjusted for changes in SF links and instructions. Index: index.html =================================================================== RCS file: /cvsroot/expat/htdocs/index.html,v retrieving revision 1.60 retrieving revision 1.61 diff -u -d -r1.60 -r1.61 --- index.html 11 Jan 2006 15:52:12 -0000 1.60 +++ index.html 5 Jun 2006 16:27:08 -0000 1.61 @@ -33,7 +33,7 @@
  • CVS repository - (browse online)
  • -
    27 December 2005, - Final Expat 2.0 pre-release snapshot made available. -
    -
    -

    This - pre-release distribution is based on the feedback we got from the - Dec. 23 snapshot and represents the final opportunity for - feedback before the actual release goes out.

    -

    We plan to release after the New Year.

    -
    -
    23 December 2005, - Expat 2.0 pre-release snapshot (another one) made available. -
    -
    -

    As nothing happened here for a long time, we've posted another - pre-release - distribution snapshot of the code currently in CVS on - libexpat.org. Please try this out and report any problems you - have. We'd like to get Expat 2.0 out soon.

    -

    A late addition was the new (optional) XML_LARGE_SIZE - feature to enable 64-bit integers on some API members. Please check - how it builds and works for you.

    -
    -
    28 January 2005, - Expat pre-release snapshot made available. -
    -
    -

    We've posted a pre-release - distribution snapshot of the code currently in CVS on - libexpat.org. Please try this out and report any problems you - have. We'd like to get a release out soon.

    -

    The coming release will either be 1.95.9 or 2.0, depending - primarily on the response to this snapshot. If we do decide to - make this 1.95.9, then we'll try to follow up with 2.0 in about a - month.

    -
    -
    23 July 2004, - Expat 1.95.8 released. -
    -
    -

    The release schedule described in the previous news item didn't - work out. As a compensation, we've fixed a number of the - nuissance warnings generated on many platforms, and added a nice - new suspend/resume feature to the parser.

    -

    -

    Old news archive

    @@ -248,10 +192,9 @@ - - SourceForge
-                 Logo + + SourceForge.net Logo Index: oldnews.html =================================================================== RCS file: /cvsroot/expat/htdocs/oldnews.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- oldnews.html 27 Dec 2005 16:49:44 -0000 1.2 +++ oldnews.html 5 Jun 2006 16:27:08 -0000 1.3 @@ -17,6 +17,62 @@

    Current news

    +
    27 December 2005, + Final Expat 2.0 pre-release snapshot made available. +
    +
    +

    This + pre-release distribution is based on the feedback we got from the + Dec. 23 snapshot and represents the final opportunity for + feedback before the actual release goes out.

    +

    We plan to release after the New Year.

    +
    +
    23 December 2005, + Expat 2.0 pre-release snapshot (another one) made available. +
    +
    +

    As nothing happened here for a long time, we've posted another + pre-release + distribution snapshot of the code currently in CVS on + libexpat.org. Please try this out and report any problems you + have. We'd like to get Expat 2.0 out soon.

    +

    A late addition was the new (optional) XML_LARGE_SIZE + feature to enable 64-bit integers on some API members. Please check + how it builds and works for you.

    +
    +
    28 January 2005, + Expat pre-release snapshot made available. +
    +
    +

    We've posted a pre-release + distribution snapshot of the code currently in CVS on + libexpat.org. Please try this out and report any problems you + have. We'd like to get a release out soon.

    +

    The coming release will either be 1.95.9 or 2.0, depending + primarily on the response to this snapshot. If we do decide to + make this 1.95.9, then we'll try to follow up with 2.0 in about a + month.

    +
    +
    23 July 2004, + Expat 1.95.8 released. +
    +
    +

    The release schedule described in the previous news item didn't + work out. As a compensation, we've fixed a number of the + nuissance warnings generated on many platforms, and added a nice + new suspend/resume feature to the parser.

    +

      +
    • Major new feature: suspend/resume. Handlers can now request + that a parse be suspended for later resumption or aborted + altogether. See "Temporarily Stopping Parsing" in the + documentation for more details.
    • +
    • Some mostly minor bug fixes, but compilation should no + longer generate warnings on most platforms. SF issues + include: 827319, 840173, 846309, 888329, 896188, 923913, + 928113, 961698, 985192.
    • +

    +
    20 October 2003, Expat 1.95.7 released.
    @@ -179,10 +235,9 @@ - - SourceForge
-                 Logo + + SourceForge.net Logo From kwaclaw at users.sourceforge.net Tue Jun 6 01:15:07 2006 From: kwaclaw at users.sourceforge.net (Karl Waclawek) Date: Mon, 05 Jun 2006 16:15:07 -0700 Subject: [Expat-checkins] htdocs/dev cvs.html, 1.7, 1.8 expat3.html, 1.4, 1.5 index.html, 1.10, 1.11 Message-ID: <20060606022532.589491E4002@bag.python.org> Update of /cvsroot/expat/htdocs/dev In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv13153/dev Modified Files: cvs.html expat3.html index.html Log Message: Adjusted for changes in SF links and instructions. Index: cvs.html =================================================================== RCS file: /cvsroot/expat/htdocs/dev/cvs.html,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- cvs.html 5 Sep 2003 17:20:47 -0000 1.7 +++ cvs.html 5 Jun 2006 16:27:08 -0000 1.8 @@ -18,7 +18,7 @@

    View CVS Online

    @@ -30,9 +30,9 @@ for a password for anonymous, simply press the Enter key.

    -cvs -d:pserver:anonymous at cvs.libexpat.org:/cvsroot/expat login
    +cvs -d:pserver:anonymous at expat.cvs.sourceforge.net:/cvsroot/expat login
     
    -cvs -z3 -d:pserver:anonymous at cvs.libexpat.org:/cvsroot/expat co modulename
    +cvs -z3 -d:pserver:anonymous at expat.cvs.sourceforge.net:/cvsroot/expat co modulename
     

    Updates from within the module's directory do not need the -d @@ -49,7 +49,7 @@

     export CVS_RSH=ssh
     
    -cvs -z3 -d:ext:developername@cvs.libexpat.org:/cvsroot/expat co modulename
    +cvs -z3 -d:ext:developername@expat.cvs.sourceforge.net:/cvsroot/expat co modulename
     

    Source Modules

    @@ -109,10 +109,9 @@ - - SourceForge
-                 Logo + + SourceForge.net Logo Index: expat3.html =================================================================== RCS file: /cvsroot/expat/htdocs/dev/expat3.html,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- expat3.html 31 Jan 2005 14:52:55 -0000 1.4 +++ expat3.html 5 Jun 2006 16:27:08 -0000 1.5 @@ -71,10 +71,9 @@ - - SourceForge
-                 Logo + + SourceForge.net Logo Index: index.html =================================================================== RCS file: /cvsroot/expat/htdocs/dev/index.html,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- index.html 23 Oct 2003 05:24:11 -0000 1.10 +++ index.html 5 Jun 2006 16:27:08 -0000 1.11 @@ -45,10 +45,9 @@ - - SourceForge
-                 Logo + + SourceForge.net Logo From kwaclaw at users.sourceforge.net Wed Jun 28 04:55:53 2006 From: kwaclaw at users.sourceforge.net (Karl Waclawek) Date: Tue, 27 Jun 2006 19:55:53 -0700 Subject: [Expat-checkins] expat/xmlwf unixfilemap.c, 1.8, 1.9 readfilemap.c, 1.11, 1.12 Message-ID: <20060628025556.B7F441E4005@bag.python.org> Update of /cvsroot/expat/expat/xmlwf In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv5756 Modified Files: unixfilemap.c readfilemap.c Log Message: Fix for bug #1513566: filemap() in readfilemap.c doesn't handle zero length files, and the same issue applies to filemap() in unixfilemap.c Index: unixfilemap.c =================================================================== RCS file: /cvsroot/expat/expat/xmlwf/unixfilemap.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- unixfilemap.c 1 Jul 2002 15:13:01 -0000 1.8 +++ unixfilemap.c 28 Jun 2006 02:55:51 -0000 1.9 @@ -44,6 +44,13 @@ } nbytes = sb.st_size; + /* mmap fails for zero length files */ + if (nbytes == 0) { + static const char c = '\0'; + processor(&c, 0, name, arg); + close(fd); + return 1; + } p = (void *)mmap((caddr_t)0, (size_t)nbytes, PROT_READ, MAP_FILE|MAP_PRIVATE, fd, (off_t)0); if (p == (void *)-1) { Index: readfilemap.c =================================================================== RCS file: /cvsroot/expat/expat/xmlwf/readfilemap.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- readfilemap.c 30 Apr 2004 03:44:34 -0000 1.11 +++ readfilemap.c 28 Jun 2006 02:55:51 -0000 1.12 @@ -57,9 +57,17 @@ return 0; } nbytes = sb.st_size; + /* malloc will return NULL with nbytes == 0, handle files with size 0 */ + if (nbytes == 0) { + static const char c = '\0'; + processor(&c, 0, name, arg); + close(fd); + return 1; + } p = malloc(nbytes); if (!p) { fprintf(stderr, "%s: out of memory\n", name); + close(fd); return 0; } n = read(fd, p, nbytes);