Lines Matching refs:thisfile

40  * The circular list is anchored by the file state "thisfile".
73 #define ch_bufhead thisfile->buflist.next
74 #define ch_buftail thisfile->buflist.prev
75 #define ch_nbufs thisfile->nbufs
76 #define ch_block thisfile->block
77 #define ch_offset thisfile->offset
78 #define ch_fpos thisfile->fpos
79 #define ch_fsize thisfile->fsize
80 #define ch_flags thisfile->flags
81 #define ch_file thisfile->file
83 #define END_OF_CHAIN (&thisfile->buflist)
84 #define END_OF_HCHAIN(h) (&thisfile->hashtbl[h])
88 * Macros to manipulate the list of buffers in thisfile->buflist.
110 * Macros to manipulate the list of buffers in thisfile->hashtbl[n].
113 for (bn = thisfile->hashtbl[h].hnext; \
121 (bn)->hnext = thisfile->hashtbl[h].hnext; \
123 thisfile->hashtbl[h].hnext->hprev = (bn); \
124 thisfile->hashtbl[h].hnext = (bn);
126 static struct filestate *thisfile;
160 if (thisfile == NULL)
466 if (thisfile == NULL)
502 if (thisfile == NULL)
531 if (thisfile == NULL || (ch_flags & CH_CANSEEK))
584 if (thisfile == NULL)
600 if (thisfile == NULL)
612 if (thisfile == NULL)
632 if (thisfile == NULL)
672 if (thisfile == NULL)
771 thisfile->hashtbl[h].hnext = END_OF_HCHAIN(h);
772 thisfile->hashtbl[h].hprev = END_OF_HCHAIN(h);
831 thisfile = (struct filestate *) get_filestate(curr_ifile);
832 if (thisfile == NULL)
837 thisfile = (struct filestate *)
839 thisfile->buflist.next = thisfile->buflist.prev = END_OF_CHAIN;
840 thisfile->nbufs = 0;
841 thisfile->flags = flags;
842 thisfile->fpos = 0;
843 thisfile->block = 0;
844 thisfile->offset = 0;
845 thisfile->file = -1;
846 thisfile->fsize = NULL_POSITION;
853 set_filestate(curr_ifile, (void *) thisfile);
855 if (thisfile->file == -1)
856 thisfile->file = f;
867 if (thisfile == NULL)
896 free(thisfile);
897 thisfile = NULL;
907 if (thisfile == NULL)