2 * sparse/smatch_files.c
4 * Copyright (C) 2009 Dan Carpenter.
6 * Licensed under the Open Software License version 1.1
16 int open_data_file(const char *filename
)
21 fd
= open(filename
, O_RDONLY
);
26 snprintf(buf
, 256, "%s/%s", data_dir
, filename
);
27 fd
= open(buf
, O_RDONLY
);
32 struct token
*get_tokens_file(const char *filename
)
39 fd
= open_data_file(filename
);
42 token
= tokenize(filename
, fd
, NULL
, NULL
);