From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18066 invoked by alias); 30 Jul 2010 09:15:19 -0000 Received: (qmail 17887 invoked by uid 48); 30 Jul 2010 09:15:04 -0000 Date: Fri, 30 Jul 2010 09:15:00 -0000 From: "rrt at sc3d dot org" To: glibc-bugs-regex@sources.redhat.com Message-ID: <20100730091503.11857.rrt@sc3d.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug regex/11857] New: Missing documentation in regex.h X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-regex-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sourceware.org X-SW-Source: 2010-07/txt/msg00001.txt.bz2 The attached patch addresses the following deficiencies in regex.h's documentation: 1. It mentions that re_compile-allocated pattern buffers should be freed with regfree. (This may seem surprising, as regfree is in the POSIX API, not the GNU API. Eric Blake, 20 Jul 10, wrote to bug-gnulib@gnu.org: Odd or not, that is the correct usage pattern. regfree() is the correct way to release memory allocated by re_compile. ) 2. It explains that when using regfree, the translate member must either be NULL or a malloced pointer. (See http://sourceware.org/bugzilla/show_bug.cgi?id=5718) 3. It adds not_bol, not_eol and newline_anchor to the list of fields that are user-accessible after compilation (thanks to Bruno Haible for answering my question about this on bug-gnulib 29 Jul 10). Note that this patch only changes comments, not code. -- Summary: Missing documentation in regex.h Product: glibc Version: unspecified Status: NEW Severity: minor Priority: P2 Component: regex AssignedTo: drepper at redhat dot com ReportedBy: rrt at sc3d dot org CC: glibc-bugs-regex at sources dot redhat dot com,glibc- bugs at sources dot redhat dot com http://sourceware.org/bugzilla/show_bug.cgi?id=11857 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.