diff options
| author | Tatsuya Kinoshita <tats@debian.org> | 2016-10-31 11:22:26 +0000 | 
|---|---|---|
| committer | Tatsuya Kinoshita <tats@debian.org> | 2016-10-31 11:22:26 +0000 | 
| commit | 6f1454580d0c7d6e50319116a72447c6e7efaea5 (patch) | |
| tree | 5f0a2f5769f2d49c2477f332866c779aec6ad91d | |
| parent | Update ChangeLog (diff) | |
| download | w3m-6f1454580d0c7d6e50319116a72447c6e7efaea5.tar.gz w3m-6f1454580d0c7d6e50319116a72447c6e7efaea5.zip | |
Revert "Treat table height as int instead of short"
This reverts commit 0c9aebb26a16ad3acc69b2e87ffd216d43879cb6.
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842623
Diffstat (limited to '')
| -rw-r--r-- | table.c | 14 | ||||
| -rw-r--r-- | table.h | 2 | ||||
| -rw-r--r-- | textlist.h | 6 | 
3 files changed, 11 insertions, 11 deletions
| @@ -278,7 +278,7 @@ newTable()      t->max_rowsize = MAXROW;      t->tabdata = New_N(GeneralList **, MAXROW);      t->tabattr = New_N(table_attr *, MAXROW); -    t->tabheight = NewAtom_N(int, MAXROW); +    t->tabheight = NewAtom_N(short, MAXROW);  #ifdef ID_EXT      t->tabidvalue = New_N(Str *, MAXROW);      t->tridvalue = New_N(Str, MAXROW); @@ -331,7 +331,7 @@ check_row(struct table *t, int row)      int i, r;      GeneralList ***tabdata;      table_attr **tabattr; -    int *tabheight; +    short *tabheight;  #ifdef ID_EXT      Str **tabidvalue;      Str *tridvalue; @@ -341,7 +341,7 @@ check_row(struct table *t, int row)  	r = max(t->max_rowsize * 2, row + 1);  	tabdata = New_N(GeneralList **, r);  	tabattr = New_N(table_attr *, r); -	tabheight = NewAtom_N(int, r); +	tabheight = NewAtom_N(short, r);  #ifdef ID_EXT  	tabidvalue = New_N(Str *, r);  	tridvalue = New_N(Str, r); @@ -846,7 +846,7 @@ table_rule_width(struct table *t)  }  static void -check_cell_width(int *tabwidth, int *cellwidth, +check_cell_width(short *tabwidth, short *cellwidth,  		 short *col, short *colspan, short maxcell,  		 short *indexarray, int space, int dir)  { @@ -1478,7 +1478,7 @@ check_table_height(struct table *t)  	short *indexarray;  	short maxcell;  	short size; -	int *height; +	short *height;      } cell;      int space = 0; @@ -1517,7 +1517,7 @@ check_table_height(struct table *t)  			cell.row = NewAtom_N(short, cell.size);  			cell.rowspan = NewAtom_N(short, cell.size);  			cell.indexarray = NewAtom_N(short, cell.size); -			cell.height = NewAtom_N(int, cell.size); +			cell.height = NewAtom_N(short, cell.size);  		    }  		    else {  			cell.size = max(cell.size + MAXCELL, c + 1); @@ -1526,7 +1526,7 @@ check_table_height(struct table *t)  						 cell.size);  			cell.indexarray = New_Reuse(short, cell.indexarray,  						    cell.size); -			cell.height = New_Reuse(int, cell.height, cell.size); +			cell.height = New_Reuse(short, cell.height, cell.size);  		    }  		}  		if (c > cell.maxcell) { @@ -100,7 +100,7 @@ struct table {      short minimum_width[MAXCOL];      short fixed_width[MAXCOL];      struct table_cell cell; -    int *tabheight; +    short *tabheight;      struct table_in *tables;      short ntable;      short tables_size; @@ -14,7 +14,7 @@ typedef struct _listitem {  typedef struct _generallist {      ListItem *first;      ListItem *last; -    int nitem; +    short nitem;  } GeneralList;  extern ListItem *newListItem(void *s, ListItem *n, ListItem *p); @@ -36,7 +36,7 @@ typedef struct _textlistitem {  typedef struct _textlist {      TextListItem *first;      TextListItem *last; -    int nitem; +    short nitem;  } TextList;  #define newTextList() ((TextList *)newGeneralList()) @@ -62,7 +62,7 @@ typedef struct _textlinelistitem {  typedef struct _textlinelist {      TextLineListItem *first;      TextLineListItem *last; -    int nitem; +    short nitem;  } TextLineList;  extern TextLine *newTextLine(Str line, int pos); | 
