commit edc778c8cba2d936647d877d1b7d50fa7eb83b81
parent d25ca0ad4dd73ac485eb11b79ac4a9222335916f
Author: ukai <ukai>
Date: Mon, 25 Nov 2002 16:59:07 +0000
fix indent
Diffstat:
M | file.c | | | 14 | +++++++------- |
M | func.c | | | 42 | +++++++++++++++++++++--------------------- |
M | main.c | | | 16 | ++++++++-------- |
3 files changed, 36 insertions(+), 36 deletions(-)
diff --git a/file.c b/file.c
@@ -5454,7 +5454,7 @@ HTMLlineproc0(char *str, struct html_feed_environ *h_env, int internal)
}
if (ST_IS_COMMENT(obuf->status)) {
if ((obuf->table_level >= 0) ? tbl_mode->pre_mode & TBLM_IGNORE
- : obuf->flag & RB_IGNORE)
+ : obuf->flag & RB_IGNORE)
/* within ignored tag, such as *
* <script>..</script>, don't process comment. */
obuf->status = R_ST_NORMAL;
@@ -5470,12 +5470,12 @@ HTMLlineproc0(char *str, struct html_feed_environ *h_env, int internal)
Strcat_char(h_env->tagbuf, ' ');
}
if ((obuf->table_level >= 0)
- ? ((tbl_mode->pre_mode & TBLM_IGNORE) &&
- !TAG_IS(h_env->tagbuf->ptr, tbl_mode->ignore_tag->ptr,
- tbl_mode->ignore_tag->length - 1))
- : ((obuf->flag & RB_IGNORE) &&
- !TAG_IS(h_env->tagbuf->ptr, obuf->ignore_tag->ptr,
- obuf->ignore_tag->length - 1)))
+ ? ((tbl_mode->pre_mode & TBLM_IGNORE) &&
+ !TAG_IS(h_env->tagbuf->ptr, tbl_mode->ignore_tag->ptr,
+ tbl_mode->ignore_tag->length - 1))
+ : ((obuf->flag & RB_IGNORE) &&
+ !TAG_IS(h_env->tagbuf->ptr, obuf->ignore_tag->ptr,
+ obuf->ignore_tag->length - 1)))
/* within ignored tag, such as *
* <script>..</script>, don't process tag. */
obuf->status = R_ST_NORMAL;
diff --git a/func.c b/func.c
@@ -323,31 +323,31 @@ getQWord(char **str)
#ifdef USE_MOUSE
static MouseAction default_mouse_action = {
- NULL,
+ NULL,
#if LANG == JA
- "ΆγΆ¬Ά",
+ "ΆγΆ¬Ά",
#else
- "<=UpDn",
+ "<=UpDn",
#endif
- 0, 6, FALSE, 0, 0,
- { { movMs, NULL }, { backBf, NULL }, { menuMs, NULL } }, /* default */
- { { NULL, NULL }, { NULL, NULL }, { NULL, NULL } }, /* anchor */
- { { followA, NULL }, { NULL, NULL }, { NULL, NULL } }, /* active */
- { { tabMs, NULL }, { closeTMs, NULL }, { NULL, NULL } }, /* tab */
- { NULL, NULL, NULL }, /* menu */
- { NULL, NULL, NULL } /* lastline */
+ 0, 6, FALSE, 0, 0,
+ {{movMs, NULL}, {backBf, NULL}, {menuMs, NULL}}, /* default */
+ {{NULL, NULL}, {NULL, NULL}, {NULL, NULL}}, /* anchor */
+ {{followA, NULL}, {NULL, NULL}, {NULL, NULL}}, /* active */
+ {{tabMs, NULL}, {closeTMs, NULL}, {NULL, NULL}}, /* tab */
+ {NULL, NULL, NULL}, /* menu */
+ {NULL, NULL, NULL} /* lastline */
};
static MouseActionMap default_lastline_action[6] = {
- { backBf, NULL },
- { backBf, NULL },
- { pgBack, NULL },
- { pgBack, NULL },
- { pgFore, NULL },
- { pgFore, NULL }
+ {backBf, NULL},
+ {backBf, NULL},
+ {pgBack, NULL},
+ {pgBack, NULL},
+ {pgFore, NULL},
+ {pgFore, NULL}
};
static void
-setMouseAction0(char **str, int *width, MouseActionMap **map, char *p)
+setMouseAction0(char **str, int *width, MouseActionMap ** map, char *p)
{
char *s;
int b, w, x;
@@ -379,7 +379,7 @@ setMouseAction0(char **str, int *width, MouseActionMap **map, char *p)
}
static void
-setMouseAction1(MouseActionMap **map, int width, char *p)
+setMouseAction1(MouseActionMap ** map, int width, char *p)
{
char *s;
int x, x2, f;
@@ -394,11 +394,11 @@ setMouseAction1(MouseActionMap **map, int width, char *p)
s = getWord(&p);
x = atoi(s);
if (!(IS_DIGIT(*s) && x >= 0 && x < width))
- return; /* error */
+ return; /* error */
s = getWord(&p);
x2 = atoi(s);
if (!(IS_DIGIT(*s) && x2 >= 0 && x2 < width))
- return; /* error */
+ return; /* error */
s = getWord(&p);
f = getFuncList(s);
s = getQWord(&p);
@@ -411,7 +411,7 @@ setMouseAction1(MouseActionMap **map, int width, char *p)
}
static void
-setMouseAction2(MouseActionMap *map, char *p)
+setMouseAction2(MouseActionMap * map, char *p)
{
char *s;
int f;
diff --git a/main.c b/main.c
@@ -4843,8 +4843,8 @@ do_mouse_action(int btn, int x, int y)
if (mouse_action.menu_map[btn])
map = &mouse_action.menu_map[btn][x];
}
- else
- map = &mouse_action.tab_map[btn];
+ else
+ map = &mouse_action.tab_map[btn];
}
else if (y == LASTLINE) {
if (mouse_action.lastline_str && x >= 0 &&
@@ -4857,9 +4857,10 @@ do_mouse_action(int btn, int x, int y)
if (y == Currentbuf->cursorY + Currentbuf->rootY &&
(x == Currentbuf->cursorX + Currentbuf->rootX
#ifdef JP_CHARSET
- || (Currentbuf->currentLine != NULL &&
- (Currentbuf->currentLine->propBuf[Currentbuf->pos] & PC_KANJI1)
- && x == Currentbuf->cursorX + Currentbuf->rootX + 1)
+ || (Currentbuf->currentLine != NULL &&
+ (Currentbuf->currentLine->
+ propBuf[Currentbuf->pos] & PC_KANJI1)
+ && x == Currentbuf->cursorX + Currentbuf->rootX + 1)
#endif /* JP_CHARSET */
)) {
if (retrieveCurrentAnchor(Currentbuf) ||
@@ -4868,8 +4869,7 @@ do_mouse_action(int btn, int x, int y)
}
else {
int cx = Currentbuf->cursorX, cy = Currentbuf->cursorY;
- cursorXY(Currentbuf, x - Currentbuf->rootX,
- y - Currentbuf->rootY);
+ cursorXY(Currentbuf, x - Currentbuf->rootX, y - Currentbuf->rootY);
if (retrieveCurrentAnchor(Currentbuf) ||
retrieveCurrentForm(Currentbuf))
map = &mouse_action.anchor_map[btn];
@@ -5124,7 +5124,7 @@ menuMs(void)
mouse_action.cursorY < LASTLINE) {
cursorXY(Currentbuf, mouse_action.cursorX - Currentbuf->rootX,
mouse_action.cursorY - Currentbuf->rootY);
- onA();
+ onA();
}
mainMn();
}