aboutsummaryrefslogtreecommitdiff
path: root/arguments.c
Commit message (Collapse)AuthorAge
...
* | No need for $Id$ now.Nicholas Marriott2014-11-08
| |
* | Merge branch 'obsd-master'Thomas Adam2014-10-21
|\| | | | | | | | | | | | | | | | | | | Conflicts: Makefile cmd-list-commands.c cmd-suspend-client.c job.c tmux.h xmalloc.c
| * Tidy up some includes.nicm2014-10-20
| |
* | Merge branch 'obsd-master'Thomas Adam2014-04-23
|\| | | | | | | | | | | | | Conflicts: Makefile tmux.1 window.c
| * Don't blindly increase offsets by the return value of snprintf, if therenicm2014-04-11
| | | | | | | | | | wasn't enough space this will go off the end. Instead clamp to the available space. Fixes crash reported by Julien Rebetez.
* | Merge branch 'obsd-master'Thomas2014-01-20
|\|
| * Couple of fixes from cppcheck via Tiago Cunha.nicm2014-01-15
| |
| * Simplify args_set, from Tiago Cunha.nicm2014-01-09
| |
| * Include unistd.h as it is the standard location for getopt().okan2013-11-17
| | | | | | | | OK millert@
* | Merge branch 'obsd-master'Thomas Adam2013-05-31
|\|
| * Instead of eating 1024 bytes or so for the arguments of each command,Nicholas Marriott2013-05-31
| | | | | | | | save memory by using an RB tree. From Tiago Cunha.
| * xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
| |
| * Pass the right size to calloc (* not **).Nicholas Marriott2011-07-09
| |
| * Free old argument even if setting to NULL.Nicholas Marriott2011-01-30
| |
| * Clean up and simplify tmux command argument parsing.Nicholas Marriott2011-01-04
| | | | | | | | | | | | | | | | | | | Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.
* Sync OpenBSD patchset 1150:Tiago Cunha2012-07-11
| | | | | xfree is not particularly helpful, remove it. From Thomas Adam.
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* Pass the right size to calloc (* not **).Nicholas Marriott2011-07-09
|
* Sync OpenBSD patchset 859:Tiago Cunha2011-02-15
| | | | | Free old argument even if setting to NULL.
* Remove compat include.Tiago Cunha2011-01-07
|
* Sync OpenBSD patchset 829:Tiago Cunha2011-01-07
Clean up and simplify tmux command argument parsing. Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.