Lines Matching defs:thisfile

31  * The circular list is anchored by the file state "thisfile".
64 #define ch_bufhead thisfile->buflist.next
65 #define ch_buftail thisfile->buflist.prev
66 #define ch_nbufs thisfile->nbufs
67 #define ch_block thisfile->block
68 #define ch_offset thisfile->offset
69 #define ch_fpos thisfile->fpos
70 #define ch_fsize thisfile->fsize
71 #define ch_flags thisfile->flags
72 #define ch_file thisfile->file
74 #define END_OF_CHAIN (&thisfile->buflist)
75 #define END_OF_HCHAIN(h) (&thisfile->hashtbl[h])
79 * Macros to manipulate the list of buffers in thisfile->buflist.
101 * Macros to manipulate the list of buffers in thisfile->hashtbl[n].
104 for (bn = thisfile->hashtbl[h].hnext; \
112 (bn)->hnext = thisfile->hashtbl[h].hnext; \
114 thisfile->hashtbl[h].hnext->hprev = (bn); \
115 thisfile->hashtbl[h].hnext = (bn);
117 static struct filestate *thisfile;
157 if (thisfile == NULL)
473 if (thisfile == NULL)
509 if (thisfile == NULL)
538 if (thisfile == NULL || (ch_flags & CH_CANSEEK))
591 if (thisfile == NULL)
607 if (thisfile == NULL)
619 if (thisfile == NULL)
639 if (thisfile == NULL)
679 if (thisfile == NULL)
761 thisfile->hashtbl[h].hnext = END_OF_HCHAIN(h);
762 thisfile->hashtbl[h].hprev = END_OF_HCHAIN(h);
821 thisfile = (struct filestate *) get_filestate(curr_ifile);
822 if (thisfile == NULL)
827 thisfile = (struct filestate *)
829 thisfile->buflist.next = thisfile->buflist.prev = END_OF_CHAIN;
830 thisfile->nbufs = 0;
831 thisfile->flags = flags;
832 thisfile->fpos = 0;
833 thisfile->block = 0;
834 thisfile->offset = 0;
835 thisfile->file = -1;
836 thisfile->fsize = NULL_POSITION;
843 set_filestate(curr_ifile, (void *) thisfile);
845 if (thisfile->file == -1)
846 thisfile->file = f;
873 if (thisfile == NULL)
902 free(thisfile);
903 thisfile = NULL;
913 if (thisfile == NULL)