<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/test/unit/eval, branch v0.2.1</title>
<subtitle>Neovim fork with Rahm's personal hacks.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/'/>
<entry>
<title>unittests: Fix allocation ordering for tv_dict_add_str()</title>
<updated>2017-07-02T17:24:39+00:00</updated>
<author>
<name>ZyX</name>
<email>kp-pav@yandex.ru</email>
</author>
<published>2017-07-02T17:18:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=35898cff5d1d6dc60e0d7b87bfe106539453b031'/>
<id>35898cff5d1d6dc60e0d7b87bfe106539453b031</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>eval/typval: Add tv_dict_add_allocated_str() function</title>
<updated>2017-07-02T16:01:09+00:00</updated>
<author>
<name>ZyX</name>
<email>kp-pav@yandex.ru</email>
</author>
<published>2017-07-02T16:01:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=df040e55fbd3edc5a36462af927a7194d079d0b8'/>
<id>df040e55fbd3edc5a36462af927a7194d079d0b8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>eval: Refactor get_user_input to support dictionary</title>
<updated>2017-05-10T12:52:48+00:00</updated>
<author>
<name>ZyX</name>
<email>kp-pav@yandex.ru</email>
</author>
<published>2017-04-01T20:57:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=f4d5d5250a105b5593e3119f4ee37ea20272a34b'/>
<id>f4d5d5250a105b5593e3119f4ee37ea20272a34b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>unittests: Add a test for TV_CSTRING</title>
<updated>2017-04-14T20:58:47+00:00</updated>
<author>
<name>ZyX</name>
<email>kp-pav@yandex.ru</email>
</author>
<published>2017-04-13T21:12:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=b54e5c220f0b1bff31ce65c6988f70cbb9780b5e'/>
<id>b54e5c220f0b1bff31ce65c6988f70cbb9780b5e</id>
<content type='text'>
Not using enum{} because SIZE_MAX exceeds integer and I do not really like how
enum definition is described in C99:

1. Even though all values must fit into the chosen type (6.7.2.2, p 4) the type
   to choose is still implementation-defined.
2. 6.4.4.3 explicitly states that “an identifier declared as an enumeration
   constant has type `int`”. So it looks like “no matter what type was chosen
   for enumeration, constants will be integers”. Yet the following simple
   program:

        #include &lt;stdint.h&gt;
        #include &lt;stdio.h&gt;
        #include &lt;stddef.h&gt;

        enum { X=SIZE_MAX };

        int main(int argc, char **argv)
        {
          printf("x:%zu m:%zu t:%zu v:%zu",
                 sizeof(X), sizeof(SIZE_MAX), sizeof(size_t), (size_t)X);
        }

    yields one of the following using different compilers:

    - clang/gcc/pathcc: `x:8 m:8 t:8 v:18446744073709551615`
    - pcc/tcc: `x:4 m:8 t:8 v:1844674407370955161`

    If I remove the cast of X to size_t then pcc/tcc both yield `x:4 m:8 t:8
    v:4294967295`, other compilers’ output does not change.

    All compilers were called with `$compiler -std=c99 -xc -` (feeding program
    from echo), except for `tcc` which has missing `-std=c99`. `pcc` seems to
    ignore the argument though: it is perfectly fine with `-std=c1000`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Not using enum{} because SIZE_MAX exceeds integer and I do not really like how
enum definition is described in C99:

1. Even though all values must fit into the chosen type (6.7.2.2, p 4) the type
   to choose is still implementation-defined.
2. 6.4.4.3 explicitly states that “an identifier declared as an enumeration
   constant has type `int`”. So it looks like “no matter what type was chosen
   for enumeration, constants will be integers”. Yet the following simple
   program:

        #include &lt;stdint.h&gt;
        #include &lt;stdio.h&gt;
        #include &lt;stddef.h&gt;

        enum { X=SIZE_MAX };

        int main(int argc, char **argv)
        {
          printf("x:%zu m:%zu t:%zu v:%zu",
                 sizeof(X), sizeof(SIZE_MAX), sizeof(size_t), (size_t)X);
        }

    yields one of the following using different compilers:

    - clang/gcc/pathcc: `x:8 m:8 t:8 v:18446744073709551615`
    - pcc/tcc: `x:4 m:8 t:8 v:1844674407370955161`

    If I remove the cast of X to size_t then pcc/tcc both yield `x:4 m:8 t:8
    v:4294967295`, other compilers’ output does not change.

    All compilers were called with `$compiler -std=c99 -xc -` (feeding program
    from echo), except for `tcc` which has missing `-std=c99`. `pcc` seems to
    ignore the argument though: it is perfectly fine with `-std=c1000`.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge #6439 from ZyX-I/fix-gc-failures</title>
<updated>2017-04-09T02:05:07+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2017-04-09T02:05:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=699e8406b5d57e1ca975af443329d8f24ae1b704'/>
<id>699e8406b5d57e1ca975af443329d8f24ae1b704</id>
<content type='text'>
unittests: Force GC, fix GC failures in typval_spec</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
unittests: Force GC, fix GC failures in typval_spec</pre>
</div>
</content>
</entry>
<entry>
<title>unittests: Fix linter error</title>
<updated>2017-04-09T00:39:37+00:00</updated>
<author>
<name>ZyX</name>
<email>kp-pav@yandex.ru</email>
</author>
<published>2017-04-09T00:39:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=967fa96eb2ca263c0fefd9e9be74e9862e59d740'/>
<id>967fa96eb2ca263c0fefd9e9be74e9862e59d740</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>unittests: Move allocating vimconv_T to a function</title>
<updated>2017-04-09T00:36:18+00:00</updated>
<author>
<name>ZyX</name>
<email>kp-pav@yandex.ru</email>
</author>
<published>2017-04-08T01:47:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=8990490b50df651144658d0e68c7f582d7013376'/>
<id>8990490b50df651144658d0e68c7f582d7013376</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>unittests: Do not GC typval_T which is owned by a di</title>
<updated>2017-04-09T00:36:18+00:00</updated>
<author>
<name>ZyX</name>
<email>kp-pav@yandex.ru</email>
</author>
<published>2017-04-08T01:40:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=233e71419ef18dcbf62425505a58d67169c1b4b1'/>
<id>233e71419ef18dcbf62425505a58d67169c1b4b1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>unittests: Do not unref partial which is owned by Callback structure</title>
<updated>2017-04-09T00:36:17+00:00</updated>
<author>
<name>ZyX</name>
<email>kp-pav@yandex.ru</email>
</author>
<published>2017-04-08T01:36:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=bac870433b828ea3a850e61710b636c62ecaa5ed'/>
<id>bac870433b828ea3a850e61710b636c62ecaa5ed</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>unittests: Use Neovim memory allocation for vimconv_T</title>
<updated>2017-04-09T00:36:17+00:00</updated>
<author>
<name>ZyX</name>
<email>kp-pav@yandex.ru</email>
</author>
<published>2017-04-08T01:31:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=44cd4e63f58fe240b1d8259600a60757f1bd2ce8'/>
<id>44cd4e63f58fe240b1d8259600a60757f1bd2ce8</id>
<content type='text'>
Not sure whether this is going to fix things though, but core dump does not 
contain Neovim functions in stack in this case.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Not sure whether this is going to fix things though, but core dump does not 
contain Neovim functions in stack in this case.</pre>
</div>
</content>
</entry>
</feed>
