public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/11857] New: Missing documentation in regex.h
@ 2010-07-30  9:15 rrt at sc3d dot org
  2010-07-30  9:29 ` [Bug regex/11857] " rrt at sc3d dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 10+ messages in thread
From: rrt at sc3d dot org @ 2010-07-30  9:15 UTC (permalink / raw)
  To: glibc-bugs-regex

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.


^ permalink raw reply	[flat|nested] 10+ messages in thread
[parent not found: <bug-11857-132@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2014-06-30 17:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-30  9:15 [Bug regex/11857] New: Missing documentation in regex.h rrt at sc3d dot org
2010-07-30  9:29 ` [Bug regex/11857] " rrt at sc3d dot org
2010-07-30 19:30 ` rrt at sc3d dot org
2010-07-30 19:32 ` rrt at sc3d dot org
2010-07-30 20:20 ` rrt at sc3d dot org
2010-07-30 22:10 ` rrt at sc3d dot org
2010-07-31 19:34 ` rrt at sc3d dot org
2010-07-31 19:36 ` rrt at sc3d dot org
     [not found] <bug-11857-132@http.sourceware.org/bugzilla/>
2011-05-20 13:15 ` drepper.fsp at gmail dot com
2014-06-30 17:28 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).