Files
bshell/bshell.runtime/include/bshell/file.h
T
wash edfb3e24a3 bshell: re-organise build into three separate components
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
2026-05-25 10:33:29 +01:00

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