Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nvi/dist/common fix indentantion
details: https://anonhg.NetBSD.org/src/rev/07016b311dec
branches: trunk
changeset: 325032:07016b311dec
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 01 02:21:58 2013 +0000
description:
fix indentantion
diffstat:
external/bsd/nvi/dist/common/vi_db1.c | 40 +++++++++++++++++-----------------
1 files changed, 20 insertions(+), 20 deletions(-)
diffs (51 lines):
diff -r f0dab8fbe76b -r 07016b311dec external/bsd/nvi/dist/common/vi_db1.c
--- a/external/bsd/nvi/dist/common/vi_db1.c Sun Dec 01 01:05:16 2013 +0000
+++ b/external/bsd/nvi/dist/common/vi_db1.c Sun Dec 01 02:21:58 2013 +0000
@@ -123,27 +123,27 @@
#if defined(DBDEBUG) && defined(TRACE)
vtrace(
"retrieve TEXT buffer line %lu\n", (u_long)lno);
- #endif
- for (tp = TAILQ_FIRST(&sp->tiq);
- tp->lno != lno; tp = TAILQ_NEXT(tp, q));
- if (lenp != NULL)
- *lenp = tp->len;
- if (pp != NULL)
- *pp = tp->lb;
- return (0);
- }
- /*
- * Adjust the line number for the number of lines used
- * by the text input buffers.
- */
- if (lno > l2)
- lno -= l2 - l1;
- }
+#endif
+ for (tp = TAILQ_FIRST(&sp->tiq);
+ tp->lno != lno; tp = TAILQ_NEXT(tp, q));
+ if (lenp != NULL)
+ *lenp = tp->len;
+ if (pp != NULL)
+ *pp = tp->lb;
+ return (0);
+ }
+ /*
+ * Adjust the line number for the number of lines used
+ * by the text input buffers.
+ */
+ if (lno > l2)
+ lno -= l2 - l1;
+ }
- /* Look-aside into the cache, and see if the line we want is there. */
- if (lno == sp->c_lno) {
- #if defined(DBDEBUG) && defined(TRACE)
- vtrace("retrieve cached line %lu\n", (u_long)lno);
+ /* Look-aside into the cache, and see if the line we want is there. */
+ if (lno == sp->c_lno) {
+#if defined(DBDEBUG) && defined(TRACE)
+ vtrace("retrieve cached line %lu\n", (u_long)lno);
#endif
if (lenp != NULL)
*lenp = sp->c_len;
Home |
Main Index |
Thread Index |
Old Index