<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/tokenize.c, branch releases/1.19</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.19</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=releases%2F1.19'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2021-12-25T22:25:30Z</updated>
<entry>
<title>tokenize: free content of argv on failure, and reset the argv pointer</title>
<updated>2021-12-25T22:25:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-12-25T22:25:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e225be1c504a9fbd84561e52bc565f121766a5d0'/>
<id>urn:sha1:e225be1c504a9fbd84561e52bc565f121766a5d0</id>
<content type='text'>
This fixes a memory leak when we failed to parse a command line (for
example, because it contained an unclosed quote).
</content>
</entry>
<entry>
<title>tokenize: strdup() each individual argv</title>
<updated>2021-06-20T12:19:22Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-06-20T12:17:31Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=42ec2640753650c69385d86c2fbb386d23965c89'/>
<id>urn:sha1:42ec2640753650c69385d86c2fbb386d23965c89</id>
<content type='text'>
Instead of referencing the un-tokenized “raw” command string, strdup()
each argv. This way, the input string can be ‘const’.
</content>
</entry>
<entry>
<title>tokenize: handle escaped quotes</title>
<updated>2020-07-27T14:43:41Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-27T14:43:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=50bd51c4d43931418c5b8c706841b46b67c1a947'/>
<id>urn:sha1:50bd51c4d43931418c5b8c706841b46b67c1a947</id>
<content type='text'>
We only support escaping quotes inside a quote, and only of the same
type as the enclosing quote.

I.e.

  "double quote \"escaped double quote\""

But not

  "double quote \'invalid escaped single quote\'"
</content>
</entry>
<entry>
<title>tokenize: remove newline from log message (LOG_ERR appends one for us)</title>
<updated>2020-07-27T04:04:29Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-27T04:04:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=a9eeeedc90224cb74b6d265c91c1a60fa884254c'/>
<id>urn:sha1:a9eeeedc90224cb74b6d265c91c1a60fa884254c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tokenize: reset *argv = NULL on error</title>
<updated>2020-07-27T04:03:30Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-07-27T04:03:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=22cd25d36059c784ea0da3ebeed063414aad44d3'/>
<id>urn:sha1:22cd25d36059c784ea0da3ebeed063414aad44d3</id>
<content type='text'>
This allows the caller to call free() without having to worry about
whether it has already been free:d or not.

Closes #49.
</content>
</entry>
<entry>
<title>slave: break out command line tokenizer</title>
<updated>2019-07-17T07:46:45Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2019-07-17T07:46:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2046dc0fbdbd77bb05542d7bc7d43edb0f057422'/>
<id>urn:sha1:2046dc0fbdbd77bb05542d7bc7d43edb0f057422</id>
<content type='text'>
</content>
</entry>
</feed>
