Don't define a data structure in a header file! This leads to multiple definitions...
authortwisti <none@none>
Tue, 7 Dec 2004 10:23:05 +0000 (10:23 +0000)
committertwisti <none@none>
Tue, 7 Dec 2004 10:23:05 +0000 (10:23 +0000)
src/native/native.c
src/native/native.h

index 713aea418f6949b77208dca02ee7edf817919ac7..73cceb1fe83e02ab0ba8f3fc65b74485193543cd 100644 (file)
@@ -31,7 +31,7 @@
    The .hh files created with the header file generator are all
    included here as are the C functions implementing these methods.
 
-   $Id: native.c 1655 2004-12-02 16:51:20Z carolyn $
+   $Id: native.c 1722 2004-12-07 10:23:05Z twisti $
 
 */
 
@@ -148,6 +148,11 @@ static nativecompref nativecomptable[NATIVETABLESIZE];
 static bool nativecompdone = false;
 #endif
 
+
+/* XXX don't define this in a header file!!! */
+
+struct nativeCompCall nativeCompCalls[NATIVECALLSSIZE];
+
 /******************************************************************************/
 
 /**include "natcalls.h" **/
index 4241a5ad78ea9a43b224a30ea982167898b414e2..6d1cad00361ceb5b94f295166ec6b6da0df483fc 100644 (file)
@@ -26,7 +26,7 @@
 
    Authors: Reinhard Grafl
 
-   $Id: native.h 1655 2004-12-02 16:51:20Z carolyn $
+   $Id: native.h 1722 2004-12-07 10:23:05Z twisti $
 
 */
 
@@ -237,7 +237,7 @@ struct nativeCompCall {
        struct nativeCompMethod methods[MAXCALLS];
        int methCnt;
        int callCnt[MAXCALLS];
-} nativeCompCalls[NATIVECALLSSIZE];
+};
 
 
 bool natcall2utf(bool);