home *** CD-ROM | disk | FTP | other *** search
- /* Listing 3. Header file for tabexp class */
-
- #include <stdio.h>
-
- class tabexp {
- private:
- FILE *f; /* input file stream */
- int col; /* current column of current line */
- int tabsize; /* given tab size */
- int tabcnt; /* amount of spaces left to tab */
- public:
- void init(FILE *fp, int ts); /* initializer */
- int get(void); /* get next char */
- tabexp(FILE *fp, int ts); /* constructor */
- };