XForms: [Fwd: How can I turn off Xforms messages with 0.87 ?]

Tristan Savatier (tristan@mpegtv.com)
Mon, 03 Nov 1997 18:23:43 -0800

To subscribers of the xforms list from Tristan Savatier <tristan@mpegtv.com> :

This is a multi-part message in MIME format.

--------------4BC591CB23E9AB5CCA67D08
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Ooops. Please ignore my last message.

It looks like I cannot use this whereError hack if I try to link
my app statically with libforms (I don't know why,
but I don't really care), but it still works
with dynamic linking...

--Tristan

--------------4BC591CB23E9AB5CCA67D08
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Message-ID: <345E848A.3CF9BB9E@mpegtv.com>
Date: Mon, 03 Nov 1997 18:12:26 -0800
From: Tristan Savatier <tristan@mpegtv.com>
Organization: MpegTV, /cgi-bin/exit-to?http://www.mpegtv.com
X-Mailer: Mozilla 3.01 (X11; I; Linux 2.0.27 i586)
MIME-Version: 1.0
To: xforms@bob.usuf2.usuhs.mil
CC: spl@szechuan.ucsd.edu
Subject: How can I turn off Xforms messages with 0.87 ?
References: <9612211829.AA10682@szechuan.UCSD.EDU>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

The "hack" that I was using to turn off Xforms messages
with 0.86 does not seem to work with 0.87 (Linux).

When I link my app, I get:

/usr/local/lib/libforms.a(errmsg.o): In function `whereError':
errmsg.o(.text+0x280): multiple definition of `whereError'
mtv.o(.text+0x5ec4): first defined here
ld: Warning: size of symbol `whereError' changed from 6 to 68 in
errmsg.o

How should I do to turn off unwanted Xforms messages with 0.87 ?

--Tristan

Steve Lamont wrote:
>
> To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :
>
> > > > "Failed to share colors. Using private colormap"
> > > >
> > > > Is there a way to turn off this type of messages ?
>
> This is a hack but it should work:
>
> #include <stdarg.h>
>
> [...]
>
> void my_own_error_handler(const char *func, const char *fmt,...)
>
> {
>
> /* Put anything you wish here. */
>
> }
>
> void (*whereError(int something,
> int level,
> const char *string,
> int some_int))(const char *func, const char *fmt,...)
> {
>
> return my_own_error_handler;
>
> }
>
> Unfortunately, this shuts everything off. You can be more clever
> about processing the error level and return different handlers for
> different errors if you wish.
>
> my_own_error_handler can be any name you want, whereError shadows an
> internal library routine.
>
> spl

--------------4BC591CB23E9AB5CCA67D08--

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/