Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx9.public.one.com ([195.47.247.105])
	by mail6.local.one.com (Dovecot) with LMTP id Mh+fBARqzFi1YwEAsyOMew
	for <filtered@awaresystems.be>; Fri, 17 Mar 2017 23:06:17 +0000
X-HalOne-ID: 511f319b-0b66-11e7-857c-246e961730ec
Received: from mail-oi0-f49.google.com (unknown [209.85.218.49])
	by mx9.public.one.com (Halon) with ESMTPS
	id 511f319b-0b66-11e7-857c-246e961730ec;
	Fri, 17 Mar 2017 23:06:14 +0000 (UTC)
Received: by mail-oi0-f49.google.com with SMTP id q19so2165899oic.0
        for <filtered@awaresystems.be>; Fri, 17 Mar 2017 16:06:14 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-original-authentication-results:x-gm-message-state:delivered-to
         :date:from:to:in-reply-to:message-id:references:user-agent
         :mime-version:cc:subject:precedence:list-id:list-unsubscribe
         :list-archive:list-post:list-help:list-subscribe
         :content-transfer-encoding:sender:errors-to;
        bh=WwKsyoBPEJTV/lEOyqDRn0u497CXGDRcCve50DJJ50A=;
        b=tt9j0Y1UAHkkk3k3AcYF/6FHiPnzZvPLTSTDizaD6cFti0O1tRWcJj5nJ4q3oktASO
         9KOYayQ5V0P1DX76pas7PieUcRi38fu6HqSOHsvHHu9Kng6XkttY126unNJr1boAyiSy
         kpA8RvI2LKJNlxeAjvf45L0MAkl8Cy14q5KlMsuBjErFmTk+c8yelVER4coXznE874/I
         i8Yj9wmkGcEhbTyE0caygktbyiPM2bUUbwcVhpfWSbbZGBADD8LmSVf4m75zBDJvu9oC
         D2/mC4TRGJAcZmVXHG4ZPn7AONr8VhT+SY/H58S8xoSWK+Vqk7cFEhhF3taDUmISOtqH
         +cew==
X-Original-Authentication-Results: mx.google.com;       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
X-Gm-Message-State: AFeK/H1FUhnip7OH07zoZhStWrSamJjSPIEnE/r8xuzJNkudSl4hp9xjATv/BkTkHmPQjlgBDBPOtZTsLU4ibSgvIP9mG4Y=
X-Received: by 10.202.237.71 with SMTP id l68mr9249090oih.38.1489791973035;
        Fri, 17 Mar 2017 16:06:13 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.202.195.2 with SMTP id t2csp512212oif;
        Fri, 17 Mar 2017 16:06:12 -0700 (PDT)
X-Received: by 10.28.147.147 with SMTP id v141mr498988wmd.110.1489791971938;
        Fri, 17 Mar 2017 16:06:11 -0700 (PDT)
Return-Path: <tiff-bounces@lists.maptools.org>
Received: from lists.maptools.org (ks365428.kimsufi.com. [94.23.4.142])
        by mx.google.com with ESMTP id 40si12898454wrt.302.2017.03.17.16.06.11;
        Fri, 17 Mar 2017 16:06:11 -0700 (PDT)
Received-SPF: neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=94.23.4.142;
Authentication-Results: mx.google.com;
       spf=neutral (google.com: 94.23.4.142 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) smtp.mailfrom=tiff-bounces@lists.maptools.org
Received: from [10.1.0.241] (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id F420835C074;
	Fri, 17 Mar 2017 18:05:24 -0500 (EST)
Received: from smtp.simplesystems.org (smtp.simplesystems.org [65.66.246.90])
	by lists.maptools.org (Postfix) with ESMTPS id 4A1E335C072
	for <tiff@lists.maptools.org>; Fri, 17 Mar 2017 18:03:10 -0500 (EST)
Received: from scrappy.simplesystems.org (scrappy.simplesystems.org
	[65.66.246.73])
	by smtp.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	v2HN39mo020414; Fri, 17 Mar 2017 18:03:09 -0500 (CDT)
Date: Fri, 17 Mar 2017 18:03:09 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@scrappy.simplesystems.org
To: Paavo Helde <paavo@osa.pri.ee>
In-Reply-To: <58CC65E8.4030709@osa.pri.ee>
Message-ID: <alpine.GSO.2.20.1703171757200.4525@scrappy.simplesystems.org>
References: <CAHcSuBpB46=uPKCS48LuFCqbZ1GeQau6_f8Bbbj5fs6LbJdE+Q@mail.gmail.com>
	<alpine.GSO.2.20.1703170947500.4525@scrappy.simplesystems.org>
	<CAHcSuBqZQh4kJH_R_9LEkpnjRm=s-CmOE_vcoyRF6fxgwt1B8A@mail.gmail.com>
	<alpine.GSO.2.20.1703171154040.4525@scrappy.simplesystems.org>
	<18b5b63b7b889c5c3c9f51af1b2651c4@codelibre.net>
	<alpine.GSO.2.20.1703171604260.4525@scrappy.simplesystems.org>
	<58CC65E8.4030709@osa.pri.ee>
User-Agent: Alpine 2.20 (GSO 67 2015-01-07)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16
	(smtp.simplesystems.org [65.66.246.90]);
	Fri, 17 Mar 2017 18:03:09 -0500 (CDT)
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] TIFFSetErrorHandler vs TIFFSetErrorHandlerExt
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On Sat, 18 Mar 2017, Paavo Helde wrote:
>
> This does not mean libTIFF should be converted to C++. It's just a
> general remark that a library does not need to be developed in C in
> order to have C interface.

I agree with what you said, but need to point out that it is still 
necessary to link with the C++ compiler to be assured of success.  In 
my experience this proves to be painful when dealing with many 
platforms and compilers.  Now there are many flavors of C++ and C++ 
run-times (forward progress of C++ standards and alternative C++ 
libraries) so there are more things to get right at link-time.

If there is only one target platform, then things are much easier.

The current error reporting is based on a callback and it does not 
matter much if the callback is called immediately at the point where 
the problem occured, or an exception is thrown, caught, and then the 
callback is called just under the called C API.

It is easiest to fix the libtiff C API to be more suitable.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
