mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-06 11:09:13 +00:00
Add alloca_poll_events() macro
This commit is contained in:
parent
fa21bec880
commit
e82d22d765
@ -67,6 +67,7 @@ strbuf strbuf_path_join(strbuf sb, ...);
|
|||||||
* @author Andrew Bettison <andrew@servalproject.com>
|
* @author Andrew Bettison <andrew@servalproject.com>
|
||||||
*/
|
*/
|
||||||
strbuf strbuf_append_poll_events(strbuf sb, short events);
|
strbuf strbuf_append_poll_events(strbuf sb, short events);
|
||||||
|
#define alloca_poll_events(ev) strbuf_str(strbuf_append_poll_events(strbuf_alloca(200), (ev)))
|
||||||
|
|
||||||
/* Append a nul-terminated string as a single-quoted shell word which, if
|
/* Append a nul-terminated string as a single-quoted shell word which, if
|
||||||
* expanded in a shell command line, would evaluate to the original string.
|
* expanded in a shell command line, would evaluate to the original string.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user