* view.c (struct WView): Renamed ds_file_size to ds_file_filesize,

to avoid confusion with ds_file_datasize.
This commit is contained in:
Roland Illig 2005-04-14 11:31:05 +00:00
parent b3913aa39f
commit 3db06a9dd2
2 changed files with 5 additions and 3 deletions

View File

@ -21,6 +21,8 @@
it only applies to the text viewer.
* view.c (struct WView): Renamed growing_buffer to growbuf_in_use,
blocks to growbuf_blocks, block_ptr to growbuf_blockptr.
* view.c (struct WView): Renamed ds_file_size to ds_file_filesize,
to avoid confusion with ds_file_datasize.
2005-04-13 Roland Illig <roland.illig@gmx.de>

View File

@ -114,7 +114,7 @@ struct WView {
/* vfs file data source */
int ds_file_fd; /* File with random access */
off_t ds_file_size; /* Size of the file */
off_t ds_file_filesize; /* Size of the file */
off_t ds_file_offset; /* Offset of the currently loaded data */
char *ds_file_data; /* Currently loaded data */
size_t ds_file_datalen; /* Number of valid bytes in file_data */
@ -2746,7 +2746,7 @@ view_get_filesize_with_exact (WView *view, gboolean *ret_exact)
return view_growbuf_filesize (view, ret_exact);
case DS_FILE:
*ret_exact = TRUE;
return view->ds_file_size;
return view->ds_file_filesize;
case DS_STRING:
*ret_exact = TRUE;
return view->ds_string_len;
@ -2982,7 +2982,7 @@ view_set_datasource_file (WView *view, int fd, const struct stat *st)
{
view->datasource = DS_FILE;
view->ds_file_fd = fd;
view->ds_file_size = st->st_size;
view->ds_file_filesize = st->st_size;
view->ds_file_offset = 0;
view->ds_file_data = g_malloc (4096);
view->ds_file_datalen = 0;