summaryrefslogtreecommitdiff
path: root/src/preproc/eqn/pile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/preproc/eqn/pile.cpp')
-rw-r--r--src/preproc/eqn/pile.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/preproc/eqn/pile.cpp b/src/preproc/eqn/pile.cpp
index 0df5241f..e641b7ff 100644
--- a/src/preproc/eqn/pile.cpp
+++ b/src/preproc/eqn/pile.cpp
@@ -1,5 +1,5 @@
// -*- C++ -*-
-/* Copyright (C) 1989, 1990, 1991, 1992 Free Software Foundation, Inc.
+/* Copyright (C) 1989, 1990, 1991, 1992, 2004 Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.com)
This file is part of groff.
@@ -114,13 +114,13 @@ void pile_box::debug_print()
int matrix_box::compute_metrics(int style)
{
int i, j;
- int maxlen = 0;
+ int max_len = 0;
int space = 0;
for (i = 0; i < len; i++) {
for (j = 0; j < p[i]->len; j++)
p[i]->p[j]->compute_metrics(style);
- if (p[i]->len > maxlen)
- maxlen = p[i]->len;
+ if (p[i]->len > max_len)
+ max_len = p[i]->len;
if (p[i]->space > space)
space = p[i]->space;
}
@@ -145,7 +145,7 @@ int matrix_box::compute_metrics(int style)
printf("/\\n(.V+(\\n(.V/2)*\\n(.V\n");
printf(".nr " SUP_RAISE_FORMAT " \\n[" BASELINE_SEP_FORMAT "]*%d/2"
"+%dM\n",
- uid, uid, maxlen-1, axis_height - shift_down);
+ uid, uid, max_len-1, axis_height - shift_down);
printf(".nr " HEIGHT_FORMAT " 0\\n[" SUP_RAISE_FORMAT "]+(0",
uid, uid);
for (i = 0; i < len; i++)
@@ -153,10 +153,10 @@ int matrix_box::compute_metrics(int style)
printf(")>?0\n");
printf(".nr " DEPTH_FORMAT " \\n[" BASELINE_SEP_FORMAT "]*%d-\\n["
SUP_RAISE_FORMAT "]+(0",
- uid, uid, maxlen-1, uid);
+ uid, uid, max_len-1, uid);
for (i = 0; i < len; i++)
- if (p[i]->len == maxlen)
- printf(">?\\n[" DEPTH_FORMAT "]", p[i]->p[maxlen-1]->uid);
+ if (p[i]->len == max_len)
+ printf(">?\\n[" DEPTH_FORMAT "]", p[i]->p[max_len-1]->uid);
printf(")>?0\n");
return FOUND_NOTHING;
}