From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109330 invoked by alias); 2 Sep 2016 09:12:25 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 109320 invoked by uid 89); 2 Sep 2016 09:12:24 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=ham version=3.3.2 spammy=grew, retained, alarm, yaakov X-HELO: mail-it0-f49.google.com Received: from mail-it0-f49.google.com (HELO mail-it0-f49.google.com) (209.85.214.49) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 Sep 2016 09:12:23 +0000 Received: by mail-it0-f49.google.com with SMTP id i184so26239049itf.1 for ; Fri, 02 Sep 2016 02:12:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=z38c8jgbxqvPgQMPVvScvUnoB67fI3EJT1OenFb7f+8=; b=M6wacKuSwL635pQ2VXiEIvz3Pdl+Ef7WrWo0aXGnrfya1fOrm7BYXSqsVMikquLDTk 7Tt9o4YaQgGpUY5Ss18fPfTEtBI3/uW41Ved6ETYfiGcADrA4XXg8MjZWRo+PLs7Zb7h KvGS3dnjTdWhoEv1lK4fJ0fr3iIOUD8Sf2wW7QmFvyj2Ej/gaRRG/LlTe8DGgZMfaUwc A/B+Yhf14kKB8oPlOkWuxj3ZrMSith8BTORnZnyCLLQKdyvaggBtou7PQQLnqEpmcfIw kX7Xkc8ZktP/dZmsouDETf2gWjvwtPLjHkm9jhMaVMok6/tvalsN1WhqiyXfppUzL9Hx TDVg== X-Gm-Message-State: AE9vXwMCJteKy3bWvOflJin6oCMkqc9FzLw9jcuS0ZDEXj0FPAmL7WT5EozPOhAnVLGYvPKS6Op74bEW6n46YQ== X-Received: by 10.36.123.212 with SMTP id q203mr3667622itc.13.1472807541853; Fri, 02 Sep 2016 02:12:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.166.210 with HTTP; Fri, 2 Sep 2016 02:12:21 -0700 (PDT) In-Reply-To: <9cd05ef5-a204-7c38-2304-9cb3af364e40@cygwin.com> References: <9cd05ef5-a204-7c38-2304-9cb3af364e40@cygwin.com> From: Jan Nijtmans Date: Fri, 02 Sep 2016 09:12:00 -0000 Message-ID: Subject: Re: sqlite3: deprecated declarations To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-09/txt/msg00022.txt.bz2 2016-09-02 8:23 GMT+02:00 Yaakov Selkowitz: > Jan, > > Please enable deprecated declarations in sqlite3.h. While it's nice in > theory to say that they are deprecated and shouldn't be used, the reality is > that real-world code still uses them and therefore fails to build as-is > without them. Thanks! I'll do that in the next build. Still, I'm interested to know which real-word code still uses it, so a bug-report can be sent to them. All of those 6 functions where deprecated for a reason! SQLITE_DEPRECATED int sqlite3_aggregate_count(sqlite3_context*); ** This function is deprecated. Do not use it for new code. It is ** provide only to avoid breaking legacy code. New aggregate function ** implementations should keep their own counts within their aggregate ** context. SQLITE_DEPRECATED int sqlite3_expired(sqlite3_stmt*); ** Return TRUE (non-zero) of the statement supplied as an argument needs ** to be recompiled. A statement needs to be recompiled whenever the ** execution environment changes in a way that would alter the program ** that sqlite3_prepare() generates. For example, if new functions or ** collating sequences are registered or if an authorizer function is ** added or changed. SQLITE_DEPRECATED int sqlite3_transfer_bindings(sqlite3_stmt*, sqlite3_stmt*); ** Deprecated external interface. Internal/core SQLite code ** should call sqlite3TransferBindings. ** ** It is misuse to call this routine with statements from different ** database connections. But as this is a deprecated interface, we ** will not bother to check for that condition. ** ** If the two statements contain a different number of bindings, then ** an SQLITE_ERROR is returned. Nothing else can go wrong, so otherwise ** SQLITE_OK is returned. SQLITE_DEPRECATED int sqlite3_global_recover(void); ** This function is now an anachronism. It used to be used to recover from a ** malloc() failure, but SQLite now does this automatically. SQLITE_DEPRECATED void sqlite3_thread_cleanup(void); ** This is a convenience routine that makes sure that all thread-specific ** data for this thread has been deallocated. ** ** SQLite no longer uses thread-specific data so this routine is now a ** no-op. It is retained for historical compatibility. SQLITE_DEPRECATED int sqlite3_memory_alarm(void(*)(void*,sqlite3_int64,int), void*,sqlite3_int64); ** Deprecated external interface. It used to set an alarm callback ** that was invoked when memory usage grew too large. Now it is a ** no-op. Regards, Jan Nijtmans -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple