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

List:       kde-core-devel
Subject:    RE: Uhh setcrashhandler?
From:       "Hummel, Timo" <timo.hummel () sap ! com>
Date:       2000-03-28 8:51:04
[Download RAW message or body]

Oh....hehe....I think I should take a few more C++ lessons :)
let me try that, thanks.

Timo


-----Original Message-----
From: Stephan Kulow [mailto:coolo@kde.org]
Sent: Dienstag, 28. März 2000 10:48
To: Hummel, Timo; kde-core-devel@kde.org
Subject: Re: Uhh setcrashhandler?


"Hummel, Timo" wrote:
> 
> Hi,
> 
> I try both, the personal addy and the mailing list since I don't know if I
> got write access yet. If no, please
> feel free to forward.
> 
> I defined the functions so I can do an if (param == KDE_CRASH_DEFAULT) if
> one of these constants are
> passed to the function instead of a real function. It is similar to pass
> SIG_IGN to signal(2) instead
> of a real function.
> 
But why don't you do it the C++ way?

extern "C" {
 typedef ksigseghand_t (void*)();
 const ksigseghand_t KDE_CRASH_DEFAULT = 0x1000;
}

shouldn't that work?

Greetings, Stephan

-- 
It said Windows 95 or better, so in theory Linux should run it
                                                GeorgeH on /.

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

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