From 386b7d3366f1359a265da207a9cafa3edf553b64 Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Mon, 7 Oct 2019 19:13:39 -0400 Subject: Reorganize and commit all the modified TACLeBench code and run scripts --- baseline/source/susan/wccfile.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 baseline/source/susan/wccfile.h (limited to 'baseline/source/susan/wccfile.h') diff --git a/baseline/source/susan/wccfile.h b/baseline/source/susan/wccfile.h new file mode 100644 index 0000000..9314361 --- /dev/null +++ b/baseline/source/susan/wccfile.h @@ -0,0 +1,24 @@ +#ifndef WCC_FILE_H +#define WCC_FILE_H + +enum _Origin_ { WCCSEEK_SET, WCCSEEK_CUR, WCCSEEK_END }; +typedef enum _Origin_ Origin; +typedef unsigned int size_x; + +#define EOFX -1 + +struct wccFILE { + char* data; + size_x size; + unsigned cur_pos; +}; + +size_x susan_wccfread (void* ptr, size_x size, size_x count, struct wccFILE* stream); +int susan_wccfseek (struct wccFILE* stream, long int offset, Origin origin); +int susan_wccfgetpos (struct wccFILE* stream, unsigned* position); +int susan_wccfeof (struct wccFILE* stream); +int susan_wccfgetc (struct wccFILE *stream); +char *susan_wccfgets (char *str, int num, struct wccFILE *stream ); + +#endif + -- cgit v1.2.2