[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    extern "C" (was: kdelibs/khtml/ecma)
From:       Harri Porten <harri () trolltech ! com>
Date:       2000-08-27 16:35:40
[Download RAW message or body]

> kdelibs/khtml/ecma kjs_proxy.cpp,1.17,1.18
> Author: waba
> CVSROOT: /home/kde
> Thu Aug 24 06:29:04 UTC 2000
> Update of /home/kde/kdelibs/khtml/ecma
> cvs.kde.org hosted by sourceforge.net
> 
> Modified Files:
>         kjs_proxy.cpp 
> Log Message:
> Only use extern "C" in the *.h file, not in the *.cpp file.
> Fixes IRIX compilation problem.

Sure ? What was the error message ?

Maybe the ';' at the end caused some problems ? Since there is no
definition in the .h file I would like to get the extern "C" back in
place. Otherwise the module loading simply doesn't work.

diff -u -3 -p -r1.18 kjs_proxy.cpp
--- kjs_proxy.cpp       2000/08/24 06:29:04     1.18
+++ kjs_proxy.cpp       2000/08/27 16:29:33
@@ -36,6 +36,7 @@
 
 using namespace KJS;
 
+extern "C" {
   // initialize HTML module
   KJSProxy *kjs_html_init(KHTMLPart *khtml)
   {
@@ -50,6 +51,8 @@ using namespace KJS;
 
     return proxy;
   }
+}
+
   // init the interpreter
   KJScript* kjs_create(KHTMLPart *khtml)
   {

Is this okay Waldo ?

Harri.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic