<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libedit/el.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libedit/el.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libedit/el.c?h=jd%2Fqueueboosts'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/'/>
<updated>2017-04-12T18:24:37Z</updated>
<entry>
<title>Use calloc(3) and recallocarray(3) instead of *alloc* + memset(0).</title>
<updated>2017-04-12T18:24:37Z</updated>
<author>
<name>tb</name>
<email>tb@openbsd.org</email>
</author>
<published>2017-04-12T18:24:37Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=7b6df1e236be9d0d76ed74eabe303425a43c91fc'/>
<id>urn:sha1:7b6df1e236be9d0d76ed74eabe303425a43c91fc</id>
<content type='text'>
ok deraadt
</content>
</entry>
<entry>
<title>Improve modularization at the chared/read boundary, no functional change.</title>
<updated>2016-05-22T23:09:56Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-22T23:09:56Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5161d913cb08c330eb60301f1e102963e9c20781'/>
<id>urn:sha1:5161d913cb08c330eb60301f1e102963e9c20781</id>
<content type='text'>
Stop the read.c module from poking the el_chared.c_macro data
structure that used to belong to the chared.c module.  Given that
no other module, not even chared itself, is using that data, move it
into the read modules's own opaque data structure, struct el_read_t.

That gets rid of one struct, one #define, one struct member, and one
function argument in the chared.h interface.

OK czarkoff@
</content>
</entry>
<entry>
<title>Move the declaration of the function pointer type el_rfunc_t</title>
<updated>2016-05-20T15:30:17Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-20T15:30:17Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=04833be782e762289c5df37db589b7334e21f089'/>
<id>urn:sha1:04833be782e762289c5df37db589b7334e21f089</id>
<content type='text'>
from the private header "read.h" to the public header &lt;histedit.h&gt;.
That's not an interface change, it was already used and documented
publicly, merely not properly declared.

Improve encapsulation: Make el_read a pointer to an opaque struct
in struct editline, such that "read.h" no longer needs to be included
from "el.h" but only from the two files using it, read.c and el.c.
Only pass the required el_read_t to el_read_{s,g}etfn(),
do not pass the full struct editline.

OK czarkoff@,
also proofread by Christian Heckendorf &lt;mbie at ulmus dot me&gt;.
</content>
</entry>
<entry>
<title>delete the "private" and "public" preprocessor macros, just use standard C;</title>
<updated>2016-04-11T21:17:29Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-11T21:17:29Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=ddc81437857133802b1cf7d8d5bf0ff2198b602b'/>
<id>urn:sha1:ddc81437857133802b1cf7d8d5bf0ff2198b602b</id>
<content type='text'>
OK martijn@
</content>
</entry>
<entry>
<title>get rid of the non-standard data type "Char" in almost all files;</title>
<updated>2016-04-11T20:43:33Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-11T20:43:33Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=e3191321e10061607f650c80a8b76fe9f4de6d52'/>
<id>urn:sha1:e3191321e10061607f650c80a8b76fe9f4de6d52</id>
<content type='text'>
ok martijn@
</content>
</entry>
<entry>
<title>Move wrapper macros to the two files actually needing them:</title>
<updated>2016-04-11T19:54:53Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-11T19:54:53Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5c93237dc61741a77e4aedea71fcbacffe8f97ad'/>
<id>urn:sha1:5c93237dc61741a77e4aedea71fcbacffe8f97ad</id>
<content type='text'>
FUNW, Strlen, Strdup, Strcmp, Strncmp, Strncpy, Strncat -&gt; history.c
Strchr, tok_strdup -&gt; tokenizer.c
FUN, TYPE, STR -&gt; both of these files

OK martijn@

Also proofread by Christian Heckendorf &lt;mbie at ulmus dot me&gt;
who reported some whitespace issues in parse.c.
</content>
</entry>
<entry>
<title>Delete 26 wrapper macros and two wrapper functions that are no</title>
<updated>2016-04-09T20:15:26Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-09T20:15:26Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=565aa7e845bd05480ccceb0abafa956d0083e470'/>
<id>urn:sha1:565aa7e845bd05480ccceb0abafa956d0083e470</id>
<content type='text'>
longer needed now that we always compile with wide character support,
reducing code obfuscation.

OK czarkoff@ martijn@.
Diff also proofread by Christian Heckendorf &lt;mbie at ulmus dot me&gt;.
</content>
</entry>
<entry>
<title>Always compile with WIDECHAR on and delete that preprocessor switch.</title>
<updated>2016-04-09T19:31:55Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-04-09T19:31:55Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=59aed04376a049dfbbb13e1bb6d19f1aff4a2c6e'/>
<id>urn:sha1:59aed04376a049dfbbb13e1bb6d19f1aff4a2c6e</id>
<content type='text'>
OK martijn@.
Diff also proofread by Christian Heckendorf &lt;mbie at ulmus dot me&gt;.
</content>
</entry>
<entry>
<title>Make the read_char() function always take a wchar_t * argument.</title>
<updated>2016-03-21T17:28:10Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-03-21T17:28:10Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=c8b52917b0ae1c6e9a7a48206308400f73e0a887'/>
<id>urn:sha1:c8b52917b0ae1c6e9a7a48206308400f73e0a887</id>
<content type='text'>
On first sight, it might look as if this required a bump because
it seems to change the public type el_rfunc_t.  But we only compile
with WIDECHAR, and in that case, there is no change in the interface.

This also simplifies some logic by getting rid of the NARROW_READ flag
which was broken anyway.

OK czarkoff@
</content>
</entry>
<entry>
<title>Cleanup of standard header inclusion:</title>
<updated>2016-03-20T23:48:27Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-03-20T23:48:27Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=7ccfa089d503f0f7c1c22435af04c237b0796118'/>
<id>urn:sha1:7ccfa089d503f0f7c1c22435af04c237b0796118</id>
<content type='text'>
1. Add the missing &lt;errno.h&gt; to sig.c.
2. Do not include standard headers from private headers "chared.h"
and "el.h", include them directly where needed.
3. Delete a few needless inclusions of &lt;ctype.h&gt;.
4. Sort the standard headers.
5. Delete _GNU_SOURCE weirdness from histedit.h, that file doesn't even
need the access to wcsdup(3) mentioned in the comment.
6. Delete some trailing blanks and blanks before tabs.

OK czarkoff@
</content>
</entry>
</feed>
