aboutsummaryrefslogtreecommitdiff
path: root/tokenize.c (unfollow)
Commit message (Collapse)AuthorLines
2025-12-17Fix discarded const qualifiers from string functionsYaakov Selkowitz-1/+1
This is a new warning in GCC 15 that is being promoted to an error due to the werror=true in meson.build.
2021-12-25tokenize: free content of argv on failure, and reset the argv pointerDaniel Eklöf-3/+4
This fixes a memory leak when we failed to parse a command line (for example, because it contained an unclosed quote).
2021-06-20tokenize: strdup() each individual argvDaniel Eklöf-10/+13
Instead of referencing the un-tokenized “raw” command string, strdup() each argv. This way, the input string can be ‘const’.
2020-10-10selection: use appropriate check for PRIMARY pasteSergey Nazaryev-18/+14
Assume it could be a copy-paste typo. We should check PRIMARY, not CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything to CLIPBOARD.
2020-07-27tokenize: handle escaped quotesDaniel Eklöf-1/+12
We only support escaping quotes inside a quote, and only of the same type as the enclosing quote. I.e. "double quote \"escaped double quote\"" But not "double quote \'invalid escaped single quote\'"
2020-07-27tokenize: remove newline from log message (LOG_ERR appends one for us)Daniel Eklöf-1/+1
2020-07-27tokenize: reset *argv = NULL on errorDaniel Eklöf-0/+1
This allows the caller to call free() without having to worry about whether it has already been free:d or not. Closes #49.
2019-07-17slave: break out command line tokenizerDaniel Eklöf-66/+4
2019-07-17slave: report exec() failure back to main processDaniel Eklöf-1/+2
2019-07-17slave: exec shell from confDaniel Eklöf-2/+87
2019-07-03logging: disable debug logging by defaultDaniel Eklöf-1/+1
2019-06-29slave: remove initial debug codeDaniel Eklöf-16/+0
2019-06-15wip: vt parsing: initial csi/osc dispatchingDaniel Eklöf-0/+5
2019-06-13Initial handling of multi byte charactersDaniel Eklöf-1/+1
Use mblen() to calculate the byte count for each character.
2019-06-13Render cursorDaniel Eklöf-0/+3
2019-06-13Use frame callback to rate-limit surface updatesDaniel Eklöf-0/+3
2019-06-13initial grid implementationDaniel Eklöf-1/+2
This allows us to render *something*, even though it's inefficient, stupid and far far away from the real thing.
2019-06-13Set up pseudo terminal and fork slaveDaniel Eklöf-0/+67