comparison src/quickfix.c @ 2047:85da03763130 v7.2.333

updated for version 7.2.333 Problem: Warnings from static code analysis. Solution: Small changes to various lines. (Dominique Pelle)
author Bram Moolenaar <bram@zimbu.org>
date Tue, 19 Jan 2010 14:59:56 +0100
parents eac2556d4620
children c17a42da3920
comparison
equal deleted inserted replaced
2046:d433f43849ba 2047:85da03763130
1897 char_u *fname; 1897 char_u *fname;
1898 qfline_T *qfp; 1898 qfline_T *qfp;
1899 int i; 1899 int i;
1900 int idx1 = 1; 1900 int idx1 = 1;
1901 int idx2 = -1; 1901 int idx2 = -1;
1902 int need_return = TRUE;
1903 char_u *arg = eap->arg; 1902 char_u *arg = eap->arg;
1904 int all = eap->forceit; /* if not :cl!, only show 1903 int all = eap->forceit; /* if not :cl!, only show
1905 recognised errors */ 1904 recognised errors */
1906 qf_info_T *qi = &ql_info; 1905 qf_info_T *qi = &ql_info;
1907 1906
1937 qfp = qi->qf_lists[qi->qf_curlist].qf_start; 1936 qfp = qi->qf_lists[qi->qf_curlist].qf_start;
1938 for (i = 1; !got_int && i <= qi->qf_lists[qi->qf_curlist].qf_count; ) 1937 for (i = 1; !got_int && i <= qi->qf_lists[qi->qf_curlist].qf_count; )
1939 { 1938 {
1940 if ((qfp->qf_valid || all) && idx1 <= i && i <= idx2) 1939 if ((qfp->qf_valid || all) && idx1 <= i && i <= idx2)
1941 { 1940 {
1942 if (need_return) 1941 msg_putchar('\n');
1943 { 1942 if (got_int)
1944 msg_putchar('\n'); 1943 break;
1945 if (got_int)
1946 break;
1947 need_return = FALSE;
1948 }
1949 1944
1950 fname = NULL; 1945 fname = NULL;
1951 if (qfp->qf_fnum != 0 1946 if (qfp->qf_fnum != 0
1952 && (buf = buflist_findnr(qfp->qf_fnum)) != NULL) 1947 && (buf = buflist_findnr(qfp->qf_fnum)) != NULL)
1953 { 1948 {
1986 qf_fmt_text((fname != NULL || qfp->qf_lnum != 0) 1981 qf_fmt_text((fname != NULL || qfp->qf_lnum != 0)
1987 ? skipwhite(qfp->qf_text) : qfp->qf_text, 1982 ? skipwhite(qfp->qf_text) : qfp->qf_text,
1988 IObuff, IOSIZE); 1983 IObuff, IOSIZE);
1989 msg_prt_line(IObuff, FALSE); 1984 msg_prt_line(IObuff, FALSE);
1990 out_flush(); /* show one line at a time */ 1985 out_flush(); /* show one line at a time */
1991 need_return = TRUE;
1992 } 1986 }
1993 1987
1994 qfp = qfp->qf_next; 1988 qfp = qfp->qf_next;
1995 ++i; 1989 ++i;
1996 ui_breakcheck(); 1990 ui_breakcheck();