<feed xmlns='http://www.w3.org/2005/Atom'>
<title>profani-tty/src/plugins, branch main</title>
<subtitle>Profanity fork with TTY improvements
</subtitle>
<id>https://git.tilde.institute/danisanti/profani-tty/atom?h=main</id>
<link rel='self' href='https://git.tilde.institute/danisanti/profani-tty/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/danisanti/profani-tty/'/>
<updated>2023-07-01T09:06:43Z</updated>
<entry>
<title>Profani-tty has reborn</title>
<updated>2023-07-01T09:06:43Z</updated>
<author>
<name>Daniel Santos</name>
<email>dacs.git@brilhante.top</email>
</author>
<published>2023-04-11T18:40:34Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/danisanti/profani-tty/commit/?id=a4ca6291afe1e407b72b2ec03bffc595946071f3'/>
<id>urn:sha1:a4ca6291afe1e407b72b2ec03bffc595946071f3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Cleanup: gchar as gchar instead of char</title>
<updated>2023-05-04T14:15:09Z</updated>
<author>
<name>John Hernandez</name>
<email>129467592+H3rnand3zzz@users.noreply.github.com</email>
</author>
<published>2023-04-19T00:44:19Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/danisanti/profani-tty/commit/?id=7f3fca2bd081a729d425184f7a0484025862257e'/>
<id>urn:sha1:7f3fca2bd081a729d425184f7a0484025862257e</id>
<content type='text'>
Use gchar instead of char in most of the cases where gchar is intended.

Reason: improve compatibility and stability. Issue #1819

Minor refactoring.
</content>
</entry>
<entry>
<title>Format code with clang-format 16</title>
<updated>2023-04-14T19:45:21Z</updated>
<author>
<name>Michael Vetter</name>
<email>jubalh@iodoru.org</email>
</author>
<published>2023-04-14T19:39:42Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/danisanti/profani-tty/commit/?id=d17bcf619c45bfbbf4d0e0bcf218fe6550c185f5'/>
<id>urn:sha1:d17bcf619c45bfbbf4d0e0bcf218fe6550c185f5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Adapt to g_string_free glib 2.75.3 change</title>
<updated>2023-03-21T09:53:10Z</updated>
<author>
<name>Michael Vetter</name>
<email>jubalh@iodoru.org</email>
</author>
<published>2023-03-17T22:58:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/danisanti/profani-tty/commit/?id=e59c401c840f379e64945734969db03b0e55ef22'/>
<id>urn:sha1:e59c401c840f379e64945734969db03b0e55ef22</id>
<content type='text'>
glib 2.75.3 changes warning behaviour of `g_string_free()`.
See:
* https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3219
* https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3226

Use this opportunity to replace the use of GString with
`g_strdup_printf()` where possible.
Otherwise correctly take the return value of `g_string_free()`
which is nicer anyways.
</content>
</entry>
<entry>
<title>plugin: python: fix build for Python 3.11</title>
<updated>2022-09-24T05:49:12Z</updated>
<author>
<name>Đoàn Trần Công Danh</name>
<email>congdanhqx@gmail.com</email>
</author>
<published>2022-09-22T14:53:13Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/danisanti/profani-tty/commit/?id=5a72fefe892f86423dde2c338879ea27a6489f03'/>
<id>urn:sha1:5a72fefe892f86423dde2c338879ea27a6489f03</id>
<content type='text'>
From Python 3.11, PyFrameObject has been changed into opaque struct.
We need to access those fields via API.

Signed-off-by: Đoàn Trần Công Danh &lt;congdanhqx@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fix python executed during configure</title>
<updated>2022-02-18T18:45:31Z</updated>
<author>
<name>j.r</name>
<email>j.r@jugendhacker.de</email>
</author>
<published>2022-02-18T17:50:02Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/danisanti/profani-tty/commit/?id=5676159aa52a734a34bf231b400ae13860e1012d'/>
<id>urn:sha1:5676159aa52a734a34bf231b400ae13860e1012d</id>
<content type='text'>
Previously it relied on AX_PYTHON_DEVEL, which in turn executes
python-config to get the build flags. However this does not work while
cross compiling because we can't execute the python-config build for the
target platform. To circumvent this problem the python build flags are
now queried via pkgconfig, which has the drawback of not having some
extra build flags, but they do not seem to be needed.

