summaryrefslogtreecommitdiff
path: root/actions.c
AgeCommit message (Collapse)Author
2021-11-28Fix spelling/wording issuesAlan Coopersmith
Found by using: codespell --builtin clear,rare,usage,informal,code,names Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-06-01Fix -Wsign-compare warning in quit() functionAlan Coopersmith
Reported by gcc 7.3: actions.c: In function ‘quit’: actions.c:414:60: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (ev->type == ClientMessage && ev->xclient.data.l[0] != wm_delete_window) ^~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2019-02-18Add bitwise ops and base conversion (DEC/OCT/HEX) in TI modeTim Hentenaar
These operations implicitly truncate their parameters, and result to integers: * not * and * or * xor * shl * shr * mod * trunc Base 2 was left out of the base conversion code intentionally as it would require making the UI at least one third wider. Attempts to change base with negative values will simply display "error." Note that with larger numbers, the result may be inaccurate due to rounding. I've also bound the Return key to the equal() action. Signed-off-by: Tim Hentenaar <tim@hentenaar.com>
2013-07-09Rename "e" arguments to "ev" to avoid shadowing e() functionAlan Coopersmith
Resolves many gcc warnings of the form: actions.c: In function ‘add’: actions.c:142:35: warning: declaration of ‘e’ shadows a global declaration actions.c:57:13: warning: shadowed declaration is here [-Wshadow] Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-07-09Remove redundant redeclaration of ‘factorial’Alan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-09-28Strip trailing whitespaceAlan Coopersmith
Performed with: find * -type f | xargs perl -i -p -e 's{[ \t]+$}{}' git diff -w & git diff -b show no diffs from this change Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-11-20Purge RCS/CVS version tagsAlan Coopersmith
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2009-01-12Ansification and compile warning fixes.Paulo Cesar Pereira de Andrade
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and all gcc 4.3 and sparse warnings.
2003-11-14Initial revisionXORG-STABLEKaleb Keithley