Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
1ba5f41
)
use typedef'd unsigned type and regular bool type.
author
Aurélien Aptel <
[email protected]
>
Wed, 19 Sep 2012 14:03:16 +0000
(16:03 +0200)
committer
Aurélien Aptel <
[email protected]
>
Wed, 19 Sep 2012 14:03:16 +0000
(16:03 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
89c59b4
..
35f6f16
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-196,7
+196,7
@@
typedef struct {
XIM xim;
XIC xic;
int scr;
XIM xim;
XIC xic;
int scr;
-
B
ool isfixed; /* is fixed geometry? */
+
b
ool isfixed; /* is fixed geometry? */
int fx, fy, fw, fh; /* fixed geometry */
int tw, th; /* tty width and height */
int w; /* window width */
int fx, fy, fw, fh; /* fixed geometry */
int tw, th; /* tty width and height */
int w; /* window width */
@@
-931,7
+931,7
@@
tcursor(int mode) {
void
treset(void) {
void
treset(void) {
- u
nsigned
i;
+ u
int
i;
term.c = (TCursor){{
.mode = ATTR_NULL,
.fg = DefaultFG,
term.c = (TCursor){{
.mode = ATTR_NULL,
.fg = DefaultFG,
@@
-1594,7
+1594,7
@@
strreset(void) {
void
tputtab(bool forward) {
void
tputtab(bool forward) {
- u
nsigned
x = term.c.x;
+ u
int
x = term.c.x;
if(forward) {
if(x == term.col)
if(forward) {
if(x == term.col)
@@
-2393,7
+2393,7
@@
run(void) {
int
main(int argc, char *argv[]) {
int i, bitm, xr, yr;
int
main(int argc, char *argv[]) {
int i, bitm, xr, yr;
- u
nsigned
int wr, hr;
+ uint wr, hr;
xw.fw = xw.fh = xw.fx = xw.fy = 0;
xw.isfixed = False;
xw.fw = xw.fh = xw.fx = xw.fy = 0;
xw.isfixed = False;