[Biopython-dev] [Bug 1434] New: Syntax error in triemodule.c. Won't compile with ANSI C

bugzilla-daemon at cvs.open-bio.org bugzilla-daemon at cvs.open-bio.org
Thu Apr 24 10:38:09 EDT 2003


           Summary: Syntax error in triemodule.c. Won't compile with ANSI C
           Product: Biopython
           Version: 1.10
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Main Distribution
        AssignedTo: biopython-dev at biopython.org
        ReportedBy: jonathan.gilligan at vanderbilt.edu

Line 576 of Bio/triemodule.c is legal C++, but not C. Thus, it will not build 
with an ANSI C compiler. The following patch should work.

Index: Bio/triemodule.c
RCS file: /home/repository/biopython/biopython/Bio/triemodule.c,v
retrieving revision 1.4
diff -u -b -r1.4 triemodule.c
--- Bio/triemodule.c	2003/04/10 19:34:42	1.4
+++ Bio/triemodule.c	2003/04/24 14:26:51
@@ -571,7 +571,12 @@
 _read_value_from_handle(void *handle)
     int length;
+#if defined(__cplusplus)     // ANSI spec, sect. 16.8: __cplusplus defined to 
be 199711L
     const int MAX_KEY_LENGTH = 2000;
+#   define MAX_KEY_LENGTH 2000
     unsigned char KEY[MAX_KEY_LENGTH];
     if(!_read_from_handle((void *)&length, sizeof(length), (void *)handle))

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the Biopython-dev mailing list