Age | Commit message (Collapse) | Author |
|
'delete' is a keyword in c++. Its usage confuses some tools that work
with c and c++ source code.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
'register' is an optimization hint to the compiler that is generally
not necessary and needlessly prevents using a c++ compiler to compile
twm.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Replace with a local variable following the naming scheme from
Identify() in src/menus.c.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Replace with a local variable following the naming scheme from
Identify() in src/menus.c.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Replace with a local variable following the naming scheme from
Identify() in src/menus.c.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
twm defines several "junk" variables to use with functions like
XQueryPointer or XGetGeometry. In some instances, the returned
values are actually used, which makes the code confusing and hard
to reason about. Use dedicated variables in those cases.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Preparation for the removal of FirstScreen: Separate code that is
executed for all screens from code that is executed for only the
first screen.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Support for xprint was removed in commit 0ce52bc9ed.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
This silences all "function might be candidate for attribute 'noreturn'"
warnings. Add to HandleEvent as well, as that function never returns.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
This silences all "function '...' might be a candidate for 'gnu_printf'
format attribute" warnings.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
yylex is already declared in (the generated) lex.c. This silences
a "redundant redeclaration of 'yylex'" warning.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
yyparse is already declared in (the generated) gram.h. This silences
a "redundant redeclaration of 'yyparse'" warning.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
yylineno is already declared in (the generated) gram.h. This silences
a "redundant redeclaration of 'yylineno'" warning.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Silence some "initialization discards 'const' qualifier from pointer
target type" warnings.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
The variable `n` is written to every iteration of the loop, but never
read. It is overwritten (and read) in the next loop though. Remove the
dead store.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
xprint is deprecated and was removed from xorg in 2008.
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Names that begin with an underscore ('_') are reserved. Follow the usual
practice of naming the include guard of file "foo.h" "FOO_H", as is already
done in "icons.h".
Signed-off-by: Tim Wiederhake <twied@gmx.net>
|
|
Found by using:
codespell --builtin clear,rare,usage,informal,code,names
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
adapt the suggestion to use XFetchName to work around a system whose locale
support is broken, but rather than break existing configurations, use that
call as a fallback when the existing/working calls fail.
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
useful; a subsequent X11R6 change made the behavior a little worse.
This change repairs that old damage.
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
does not handle those files).
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
since -q option can be used to silence those if wanted
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
name as a prefix
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
also bump version to 1.0.11.1, reflecting ongoing work since release
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
and document (except for the print-extension) all of the options
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|
|
report/patch by Preston Crow for improved window placement
(reindented to fit with current sources)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
|