diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-16 19:05:36 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-16 19:05:36 +0000 |
commit | 9d65c0da9feca889861579ceffee56036ae8b3fe (patch) | |
tree | 3a2eaa2336a9d71375f9a1b04aecef09cbbf0fbe /search.c | |
parent | [w3m-dev 02862] SIGPIPE for migemo support (diff) | |
download | w3m-9d65c0da9feca889861579ceffee56036ae8b3fe.tar.gz w3m-9d65c0da9feca889861579ceffee56036ae8b3fe.zip |
run make indent
Diffstat (limited to 'search.c')
-rw-r--r-- | search.c | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -1,4 +1,4 @@ -/* $Id: search.c,v 1.10 2002/01/16 19:02:16 ukai Exp $ */ +/* $Id: search.c,v 1.11 2002/01/16 19:05:37 ukai Exp $ */ #include "fm.h" #include "regex.h" #include <errno.h> @@ -6,8 +6,8 @@ static void set_mark(Line *l, int pos, int epos) { - for (; pos < epos && pos < l->len; pos++) - l->propBuf[pos] |= PE_MARK; + for (; pos < epos && pos < l->len; pos++) + l->propBuf[pos] |= PE_MARK; } #ifdef USE_MIGEMO @@ -53,13 +53,13 @@ open_migemo(char *migemo_command) migemor = fdopen(fdr[0], "r"); migemow = fdopen(fdw[1], "w"); return 1; -err2: + err2: close(fdw[0]); close(fdw[1]); -err1: + err1: close(fdr[0]); close(fdr[1]); -err0: + err0: use_migemo = 0; return 0; } @@ -72,11 +72,13 @@ migemostr(char *str) if (open_migemo(migemo_command) == 0) return str; fprintf(migemow, "%s\n", str); -again: + again: if (fflush(migemow) != 0) { switch (errno) { - case EINTR: goto again; - default: goto err; + case EINTR: + goto again; + default: + goto err; } } tmp = Strfgets(migemor); @@ -84,7 +86,7 @@ again: if (tmp->length == 0) goto err; return tmp->ptr; -err: + err: /* XXX: backend migemo is not working? */ init_migemo(); use_migemo = 0; |