Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | plugin: python: fix build for Python 3.11 | Đoàn Trần Công Danh | 2022-09-24 | 1 | -0/+8 |
| | | | | | | | 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 <congdanhqx@gmail.com> | ||||
* | Fix python executed during configure | j.r | 2022-02-18 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | 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 | ||||
* | python_api.c: enlarge `c_arguments` array to avoid OOB write | Sergei Trofimovich | 2021-11-26 | 1 | -1/+1 |
| | | | | | | | | | 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. | ||||
* | src/plugins/python_api.c: drop redundant NULL pointer check | Sergei Trofimovich | 2021-11-18 | 1 | -1/+1 |
| | | | | | | | | | | | | 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 && 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]; | ^~~~~~~~~~~ | ||||
* | Add plugin get_barejid_from_roster function | Dustin Lagoy | 2021-04-29 | 1 | -0/+22 |
| | |||||
* | Change nick to name in api to match convention | Dustin Lagoy | 2021-04-28 | 1 | -5/+5 |
| | | | | | Change all instances of *get_nick_from_roster to *get_name_from_roster to match the convention of names in the roster itself. | ||||
* | Add plugin prof_get_nick_from_roster function | Dustin Lagoy | 2021-04-28 | 1 | -0/+23 |
| | |||||
* | Apply coding style | Michael Vetter | 2020-07-07 | 1 | -319/+317 |
| | |||||
* | Revert "Apply coding style" | Michael Vetter | 2020-07-07 | 1 | -322/+324 |
| | | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems. | ||||
* | Apply coding style | Michael Vetter | 2020-07-07 | 1 | -324/+322 |
| | | | | Regards https://github.com/profanity-im/profanity/issues/1396 | ||||
* | Add vim modeline | Michael Vetter | 2019-11-13 | 1 | -0/+1 |
| | |||||
* | plugins/python: fix double _XOPEN_SOURCE definition | Dmitry Podgorny | 2019-10-15 | 1 | -0/+1 |
| | | | | | | | | | | | | | ncursesw defines _XOPEN_SOURCE macro via command-line. In particular, it is defined in ncursesw.pc and extracted via pkg-config. From other side, Python defines the same macro unconditionally in pyconfig.h. Python-3.x defines the macro with value different than ncursesw does. In turn, this causes a warning that the macro is redefined. And warnings are treated as errors. Since both entities define the mecro unconditionally, we can't simply reorder headers as Python developers suggest. So, undefine the macro just before the <Python.h> to fix this silly issue. | ||||
* | Sort includes in python_api.c | Michael Vetter | 2019-10-07 | 1 | -5/+2 |
| | |||||
* | Fix double initialization of loop iterator | Michael Vetter | 2019-07-22 | 1 | -2/+0 |
| | |||||
* | Update copyright to include 2019 | Michael Vetter | 2019-01-22 | 1 | -1/+1 |
| | |||||
* | Update copyright | James Booth | 2018-01-21 | 1 | -1/+1 |
| | |||||
* | Update Copyright | James Booth | 2017-01-28 | 1 | -1/+1 |
| | |||||
* | Add chat and room show calls to plugins api | James Booth | 2017-01-21 | 1 | -0/+128 |
| | |||||
* | Allow room display properies to be set by plugins | James Booth | 2017-01-20 | 1 | -0/+98 |
| | |||||
* | Allow chat prefix char to be set by plugins | James Booth | 2017-01-20 | 1 | -0/+98 |
| | |||||
* | Add titlebar encryption text to plugins api | James Booth | 2017-01-19 | 1 | -0/+49 |
| | |||||
* | Add prof.encryption_reset to Plugins API | James Booth | 2017-01-18 | 1 | -0/+19 |
| | | | | issue #885 | ||||
* | Add get_room_nick to plugins api | James Booth | 2016-11-06 | 1 | -0/+22 |
| | |||||
* | Allow filepath autocompletion in plugins | James Booth | 2016-10-10 | 1 | -0/+25 |
| | | | | closes #858 | ||||
* | Remove disco features added by plugins on unload | James Booth | 2016-08-11 | 1 | -1/+4 |
| | |||||
* | Rename plugins settings functions | James Booth | 2016-08-07 | 1 | -24/+24 |
| | |||||
* | Return boolean on prof_settings_string_list_remove_all() | James Booth | 2016-08-01 | 1 | -3/+10 |
| | |||||
* | Remove log debugs | James Booth | 2016-08-01 | 1 | -7/+0 |
| | |||||
* | Add string lists settings to plugins | James Booth | 2016-08-01 | 1 | -0/+125 |
| | |||||
* | Fix memory leaks | James Booth | 2016-07-25 | 1 | -1/+3 |
| | |||||
* | Use Py_RETURN_NONE | James Booth | 2016-07-25 | 1 | -56/+56 |
| | |||||
* | Free python_str_or_unicode_to_string results | James Booth | 2016-07-25 | 1 | -4/+23 |
| | |||||
* | Remove debug on plugin win create | James Booth | 2016-07-24 | 1 | -1/+0 |
| | |||||
* | Tidy headers | James Booth | 2016-07-24 | 1 | -1/+1 |
| | |||||
* | Reorder headers | James Booth | 2016-07-24 | 1 | -2/+2 |
| | |||||
* | Python plugins: Free string values | James Booth | 2016-07-24 | 1 | -2/+57 |
| | |||||
* | Merge branch 'master' into python3 | James Booth | 2016-07-24 | 1 | -1/+1 |
|\ | | | | | | | | | Conflicts: .gitignore | ||||
| * | Update GPL link in headers | James Booth | 2016-07-24 | 1 | -1/+1 |
| | | |||||
* | | Allow str and unicode in python api | James Booth | 2016-07-24 | 1 | -117/+212 |
| | | |||||
* | | Tidy python3 conditional code | James Booth | 2016-07-19 | 1 | -38/+19 |
| | | |||||
* | | Add python_init_prof() | James Booth | 2016-07-18 | 1 | -0/+14 |
| | | |||||
* | | Fix prof module init for python3 | James Booth | 2016-07-18 | 1 | -15/+21 |
| | | |||||
* | | Added PYTHON3 define | James Booth | 2016-07-14 | 1 | -2/+47 |
|/ | |||||
* | Pass plugin name to all autocompleter functions | James Booth | 2016-07-04 | 1 | -2/+12 |
| | |||||
* | Free plugins commands on quit | James Booth | 2016-07-04 | 1 | -9/+17 |
| | |||||
* | Add plugin name to win_create api call | James Booth | 2016-07-03 | 1 | -1/+4 |
| | |||||
* | Pass plugin name to api layer | James Booth | 2016-06-30 | 1 | -5/+5 |
| | |||||
* | Revert "WIP - Unload plugin commands" | James Booth | 2016-06-30 | 1 | -2/+2 |
| | | | | This reverts commit a01eb5d08e1b39d60a6f8fc26e5a87ceb92ec18f. | ||||
* | WIP - Unload plugin commands | James Booth | 2016-06-29 | 1 | -2/+2 |
| | |||||
* | Add macro for plugins completer add | James Booth | 2016-06-23 | 1 | -0/+3 |
| |