Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add config.h in files were it was missing | Michael Vetter | 2021-03-26 | 1 | -0/+2 |
| | | | | Related to https://github.com/profanity-im/profanity/issues/1512 | ||||
* | Declare counter var inside loop | Michael Vetter | 2020-11-09 | 1 | -11/+6 |
| | | | | We require c99/gnu99 anyways. | ||||
* | parser.c: Use glib | Michael Vetter | 2020-07-23 | 1 | -4/+4 |
| | | | | | | | | We use malloc() to allcoate memory for the arguments. But later on in cmd_funcs.c we use g_strfreev() to free it. Let's use g_malloc() to allocate instead. Second change is to use g_malloc() and g_free() for a gchar. | ||||
* | Fix /correct quotation marks usage | Michael Vetter | 2020-07-23 | 1 | -0/+27 |
| | | | | | | | Add new `parse_args_as_one()` function to just use everything after the command as the argument. Fix https://github.com/profanity-im/profanity/issues/1404 | ||||
* | parser.c: Use helper function to reduce duplicate code | Michael Vetter | 2020-07-21 | 1 | -143/+50 |
| | | | | | | | | | | `parse_args()` and `parse_args_with_freetext()` shared a lot of common code. Let's have a helper function `_parse_args_helper()` for that. The `with_freetext` parameter will make it behave like `parse_args_with_freetext()`. In preparation for https://github.com/profanity-im/profanity/issues/1404 | ||||
* | parse_args(): Call g_free() once | Michael Vetter | 2020-07-21 | 1 | -3/+2 |
| | |||||
* | Use parse_args_with_freetext() for `/correct` | Michael Vetter | 2020-07-20 | 1 | -2/+2 |
| | | | | | | | | | | | | | This commit partly reverts 8f37afcd37ad8663ca36c13ca7fbc4a431119f73 Which was using a wrong approach to achieve this. It changed parse_args() to have a -1 for infinite parameters. But actually parse_args_with_freetext() should have been used exactly for this behaviour. Discovered when checking for https://github.com/profanity-im/profanity/issues/1404 | ||||
* | Fix typo in comment | Michael Vetter | 2020-07-15 | 1 | -1/+1 |
| | |||||
* | Apply coding style | Michael Vetter | 2020-07-07 | 1 | -44/+44 |
| | |||||
* | Revert "Apply coding style" | Michael Vetter | 2020-07-07 | 1 | -44/+44 |
| | | | | | | This reverts commit 9b55f2dec0ea27a9ce4856e303425e12f866cea2. Sorting the includes creates some problems. | ||||
* | Apply coding style | Michael Vetter | 2020-07-07 | 1 | -44/+44 |
| | | | | Regards https://github.com/profanity-im/profanity/issues/1396 | ||||
* | xep-0308: Make /correct work without quotation marks | Michael Vetter | 2020-02-14 | 1 | -2/+2 |
| | | | | | | Now we can specify an unlimited amount of arguments for commands. Maybe this is also helpful for other commands that use quotation marks so far. | ||||
* | Add vim modeline | Michael Vetter | 2019-11-13 | 1 | -0/+1 |
| | |||||
* | Free list in error case in parse_options | Michael Vetter | 2019-10-06 | 1 | -0/+3 |
| | | | | | | Fix memleaks. Regards https://github.com/profanity-im/profanity/issues/1019 | ||||
* | Fix memleak in get_start() | Michael Vetter | 2019-10-06 | 1 | -0/+1 |
| | | | | Regards https://github.com/profanity-im/profanity/issues/1019 | ||||
* | 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 |
| | |||||
* | Update GPL link in headers | James Booth | 2016-07-24 | 1 | -1/+1 |
| | |||||
* | Updated copyright | James Booth | 2016-02-14 | 1 | -1/+1 |
| | |||||
* | Applied coding style to src/tools/ | James Booth | 2015-10-25 | 1 | -8/+8 |
| | |||||
* | Use null check convention in parser.c | James Booth | 2015-05-04 | 1 | -4/+4 |
| | |||||
* | Fixed spelling. | Christian Storm | 2015-02-17 | 1 | -5/+5 |
| | |||||
* | Updated copyright | James Booth | 2015-02-10 | 1 | -1/+1 |
| | |||||
* | Simplified autocompleters and command history | James Booth | 2015-01-16 | 1 | -2/+2 |
| | |||||
* | Added license exemption for OpenSSL to source headers | James Booth | 2014-08-24 | 1 | -0/+12 |
| | |||||
* | Free tokens when 0 supplied an 0 min, parse_args_with_freetext | James Booth | 2014-06-17 | 1 | -0/+1 |
| | |||||
* | Added common.h to parser.c | James Booth | 2014-05-22 | 1 | -0/+2 |
| | |||||
* | Fixed cppcheck warnings | James Booth | 2014-04-26 | 1 | -2/+1 |
| | |||||
* | Simplified parse_options to take first option as argument | James Booth | 2014-04-15 | 1 | -4/+4 |
| | |||||
* | Simplified parse_options to take gchar** | James Booth | 2014-04-15 | 1 | -1/+12 |
| | |||||
* | Refactored cmd_join to use parse_options | James Booth | 2014-04-14 | 1 | -2/+2 |
| | |||||
* | Check for duplicate options in option parser | James Booth | 2014-04-14 | 1 | -2/+19 |
| | |||||
* | Added parse_options | James Booth | 2014-04-14 | 1 | -0/+40 |
| | |||||
* | Command argument parsers set result argument | James Booth | 2014-04-09 | 1 | -4/+10 |
| | |||||
* | Updated copyright | James Booth | 2014-03-09 | 1 | -1/+1 |
| | |||||
* | Moved free in parse_args_with_freetext | James Booth | 2013-09-23 | 1 | -2/+2 |
| | | | | issue #226 | ||||
* | Fixed memory leak in parse_args_with_freetext | James Booth | 2013-09-23 | 1 | -2/+2 |
| | | | | issue #226 | ||||
* | Fix quoted nicknames in /group add | James Booth | 2013-08-27 | 1 | -1/+1 |
| | | | | fixes #233 | ||||
* | Fix freetext arguments with quotes | James Booth | 2013-07-20 | 1 | -5/+5 |
| | | | | fixes #203 | ||||
* | Remaining parser function unicode compatible | James Booth | 2013-07-14 | 1 | -30/+29 |
| | |||||
* | Added parser tests | James Booth | 2013-07-14 | 1 | -2/+0 |
| | |||||
* | Implemented parse_args_with_freetext with unicode compatibility | James Booth | 2013-07-14 | 1 | -20/+26 |
| | |||||
* | Implemented parse_args with unicode compatibility | James Booth | 2013-07-14 | 1 | -4/+17 |
| | |||||
* | Handle unicode chars in command parser | James Booth | 2013-07-12 | 1 | -9/+14 |
| | |||||
* | Removed if clause in parser | James Booth | 2013-07-11 | 1 | -2/+0 |
| | |||||
* | Moved functions to parser.c, moved parser to tools | James Booth | 2013-07-11 | 1 | -0/+349 |