<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-openbsd/lib/libedit/chared.c, branch jd/queueboosts</title>
<subtitle>WireGuard implementation for the OpenBSD kernel</subtitle>
<id>https://git.zx2c4.com/wireguard-openbsd/atom/lib/libedit/chared.c?h=jd%2Fqueueboosts</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-openbsd/atom/lib/libedit/chared.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>Replace the generated file "fcns.c" by a simpler header "func.h"</title>
<updated>2016-05-06T13:12:52Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-05-06T13:12:52Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=13e01c7add293760b137f79ec359a58715043708'/>
<id>urn:sha1:13e01c7add293760b137f79ec359a58715043708</id>
<content type='text'>
included only in the one file needing it, "map.c".
That allows to define el_action_t directly in "map.h",
which in turn allows to stop including "fcns.h" from "el.h"
and include it only in the modules needing it.
Now we no longer autogenerate any C files.

Feedback and OK martijn@.
First version 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>Reduce the FUN() macro madness by no longer applying it to el_[w]getc(3).</title>
<updated>2016-03-21T15:25:39Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-03-21T15:25:39Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=df2a7d38ac6d7be674243167b8355d7145815c50'/>
<id>urn:sha1:df2a7d38ac6d7be674243167b8355d7145815c50</id>
<content type='text'>
Always use el_wgetc(3) internally.  In the !WIDECHAR case, casting
the result to (Char) is safe because the function returns a byte
rather than a character in that case.
No functional change except for fixing a printf(3) format string issue
when compiled with DEBUG_READ and WIDECHAR.
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>
<entry>
<title>Cleanup of private header inclusion:</title>
<updated>2016-03-20T22:57:59Z</updated>
<author>
<name>schwarze</name>
<email>schwarze@openbsd.org</email>
</author>
<published>2016-03-20T22:57:59Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-openbsd/commit/?id=5564fb9496c6db6caa72a9dcf75b20efbd24a525'/>
<id>urn:sha1:5564fb9496c6db6caa72a9dcf75b20efbd24a525</id>
<content type='text'>
1. Do not include private headers from "chared.h", "hist.h", "prompt.h",
"refresh.h", "search.h", "sig.h", "terminal.h", "tty.h".
The only private header having to include other private headers is "el.h".
2. Do not include "common.h", "parse.h", "help.h" from "el.h",
and do not include "emacs.h" and "vi.h" from "chared.h",
include them directly where needed.
3. Do include "fcns.h" from "el.h" because el_func_t is needed for "map.h".
4. Do not include private headers again that are already included by "el.h".
5. Include private headers after standard headers.

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