I tested this patch with the termux build system and it build without
their existing hack of injecting python after the configure step. I also
tested non cross compile build on Arch Linux and it also still works.

Fixes #851
</content>
</entry>
<entry>
<title>python_api.c: enlarge `c_arguments` array to avoid OOB write</title>
<updated>2021-11-26T07:54:01Z</updated>
<author>
<name>Sergei Trofimovich</name>
<email>slyich@gmail.com</email>
</author>
<published>2021-11-26T07:51:49Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/danisanti/profani-tty/commit/?id=f0a39a4b660cc27d40288216cb9e5a8611109c56'/>
<id>urn:sha1:f0a39a4b660cc27d40288216cb9e5a8611109c56</id>
<content type='text'>
Code below explicitly refers past `args_len`th element:

        c_arguments[args_len][0] = NULL;
        c_arguments[args_len][1] = NULL;

Let's always allocate space for `NULL`. Noticed by Steffen Jaeckel.
</content>
</entry>
<entry>
<title>src/plugins/python_api.c: drop redundant NULL pointer check</title>
<updated>2021-11-18T22:29:11Z</updated>
<author>
<name>Sergei Trofimovich</name>
<email>slyich@gmail.com</email>
</author>
<published>2021-11-18T22:28:44Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/danisanti/profani-tty/commit/?id=a77a57a6a45ed07c60b31f7cbe977f8e68fadbc8'/>
<id>urn:sha1:a77a57a6a45ed07c60b31f7cbe977f8e68fadbc8</id>
<content type='text'>
gcc-12 detects redundant check against array of arrays as:

    src/plugins/python_api.c: In function ‘python_api_register_command’:
    src/plugins/python_api.c:199:31: error: the comparison will always evaluate as ‘true’ for the address of ‘c_arguments’ will never be NULL [-Werror=address]
      199 |         while (c_arguments[i] != NULL &amp;&amp; c_arguments[i][0] != NULL) {
          |                               ^~
    src/plugins/python_api.c:161:15: note: ‘c_arguments’ declared here
      161 |         char* c_arguments[args_len == 0 ? 0 : args_len + 1][2];
          |               ^~~~~~~~~~~
</content>
</entry>
<entry>
<title>src/plugins/callbacks.c: drop redundant NULL pointer check</title>
<updated>2021-11-18T22:27:20Z</updated>
<author>
<name>Sergei Trofimovich</name>
<email>slyich@gmail.com</email>
</author>
<published>2021-11-18T22:27:20Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/danisanti/profani-tty/commit/?id=753d9dbbdb19df28827e8fdbb36455e1cfd3f52d'/>
<id>urn:sha1:753d9dbbdb19df28827e8fdbb36455e1cfd3f52d</id>
<content type='text'>
gcc-12 detects redundant check against array of arrays as:

    src/plugins/callbacks.c: In function ‘_free_command_help’:
    src/plugins/callbacks.c:85:26: error: the comparison will always evaluate as ‘true’ for the address of ‘args’ will never be NULL [-Werror=address]
       85 |     while (help-&gt;args[i] != NULL &amp;&amp; help-&gt;args[i][0] != NULL) {
          |                          ^~
    In file included from ./src/ui/ui.h:44,
                     from ./src/command/cmd_defs.h:42,
                     from src/plugins/callbacks.c:41:
    ./src/command/cmd_funcs.h:48:12: note: ‘args’ declared here
       48 |     gchar* args[128][2];
          |            ^~~~
</content>
</entry>
<entry>
<title>Add plugin get_barejid_from_roster function</title>
<updated>2021-04-29T17:50:57Z</updated>
<author>
<name>Dustin Lagoy</name>
<email>dustin@lagoy.org</email>
</author>
<published>2021-04-29T17:50:57Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/danisanti/profani-tty/commit/?id=2350a94c4411635f15173ec9c7964ea89e3fb2b1'/>
<id>urn:sha1:2350a94c4411635f15173ec9c7964ea89e3fb2b1</id>
<content type='text'>
</content>
</entry>
</feed>
