aboutsummaryrefslogtreecommitdiffstats
path: root/etc.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-25 17:42:17 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-25 17:42:17 +0000
commit6e58e83e1237f1d9ba3dda1aa0cb054253bc4d0e (patch)
treecbccee3a42bd309dd2fe85a5dbbb1b12ba29bfb7 /etc.c
parentfix indent (diff)
downloadw3m-6e58e83e1237f1d9ba3dda1aa0cb054253bc4d0e.tar.gz
w3m-6e58e83e1237f1d9ba3dda1aa0cb054253bc4d0e.zip
[w3m-dev 03686] Re: fold patch
* buffer.c (writeBufferCache): rewrite (readBufferCache): rewrite * etc.c (calcPosition): short -> int realColumn * fm.h (Line): short -> int len,width,size,bpos,bwidth (BufferPoint): short->int pos (Buffer): short->int currentColumn,pos,visualpos (BufferPos): short->int currentColumn,pos * frame.h (frameset_queue): short->int pos,currentColumn * main.c (clear_mark): short->int pos (dispincsrch): short->int pos (backBf): short->int pos (set_buffer_environ): short->int prev_pos From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'etc.c')
-rw-r--r--etc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc.c b/etc.c
index 26fcc41..62b8f25 100644
--- a/etc.c
+++ b/etc.c
@@ -1,4 +1,4 @@
-/* $Id: etc.c,v 1.59 2003/01/23 18:38:06 ukai Exp $ */
+/* $Id: etc.c,v 1.60 2003/01/25 17:42:17 ukai Exp $ */
#include "fm.h"
#include <pwd.h>
#include "myctype.h"
@@ -481,7 +481,7 @@ checkType(Str s, Lineprop **oprop
int
calcPosition(char *l, Lineprop *pr, int len, int pos, int bpos, int mode)
{
- static short *realColumn = NULL;
+ static int *realColumn = NULL;
static int size = 0;
static char *prevl = NULL;
int i, j;
@@ -494,7 +494,7 @@ calcPosition(char *l, Lineprop *pr, int len, int pos, int bpos, int mode)
}
if (size < len + 1) {
size = (len + 1 > LINELEN) ? (len + 1) : LINELEN;
- realColumn = New_Reuse(short, realColumn, size);
+ realColumn = New_Reuse(int, realColumn, size);
}
prevl = l;
j = bpos;