since bluelib is already cross-platform, this is mostly just adding __declspec(dllexport) to the library functions.
17 lines
306 B
C
17 lines
306 B
C
#ifndef IVY_COMMON_FILE_H_
|
|
#define IVY_COMMON_FILE_H_
|
|
|
|
#include <ivy/line-source.h>
|
|
#include <ivy/misc.h>
|
|
#include <stdio.h>
|
|
|
|
struct ivy_file {
|
|
struct ivy_line_source f_base;
|
|
FILE *f_fp;
|
|
};
|
|
|
|
IVY_API struct ivy_file *ivy_file_from_fp(FILE *fp);
|
|
IVY_API void ivy_file_close(struct ivy_file *file);
|
|
|
|
#endif
|