edfb3e24a3
bshell: the front-end binary bshell.runtime: contains the parser, compiler, and classes needed to run bshell scripts bshell.core: contains the builtin commandlets and aliases
22 lines
417 B
C
22 lines
417 B
C
#ifndef BSHELL_FILE_H_
|
|
#define BSHELL_FILE_H_
|
|
|
|
#include <bshell/line-source.h>
|
|
#include <fx/collections/array.h>
|
|
#include <stdio.h>
|
|
|
|
struct bshell_file {
|
|
struct bshell_line_source f_base;
|
|
fx_array *f_lines;
|
|
char *f_path;
|
|
fx_stream *f_strp;
|
|
FILE *f_fp;
|
|
};
|
|
|
|
extern enum bshell_status bshell_file_open(
|
|
const char *path,
|
|
struct bshell_file **out);
|
|
extern void bshell_file_close(struct bshell_file *file);
|
|
|
|
#endif
|