mirror of https://github.com/pygos/pkg-utils.git
Signed-off-by: David Oberhollenzer <goliath@infraroot.at>master
parent
134458b85a
commit
6fc871b3ff
@ -0,0 +1,19 @@
|
||||
#ifndef INPUT_FILE_H
|
||||
#define INPUT_FILE_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
typedef struct {
|
||||
FILE *f;
|
||||
char *line;
|
||||
const char *filename;
|
||||
size_t linenum;
|
||||
} input_file_t;
|
||||
|
||||
int prefetch_line(input_file_t *f);
|
||||
|
||||
void cleanup_file(input_file_t *f);
|
||||
|
||||
int open_file(input_file_t *f, const char *filename);
|
||||
|
||||
#endif /* INPUT_FILE_H */
|
@ -1,4 +1,9 @@
|
||||
#include "pack.h"
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "input_file.h"
|
||||
|
||||
int prefetch_line(input_file_t *f)
|
||||
{
|
Loading…
Reference in new issue